Skip to content

Commit

Permalink
[ci] Separate airgapped prep and test
Browse files Browse the repository at this point in the history
This makes it easier to see which half of the airgapped test failed in
CI (preparing the environment versus testing something inside it).

Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt authored and HU90m committed Sep 16, 2024
1 parent 92b38f6 commit bdebc82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
steps:
- template: ci/checkout-template.yml
- template: ci/install-package-dependencies.yml
- bash: util/prep-bazel-airgapped-build.sh
- bash: ci/scripts/test-airgapped-build.sh

- job: slow_lints
Expand Down
7 changes: 5 additions & 2 deletions ci/scripts/test-airgapped-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

set -ex

# Prefetch bazel airgapped dependencies.
util/prep-bazel-airgapped-build.sh -f
# Prefetch bazel airgapped dependencies if not already done.
if [ ! -d bazel-airgapped ]; then
echo "Airgapped environment not found, preparing..." >&2
util/prep-bazel-airgapped-build.sh -f
fi

# Remove the airgapped network namespace.
remove_airgapped_netns() {
Expand Down

0 comments on commit bdebc82

Please sign in to comment.