Skip to content

Commit

Permalink
ci: just a test, limit concurrency to build
Browse files Browse the repository at this point in the history
  • Loading branch information
matzf committed Dec 15, 2023
1 parent 9d9c62f commit 85444ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
GOPROXY: "http://localhost:3200|https://proxy.golang.org|direct"
GOPROXY: "http://localhost:3200|https://proxy.golang.org|direct"
steps:
- label: "Build :bazel:"
command:
Expand All @@ -22,6 +22,8 @@ steps:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
timeout_in_minutes: 10
concurrency_group: "${BUILDKITE_PIPELINE_ID}/${BUILDKITE_BUILD_NUMBER}"
concurrency: 3
- wait
- label: "Package :debian:"
command:
Expand All @@ -45,6 +47,8 @@ steps:
EOF
key: dist-deb
retry: *automatic-retry
concurrency_group: "${BUILDKITE_PIPELINE_ID}/${BUILDKITE_BUILD_NUMBER}"
concurrency: 3
- label: "Unit Tests :bazel:"
command:
- bazel test --config=race --config=unit_all
Expand All @@ -56,12 +60,16 @@ steps:
- bazel-testlogs.tar.gz
retry: *automatic-retry
timeout_in_minutes: 20
concurrency_group: "${BUILDKITE_PIPELINE_ID}/${BUILDKITE_BUILD_NUMBER}"
concurrency: 3
- label: "Lint :bash:"
command:
- make lint
key: lint
retry: *automatic-retry
timeout_in_minutes: 20
concurrency_group: "${BUILDKITE_PIPELINE_ID}/${BUILDKITE_BUILD_NUMBER}"
concurrency: 3
- label: "Check Generated :bash:"
command:
- echo "--- go_deps.bzl"
Expand Down Expand Up @@ -92,9 +100,13 @@ steps:
timeout_in_minutes: 20
key: check_generated
retry: *automatic-retry
concurrency_group: "${BUILDKITE_PIPELINE_ID}/${BUILDKITE_BUILD_NUMBER}"
concurrency: 3
- wait
- group: "End to End"
key: e2e
concurrency_group: "${BUILDKITE_PIPELINE_ID}/${BUILDKITE_BUILD_NUMBER}"
concurrency: 3
steps:
- label: "E2E: default :man_in_business_suit_levitating: (scion, ping)"
command:
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/pipeline_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gen_bazel_test_steps() {
parallel="${PARALLELISM:-1}"
echo " - group: \"Integration Tests :bazel:\""
echo " key: integration-tests"
echo " concurrency_group: \"\${BUILDKITE_PIPELINE_ID}/\${BUILDKITE_BUILD_NUMBER}\""
echo " concurrency: 3"
echo " steps:"

targets="$(bazel query "attr(tags, integration, tests(//...)) except attr(tags, \"lint|manual\", tests(//...))" 2>/dev/null)"
Expand Down

0 comments on commit 85444ed

Please sign in to comment.