mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 00:04:54 +00:00
Merge branch 'master' into next
Carries today's maint batch up: the local CI image-scoping work, which gives each run its own build context and test image tag instead of writing the shared mutable one, and the retirement of the bloom-storm chaos scenario. Resolved as the earlier per-commit merges did, in the two files where this line has diverged — the node test module list and the static suite compose file. Parity holds at 21 legs a side, matching master.
This commit is contained in:
@@ -262,10 +262,21 @@ dump_lan_diagnostics() {
|
||||
trap 'echo ""; echo "NAT test interrupted"; cleanup; exit 130' INT TERM
|
||||
|
||||
require_test_image() {
|
||||
if ! docker image inspect fips-test:latest >/dev/null 2>&1; then
|
||||
echo "fips-test:latest not found; building test image"
|
||||
"$BUILD_SCRIPT"
|
||||
local img="${FIPS_TEST_IMAGE:-fips-test:latest}"
|
||||
if docker image inspect "$img" >/dev/null 2>&1; then
|
||||
return 0
|
||||
fi
|
||||
# Building here is right for a hand run and wrong under a harness. When
|
||||
# FIPS_TEST_IMAGE is set the caller has already built the image it named, so
|
||||
# a miss means something upstream is broken; building a substitute would
|
||||
# hide that and run binaries nobody asked for.
|
||||
if [ -n "${FIPS_TEST_IMAGE:-}" ]; then
|
||||
echo "ERROR: $img not present, and FIPS_TEST_IMAGE names the caller's own image" >&2
|
||||
echo "The harness that set it is expected to have built it." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "$img not found; building test image"
|
||||
"$BUILD_SCRIPT"
|
||||
}
|
||||
|
||||
require_docker_daemon() {
|
||||
|
||||
@@ -49,10 +49,21 @@ require_docker_daemon() {
|
||||
}
|
||||
|
||||
require_test_image() {
|
||||
if ! docker image inspect fips-test:latest >/dev/null 2>&1; then
|
||||
echo "fips-test:latest not found; building test image"
|
||||
"$BUILD_SCRIPT"
|
||||
local img="${FIPS_TEST_IMAGE:-fips-test:latest}"
|
||||
if docker image inspect "$img" >/dev/null 2>&1; then
|
||||
return 0
|
||||
fi
|
||||
# Building here is right for a hand run and wrong under a harness. When
|
||||
# FIPS_TEST_IMAGE is set the caller has already built the image it named, so
|
||||
# a miss means something upstream is broken; building a substitute would
|
||||
# hide that and run binaries nobody asked for.
|
||||
if [ -n "${FIPS_TEST_IMAGE:-}" ]; then
|
||||
echo "ERROR: $img not present, and FIPS_TEST_IMAGE names the caller's own image" >&2
|
||||
echo "The harness that set it is expected to have built it." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "$img not found; building test image"
|
||||
"$BUILD_SCRIPT"
|
||||
}
|
||||
|
||||
dump_diagnostics() {
|
||||
|
||||
@@ -60,10 +60,21 @@ require_docker_daemon() {
|
||||
}
|
||||
|
||||
require_test_image() {
|
||||
if ! docker image inspect fips-test:latest >/dev/null 2>&1; then
|
||||
echo "fips-test:latest not found; building test image"
|
||||
"$BUILD_SCRIPT"
|
||||
local img="${FIPS_TEST_IMAGE:-fips-test:latest}"
|
||||
if docker image inspect "$img" >/dev/null 2>&1; then
|
||||
return 0
|
||||
fi
|
||||
# Building here is right for a hand run and wrong under a harness. When
|
||||
# FIPS_TEST_IMAGE is set the caller has already built the image it named, so
|
||||
# a miss means something upstream is broken; building a substitute would
|
||||
# hide that and run binaries nobody asked for.
|
||||
if [ -n "${FIPS_TEST_IMAGE:-}" ]; then
|
||||
echo "ERROR: $img not present, and FIPS_TEST_IMAGE names the caller's own image" >&2
|
||||
echo "The harness that set it is expected to have built it." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "$img not found; building test image"
|
||||
"$BUILD_SCRIPT"
|
||||
}
|
||||
|
||||
dump_diagnostics() {
|
||||
|
||||
Reference in New Issue
Block a user