mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-05 19:18:25 +00:00
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:
@@ -638,8 +638,12 @@ jobs:
|
|||||||
if: matrix.type == 'chaos'
|
if: matrix.type == 'chaos'
|
||||||
run: pip3 install --quiet pyyaml jinja2
|
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
|
- name: Run chaos scenario
|
||||||
if: matrix.type == 'chaos'
|
if: matrix.type == 'chaos'
|
||||||
|
env:
|
||||||
|
FIPS_TEST_IMAGE: fips-test:latest
|
||||||
run: bash testing/chaos/scripts/chaos.sh ${{ matrix.scenario }} ${{ matrix.chaos_flags }}
|
run: bash testing/chaos/scripts/chaos.sh ${{ matrix.scenario }} ${{ matrix.chaos_flags }}
|
||||||
|
|
||||||
- name: Upload sim results on failure (chaos)
|
- name: Upload sim results on failure (chaos)
|
||||||
|
|||||||
Reference in New Issue
Block a user