Skip to content

Isolate concurrent OTP builds - #326

Merged
ericmj merged 3 commits into
mainfrom
isolate-otp-build-containers
Oct 26, 2026
Merged

ericmj merged 3 commits into
mainfrom
isolate-otp-build-containers

Conversation

@ericmj

@ericmj ericmj commented Oct 26, 2026

Copy link
Copy Markdown
Member

OTP branch builds for different SHAs can overlap on one agent and reuse the same container name, causing a newer build to kill the older one with exit 137. Use the build's image ID and a new container ID for each invocation, clean up on failure or interruption, and download the queued SHA instead of the moving ref.

Add seven script regressions for overlapping builds, cleanup, and commit pinning. Local validation passed 496 tests with one existing GNU timeout test excluded because GNU timeout isn't installed, plus compiler, formatter, and Docker fixture checks. Full OTP compilation wasn't run.

Publication ordering remains unresolved: an older branch build finishing last can still overwrite a newer artifact and its metadata.

Use each build's image ID and a Docker-assigned container ID so overlapping OTP branch builds don't remove each other's containers. Clean up on failure and interruption, and download the queued commit SHA.
Check that the script uses the image and container IDs returned by Docker. Remove the fake image retagging and container lifecycle simulation.
@ericmj
ericmj merged commit dc98c8b into main Oct 26, 2026
8 checks passed
@ericmj
ericmj deleted the isolate-otp-build-containers branch October 26, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant