Skip to content

Commit

Permalink
chore: reduce active polling in code build workflows (#13780)
Browse files Browse the repository at this point in the history
* chore: try codebuild optimizations

* regenerate
  • Loading branch information
sobolk authored May 14, 2024
1 parent 9ce1c4b commit 3db951a
Show file tree
Hide file tree
Showing 17 changed files with 117 additions and 48 deletions.
1 change: 0 additions & 1 deletion codebuild_specs/build_pkg_binaries_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
phases:
build:
commands:
- source shared-scripts.sh && _waitForJobs publish_to_local_registry requirePrevJobsToSucceed
- source ./shared-scripts.sh && _buildBinaries arm

artifacts:
Expand Down
1 change: 0 additions & 1 deletion codebuild_specs/build_pkg_binaries_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
phases:
build:
commands:
- source shared-scripts.sh && _waitForJobs publish_to_local_registry requirePrevJobsToSucceed
- source ./shared-scripts.sh && _buildBinaries linux

artifacts:
Expand Down
1 change: 0 additions & 1 deletion codebuild_specs/build_pkg_binaries_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
phases:
build:
commands:
- source shared-scripts.sh && _waitForJobs publish_to_local_registry requirePrevJobsToSucceed
- source ./shared-scripts.sh && _buildBinaries macos

artifacts:
Expand Down
1 change: 0 additions & 1 deletion codebuild_specs/build_pkg_binaries_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
phases:
build:
commands:
- source shared-scripts.sh && _waitForJobs publish_to_local_registry requirePrevJobsToSucceed
- source ./shared-scripts.sh && _buildBinaries win

artifacts:
Expand Down
22 changes: 20 additions & 2 deletions codebuild_specs/e2e_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,54 @@ batch:
- build_linux
- identifier: publish_to_local_registry
buildspec: codebuild_specs/publish_to_local_registry.yml
depend-on:
- build_linux
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_arm
buildspec: codebuild_specs/build_pkg_binaries_arm.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_linux
buildspec: codebuild_specs/build_pkg_binaries_linux.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_macos
buildspec: codebuild_specs/build_pkg_binaries_macos.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_win
buildspec: codebuild_specs/build_pkg_binaries_win.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: upb
buildspec: codebuild_specs/upload_pkg_binaries.yml
depend-on:
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_versions_match
buildspec: codebuild_specs/verify_versions_match.yml
depend-on:
- build_linux
- publish_to_local_registry
- identifier: verify_pkg_cli
buildspec: codebuild_specs/verify_pkg_cli.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: run_e2e_tests_linux
Expand Down
22 changes: 20 additions & 2 deletions codebuild_specs/e2e_workflow_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,36 +60,54 @@ batch:
- build_linux
- identifier: publish_to_local_registry
buildspec: codebuild_specs/publish_to_local_registry.yml
depend-on:
- build_linux
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_arm
buildspec: codebuild_specs/build_pkg_binaries_arm.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_linux
buildspec: codebuild_specs/build_pkg_binaries_linux.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_macos
buildspec: codebuild_specs/build_pkg_binaries_macos.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_win
buildspec: codebuild_specs/build_pkg_binaries_win.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: upb
buildspec: codebuild_specs/upload_pkg_binaries.yml
depend-on:
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_versions_match
buildspec: codebuild_specs/verify_versions_match.yml
depend-on:
- build_linux
- publish_to_local_registry
- identifier: verify_pkg_cli
buildspec: codebuild_specs/verify_pkg_cli.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: integration_test
Expand Down
22 changes: 20 additions & 2 deletions codebuild_specs/e2e_workflow_generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,36 +60,54 @@ batch:
- build_linux
- identifier: publish_to_local_registry
buildspec: codebuild_specs/publish_to_local_registry.yml
depend-on:
- build_linux
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_arm
buildspec: codebuild_specs/build_pkg_binaries_arm.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_linux
buildspec: codebuild_specs/build_pkg_binaries_linux.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_macos
buildspec: codebuild_specs/build_pkg_binaries_macos.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_win
buildspec: codebuild_specs/build_pkg_binaries_win.yml
depend-on:
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: upb
buildspec: codebuild_specs/upload_pkg_binaries.yml
depend-on:
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_versions_match
buildspec: codebuild_specs/verify_versions_match.yml
depend-on:
- build_linux
- publish_to_local_registry
- identifier: verify_pkg_cli
buildspec: codebuild_specs/verify_pkg_cli.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: integration_test
Expand Down
15 changes: 9 additions & 6 deletions codebuild_specs/pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,40 @@ batch:
- identifier: build_pkg_binaries_arm
buildspec: codebuild_specs/build_pkg_binaries_arm.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_linux
buildspec: codebuild_specs/build_pkg_binaries_linux.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_macos
buildspec: codebuild_specs/build_pkg_binaries_macos.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_win
buildspec: codebuild_specs/build_pkg_binaries_win.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_pkg_cli
buildspec: codebuild_specs/verify_pkg_cli.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_versions_match
buildspec: codebuild_specs/verify_versions_match.yml
depend-on:
- build_linux
- publish_to_local_registry
- identifier: verify_e2e_workflow_generated
buildspec: codebuild_specs/verify_e2e_workflow_generated.yml
depend-on:
Expand Down
1 change: 0 additions & 1 deletion codebuild_specs/publish_to_local_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
phases:
build:
commands:
- source shared-scripts.sh && _waitForJobs build_linux requirePrevJobsToSucceed
- source ./shared-scripts.sh && _publishToLocalRegistry

artifacts:
Expand Down
15 changes: 9 additions & 6 deletions codebuild_specs/release_workflows/hotfix_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,37 @@ batch:
- identifier: build_pkg_binaries_arm
buildspec: codebuild_specs/build_pkg_binaries_arm.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_linux
buildspec: codebuild_specs/build_pkg_binaries_linux.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_macos
buildspec: codebuild_specs/build_pkg_binaries_macos.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_win
buildspec: codebuild_specs/build_pkg_binaries_win.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_versions_match
buildspec: codebuild_specs/verify_versions_match.yml
depend-on:
- build_linux
- publish_to_local_registry
- identifier: verify_pkg_cli
buildspec: codebuild_specs/verify_pkg_cli.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
20 changes: 13 additions & 7 deletions codebuild_specs/release_workflows/release_rc_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,43 +35,49 @@ batch:
- identifier: build_pkg_binaries_arm
buildspec: codebuild_specs/build_pkg_binaries_arm.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_linux
buildspec: codebuild_specs/build_pkg_binaries_linux.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_macos
buildspec: codebuild_specs/build_pkg_binaries_macos.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: build_pkg_binaries_win
buildspec: codebuild_specs/build_pkg_binaries_win.yml
depend-on:
- build_linux
- publish_to_local_registry
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: upb
buildspec: codebuild_specs/upload_pkg_binaries.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_pkg_cli
buildspec: codebuild_specs/verify_pkg_cli.yml
depend-on:
- build_linux
- build_pkg_binaries_arm
- build_pkg_binaries_linux
- build_pkg_binaries_macos
- build_pkg_binaries_win
env:
compute-type: BUILD_GENERAL1_LARGE
- identifier: verify_versions_match
buildspec: codebuild_specs/verify_versions_match.yml
depend-on:
- build_linux
- publish_to_local_registry
- identifier: publish_to_npm
buildspec: codebuild_specs/publish_to_npm.yml
env:
Expand Down
Loading

0 comments on commit 3db951a

Please sign in to comment.