From 0e9081e077bfdeb6e62ba8e1205d5bf4905aa62d Mon Sep 17 00:00:00 2001 From: Naman Bajpai Date: Thu, 19 Jun 2025 14:44:27 -0400 Subject: [PATCH] Dump generated docker compose during Antithesis image builds Previously, the Antithesis docker compose configuration was generated and embedded in the config image, making it difficult to inspect what was actually being run in the Antithesis environment without extracting it from the built image. This change enhances the `gen_antithesis_compose_config` function to dump the generated docker-compose.yml file during the build process, providing: - Immediate visibility into the generated compose configuration - Console output of the complete compose file during builds - Persistent storage of the compose file in build/antithesis/{setup}/ - Better debugging capabilities for Antithesis test environments The compose file is now accessible at: - build/antithesis/avalanchego/docker-compose.yml (for avalanchego setup) - build/antithesis/xsvm/docker-compose.yml (for xsvm setup) This improvement maintains backward compatibility while significantly improving the developer experience when working with Antithesis test configurations. --- scripts/lib_build_antithesis_images.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/lib_build_antithesis_images.sh b/scripts/lib_build_antithesis_images.sh index fba228c81e2a..b113c2eedaf6 100644 --- a/scripts/lib_build_antithesis_images.sh +++ b/scripts/lib_build_antithesis_images.sh @@ -120,4 +120,15 @@ function gen_antithesis_compose_config { # Generate compose config for copying into the config image # shellcheck disable=SC2086 env ${compose_env} go run "${exe_path}" + + # Dump the generated docker compose file to build directory for inspection + local compose_file="${target_path}/docker-compose.yml" + if [[ -f "${compose_file}" ]]; then + echo "Generated docker compose configuration:" + cat "${compose_file}" + echo "" + echo "Compose file saved to: ${compose_file}" + else + echo "Warning: Expected compose file not found at ${compose_file}" + fi }