Skip to content

fix(ci): provision target C compilers for cc-rs build scripts + rubash pin bump (niubash CI 8-job red) - #598

Merged
caomengxuan666 merged 2 commits into
masterfrom
fix/ci-cross-target-cc-provisioning
Oct 26, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
fix/ci-cross-target-cc-provisioning

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

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 under RUSTFLAGS=-D warnings (the toolchain action's default); path deps get no --cap-lints leniency, so the debugger session-core facade's four pub use groups 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), with ToolNotFound for x86_64-linux-musl-gcc / aarch64-linux-android-clang / arm-linux-androideabi-clang — no target C compiler was ever provisioned. This PR provisions them in cross-target-check and cross-target-smoke (musl-tools + CC_x86_64_unknown_linux_musl=musl-gcc; NDK API-21 clang + llvm-ar via per-target CC_/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.json bumped 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

  • This PR's first run (40289153170, root B fixed, A not yet merged): ToolNotFound occurrences 0 (baseline: 8); all remaining failures were exactly root A's 4 unused-imports errors × 8 jobs — the predicted unmasking.
  • Local: rubash lib cargo check under RUSTFLAGS=-D warnings green 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.

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
caomengxuan666 marked this pull request as ready for review October 26, 2026 08:08
@caomengxuan666 caomengxuan666 changed the title WIP: fix(ci): provision target C compilers for cc-rs build scripts + rubash pin bump (niubash CI 8-job red) fix(ci): provision target C compilers for cc-rs build scripts + rubash pin bump (niubash CI 8-job red) Oct 26, 2026
@caomengxuan666
caomengxuan666 merged commit 8ae060e into master Oct 26, 2026
16 of 19 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/ci-cross-target-cc-provisioning branch October 30, 2026 01:42
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