Repository navigation
fix(ci): provision target C compilers for cc-rs build scripts + rubash pin bump (niubash CI 8-job red) - #598
Merged
Conversation
The cross-target-check (musl/android legs) and cross-target-smoke jobs died in signal-hook's build script: rubash enables its extended-siginfo feature, whose build script compiles a C file for the target via cc-rs, and cc-rs's default tool names (x86_64-linux-musl-gcc, aarch64-linux-android-clang, arm-linux-androideabi-clang) exist nowhere on the runners (ToolNotFound). The old smoke-job comment claimed no musl-tools was needed -- true for linking the final binary (rustc's self-contained musl crt), false for compiling the dependency graph. - cross-target-check: musl leg installs musl-tools and exports CC_x86_64_unknown_linux_musl=musl-gcc; android legs export the NDK's API-21 clang + llvm-ar via CC_/AR_ per-target vars; ohos needs nothing (Tier 2 with host tools). - cross-target-smoke: same musl provisioning before the release build, and the stale comment is corrected.
…r facade allow) The old pin contains the un-annotated debugger session-core facade: a release build under -D warnings fails on its 4 unused-imports errors. 368353ec is the rubash#1772 merge commit (version still 1.4.3); the roll-up also takes the rubash master wave merged since d15a02df. Root Cargo.lock unchanged -- the pin is the release fetch contract, CI builds the sibling master via [patch], and the lock's rubash entry is a path dependency.
caomengxuan666
marked this pull request as ready for review
October 26, 2026 08:08
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.
Fixes the niubash master CI failure (all 8 jobs red, run 40258351223) together with unixwin/rubash#1772 (merged, master 368353ec).
Root causes (two, both required)
A — engine (fixed in rubash#1772): niubash builds rubash as a
[patch]path dependency underRUSTFLAGS=-D warnings(the toolchain action's default); path deps get no--cap-lintsleniency, so the debugger session-core facade's fourpub usegroups failed as unused-imports errors in every job. Fixed engine-side with per-group#[allow(unused_imports)].B — this PR (workflow): the musl/android cross legs died earlier, in signal-hook's cc-rs build script (rubash enables
extended-siginfo), withToolNotFoundforx86_64-linux-musl-gcc/aarch64-linux-android-clang/arm-linux-androideabi-clang— no target C compiler was ever provisioned. This PR provisions them incross-target-checkandcross-target-smoke(musl-tools +CC_x86_64_unknown_linux_musl=musl-gcc; NDK API-21 clang + llvm-ar via per-targetCC_/AR_vars; ohos needs nothing — Tier 2 with host tools) and corrects the stale smoke-job comment that claimed no musl-tools was needed.Pin:
rubash-pin.jsonbumped d15a02df → 368353ec (the #1772 merge commit; rubash version still 1.4.3). Root Cargo.lock unchanged: the pin is the release fetch contract, CI builds sibling master via[patch], and the lock's rubash entry is a path dependency.Evidence
ToolNotFoundoccurrences 0 (baseline: 8); all remaining failures were exactly root A's 4 unused-imports errors × 8 jobs — the predicted unmasking.cargo checkunderRUSTFLAGS=-D warningsgreen against the #1772 branch; niubash workspace gates recorded in the ci-fix line report.Relation to #568
No file overlap (this PR: ci.yml + pin; #568: shell.rs/main.rs/new test). Merge this first; #568 should then rebase onto the green-CI master (its PR-branch ci.yml picks up the root-B fix; root A reaches it automatically since jobs clone rubash master fresh) and re-run to green before merging.