Skip to content

Commit

Permalink
ci: reduce azp runs (envoyproxy#8579)
Browse files Browse the repository at this point in the history
Description:

Try optimize azp runs a bit, push jobs to azp config.
Guard CI runs on PR with format.
Reduce parallel runs to prevent overload RBE clusters.
Risk Level: Low
Testing: CI only

Signed-off-by: Lizan Zhou <[email protected]>
  • Loading branch information
lizan authored and htuch committed Oct 11, 2019
1 parent 65581d5 commit e103744
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .azure-pipelines/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
displayName: "Run check format scripts"
- job: bazel
dependsOn: ["format"]
# For master builds, continue even if format fails
condition: or(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
strategy:
maxParallel: 3
matrix:
release:
CI_TARGET: 'bazel.release'
Expand All @@ -37,7 +41,6 @@ jobs:
# (on Fuzzit) is not crashing envoy. This will help find bugs BEFORE merging and not after.
fuzzit:
CI_TARGET: 'bazel.fuzzit_regression'
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel.
timeoutInMinutes: 360
pool:
vmImage: 'Ubuntu 16.04'
Expand All @@ -61,7 +64,7 @@ jobs:
env:
ENVOY_DOCKER_BUILD_DIR: $(Build.StagingDirectory)
ENVOY_RBE: "true"
BAZEL_BUILD_EXTRA_OPTIONS: "--config=remote-ci --config=remote --jobs=100 --curses=no"
BAZEL_BUILD_EXTRA_OPTIONS: "--config=remote-ci --config=remote --jobs=$(RbeJobs) --curses=no"
BAZEL_REMOTE_CACHE: grpcs://remotebuildexecution.googleapis.com
BAZEL_REMOTE_INSTANCE: projects/envoy-ci/instances/default_instance
GCP_SERVICE_ACCOUNT_KEY: $(GcpServiceAccountKey)
Expand Down Expand Up @@ -116,7 +119,7 @@ jobs:
FUZZIT_API_KEY: $(FuzzitApiKey)
ENVOY_DOCKER_BUILD_DIR: $(Build.StagingDirectory)
ENVOY_RBE: "true"
BAZEL_BUILD_EXTRA_OPTIONS: "--config=remote-ci --config=remote --jobs=100 --curses=no"
BAZEL_BUILD_EXTRA_OPTIONS: "--config=remote-ci --config=remote --jobs=$(RbeJobs) --curses=no"
BAZEL_REMOTE_CACHE: grpcs://remotebuildexecution.googleapis.com
BAZEL_REMOTE_INSTANCE: projects/envoy-ci/instances/default_instance
GCP_SERVICE_ACCOUNT_KEY: $(GcpServiceAccountKey)
Expand Down

0 comments on commit e103744

Please sign in to comment.