Skip to content

Commit

Permalink
[testing] Perform image build in advance of bootstrap monitor e2e
Browse files Browse the repository at this point in the history
Performing the image builds as part of the test suite seemed to
provoke OOMkills in CI.
  • Loading branch information
maru-ava committed Oct 12, 2024
1 parent b9e2af2 commit ce2aabc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/tests.e2e.bootstrap_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ PATH="${PWD}/bin:$PATH" bash -x "${PWD}/bin/kind-with-registry.sh"
# TODO(marun) Factor out ginkgo installation to avoid duplicating it across test scripts
go install -v github.com/onsi/ginkgo/v2/ginkgo@v2.13.1

KUBECONFIG="$HOME/.kube/config" PATH="${PWD}/bin:$PATH" ginkgo -v ./tests/fixture/bootstrapmonitor/e2e
# Build the images separate from the test suite. Running image builds
# as subprocesses of the test suite seems to provoke OOMkills in CI.
DOCKER_IMAGE=localhost:5001/avalanchego FORCE_TAG_LATEST=1 SKIP_BUILD_RACE=1 bash -x ./scripts/build_image.sh
DOCKER_IMAGE=localhost:5001/bootstrap-monitor FORCE_TAG_LATEST=1 bash -x ./scripts/build_bootstrap_monitor_image.sh

KUBECONFIG="$HOME/.kube/config" PATH="${PWD}/bin:$PATH" \
ginkgo -v ./tests/fixture/bootstrapmonitor/e2e -- --skip-avalanchego-image-build --skip-monitor-image-build

0 comments on commit ce2aabc

Please # to comment.