Let the CI chaos legs use the test image the job already built

The chaos step set no FIPS_TEST_IMAGE, so the chaos runner built
fips-test:latest from testing/docker a second time on each of the five
chaos legs, after the job had already built it. Each of those builds was
one more registry contact that could time out. Pass the job's image in,
as the native-api step already does, and the runner uses it.
This commit is contained in:
Johnathan Corgan
2026-09-19 13:32:12 +00:00
parent 217bea3086
commit d8574ce8de
+4
View File
@@ -638,8 +638,12 @@ jobs:
if: matrix.type == 'chaos'
run: pip3 install --quiet pyyaml jinja2
# With FIPS_TEST_IMAGE set, the chaos runner uses the image the job built
# above instead of building fips-test:latest again (testing/chaos/sim/runner.py).
- name: Run chaos scenario
if: matrix.type == 'chaos'
env:
FIPS_TEST_IMAGE: fips-test:latest
run: bash testing/chaos/scripts/chaos.sh ${{ matrix.scenario }} ${{ matrix.chaos_flags }}
- name: Upload sim results on failure (chaos)