fix(release): set DEBIAN_FRONTEND=noninteractive for musl cross pre-build - #111
Merged
Conversation
…uild The cmake install in the musl cross-build pre-build step transitively pulls in tzdata, whose postinst script prompts interactively for a timezone. Without DEBIAN_FRONTEND=noninteractive the apt-get install hangs indefinitely waiting for input that never arrives in the CI container. Observed on the x86_64-unknown-linux-musl release build (run 31634595664), which hung for 37+ minutes before being cancelled. aarch64-unknown-linux-musl happened not to hit it because its image already had tzdata preconfigured from a prior layer, making the bug non-deterministic across targets/runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v0.9.5Release run'sBuild (x86_64-unknown-linux-musl)job (https://github.com/bug-ops/deps-lsp/actions/runs/31634595664/job/94244018122) hung for 37+ minutes and had to be cancelledCross.toml's pre-build step runsapt-get install --assume-yes cmake, which transitively installstzdata;tzdata's postinst script prompts interactively for a timezone, and with no TTY in the CI container the prompt blocks foreveraarch64-unknown-linux-muslhappened to succeed in the same run because its cross-rs image already hadtzdatapreconfigured from an earlier layer — the bug is non-deterministic per target/image state, not something that reliably reproduces every runexport DEBIAN_FRONTEND=noninteractivebeforeapt-getin both muslpre-buildsteps, the standard fix for this class of hangTest plan
fy lint Cross.tomlis not applicable (not YAML); verified TOML is well-formed by re-reading the filev0.9.5and confirmBuild (x86_64-unknown-linux-musl)completes without hanging and the asset is uploaded