Skip to content

fix(release): set DEBIAN_FRONTEND=noninteractive for musl cross pre-build - #111

Merged
bug-ops merged 1 commit into
mainfrom
fix/cross-musl-noninteractive-apt
Aug 12, 2026
Merged

fix(release): set DEBIAN_FRONTEND=noninteractive for musl cross pre-build#111
bug-ops merged 1 commit into
mainfrom
fix/cross-musl-noninteractive-apt

Conversation

@bug-ops

@bug-ops bug-ops commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • The v0.9.5 Release run's Build (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 cancelled
  • Root cause: Cross.toml's pre-build step runs apt-get install --assume-yes cmake, which transitively installs tzdata; tzdata's postinst script prompts interactively for a timezone, and with no TTY in the CI container the prompt blocks forever
  • aarch64-unknown-linux-musl happened to succeed in the same run because its cross-rs image already had tzdata preconfigured from an earlier layer — the bug is non-deterministic per target/image state, not something that reliably reproduces every run
  • Fix: export DEBIAN_FRONTEND=noninteractive before apt-get in both musl pre-build steps, the standard fix for this class of hang

Test plan

  • fy lint Cross.toml is not applicable (not YAML); verified TOML is well-formed by re-reading the file
  • After merge, re-run the Release workflow for v0.9.5 and confirm Build (x86_64-unknown-linux-musl) completes without hanging and the asset is uploaded

…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.
@github-actions github-actions Bot added needs-review Needs review size: XS <10 lines changed labels Aug 12, 2026
@bug-ops
bug-ops enabled auto-merge (squash) August 12, 2026 20:39
@bug-ops
bug-ops merged commit 212b352 into main Aug 12, 2026
16 checks passed
@bug-ops
bug-ops deleted the fix/cross-musl-noninteractive-apt branch August 12, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Needs review size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant