Skip to content

sccache witness: assert the elevated, quoted mv that #10568 renders - #12344

Merged
briansrls merged 1 commit into
mainfrom
fix/sccache-witness-elevated-mv
Sep 27, 2026
Merged

briansrls merged 1 commit into
mainfrom
fix/sccache-witness-elevated-mv

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Part of the latent-red triage from #12339. This PR covers one root cause: srv4_sccache_prereq_pins_version_and_digest (test.claim.runner_host_deploy_witness).

Red on main f17c19a, and it turned red with #10568 (84b6739). That PR routed the sccache install's mv and chmod through extdeps.sudo.elevation sudo_elevate_argv and single-quoted every word, on purpose: so that a missing NOPASSWD grant refuses instead of prompting. The claim's third pattern still read the old hand-rendered spelling, .../sccache' /usr/local/bin/sccache, with an unquoted destination.

Re-derivation (§6b). The fold change was deliberate and correct, so the claim is the earliest unjustified link. What the row owes is two things:

  • the upstream fact: v0.15.0's musl tarball unpacks to sccache-v0.15.0-<arch>-unknown-linux-musl/sccache
  • that the binary is moved to the installed path

The new pattern 'mv' '/tmp/sccache-v0.15.0-aarch64-unknown-linux-musl/sccache' '/usr/local/bin/sccache' is spelled from that layout and the POSIX quoting rule. It was not copied from the rendered script.

Evidence. Local claim_batch, every function in the file: 10/10 PASS on this head. On main this row FAILs.

🤖 Generated with Claude Code

srv4_sccache_prereq_pins_version_and_digest pinned the pre-#10568 hand-rendered
`sudo mv ... /usr/local/bin/sccache` spelling. #10568 (84b6739) routed the step
through sudo_elevate_argv with every word quoted, deliberately; the claim was the
unjustified link.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@briansrls
briansrls added this pull request to the merge queue Sep 26, 2026
Merged via the queue into main with commit 1a2910c Sep 27, 2026
5 checks passed
@briansrls
briansrls deleted the fix/sccache-witness-elevated-mv branch September 27, 2026 04:26
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