Skip to content

Dump generated docker compose during Antithesis image builds #4021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bajpainaman
Copy link

#3935

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.

Why this should be merged

How this works

How this was tested

Need to be documented in RELEASES.md?

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.
@rhkrohan
Copy link

@a1k0n I'm having the same issue, and this can be a possible fix. Is there smth wrong with this pr?

@maru-ava
Copy link
Contributor

@a1k0n I'm having the same issue, and this can be a possible fix. Is there smth wrong with this pr?

Sorry, you're having what issue exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants