Repository navigation
Use the rewritten target in compiler-cache argv fixtures - #6972
Merged
Merged
Conversation
…887] Planned-By: codex Orchestrated-By: sol
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.
Task
ORB-19887 — Use the rewritten target in compiler-cache argv fixtures
Description
Outcome
Fix the confirmed inherited public harness expectation recorded as F2026-10-692 while validating ORB-19879/PR6963. At integrated73ba816192b435fc889ca99b8a226c7a4645d84a, scripts/test-compiler-cache.sh405 computes expected_custom_tgt with source_rewrite_expected, but407 passes raw custom_tgt to run_rewrite_input_probe. With TMPDIR inside the checkout, source rewriting correctly transforms the target path; the fixture compares against the raw path and exits1 with the misleading source-only-alias argv trailing-LF/empty-value error. Task19879 reproduced the same exact command/signature against the unmodified base with all candidate files temporarily restored, preserved the failure, and independently passed an identical-source snapshot whose source/temp path relationship avoids this defect. Root independently read the erroneous computed-versus-passed expectation; no production wrapper failure is claimed.
Scope
Repair the existing fixture expectation in scripts/test-compiler-cache.sh so it follows the wrapper's already-established source-only rewriting contract for checkout-local scratch paths. Preserve exact argument/environment bytes, trailing newline/empty-value assertions, custom target behavior, source/cwd mapping and all real Cargo/compiler-cache cases. No production wrapper change, bypass, weaker comparison, skipped check or new mirrored test is needed. Use the existing complete public harness with both checkout-local and external temporary roots; source/fixture diagnostics and before/after outcomes must stay distinct.19880 missing-Cargo and19881 Python prerequisite are separate scoped repairs, not duplicates. Shared-script locks should serialize normal delivery; do not edit PR6963 by hand.
Evidence/dedup
Existing19879 evidence: anchor-failure-before/after and compiler-cache-harness.log/compiler-cache-harness-base.log/compiler-cache-snapshot-harness.log at exact73ba8161 source; its unrelated red-base result is retained, not relabeled. Independent source review ofPR6963/f70b76e63ecf8546c74bc8d438d6938a2146c8c7 found no cleanup blocker and isolated this expectation error. Spawned from on-call ORB-19771; resolve F2026-10-692 on delivery.
Acceptance Criteria
Execution Summary
Click to expand
Implemented the fixture expectation repair in scripts/test-compiler-cache.sh:407. The source-only-alias probe now expects expected_custom_tgt, the value already computed by source_rewrite_expected. No production wrapper, runtime behavior, byte assertion, or other test changed. Baseline was clean at ac70f14.
Acceptance criteria:
Validation: scripts/test-compiler-cache.sh with checkout-local TMPDIR before edit: expected failure; after edit: passed. The external-TMPDIR harness before and after edit: passed. bash -n scripts/test-compiler-cache.sh: passed. make ci-guards: passed. cargo fmt --all -- --check: passed. git diff --check: passed. shellcheck scripts/test-compiler-cache.sh: not run because shellcheck is unavailable. No Rust crate changed, so crate clippy gates do not apply.
Reconciliation: the sole delivery path is scripts/test-compiler-cache.sh, within the existing selector. Baseline status was clean; final inventory contains only that modified file, with no untracked paths outside ignored .orbit/tmp. The external temporary parent was removed after the harnesses, and no harness process remained. Evidence and CI guard output are attached. Risk/deviation: shellcheck could not be run on this host; no cross-host claim is made.
Validation
Branch Freshness
origin/agent-mainorbit/ORB-19887-ecf617cbOrchestrated-By: sol