Skip to content

Use the rewritten target in compiler-cache argv fixtures - #6972

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-19887-ecf617cb
Oct 29, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-19887-ecf617cb

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

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

  • The unchanged public compiler-cache harness with TMPDIR under its own checkout reproduces the old source-only-alias argv mismatch, then passes after the expectation repair; record exact source/commands and preserve the fails-before evidence. The equivalent external TMPDIR control also passes without changing the production wrapper.
  • All existing byte-exact argv/environment checks, including trailing line feeds and empty values, remain active, along with source/cwd/custom-target mapping and real Cargo/cache cases. Do not skip or weaken assertions, substitute snapshot success for the original failing case, or change runtime behavior.
  • Keep the repair within the verified existing fixture and perform the relevant shell/static checks; no new tests, cross-host deployment claim or unrelated prerequisite repair is required.

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:

  1. Satisfied. Before the edit, the unchanged public harness with TMPDIR inside the checkout failed at source-only-alias.args0 (cmp byte 386; misleading argv trailing-LF/empty-value diagnostic). The same command passed after the edit. The external TMPDIR control passed both before and after. Exact commands, outcomes, and logs are in compiler-cache-evidence.json and the four harness log artifacts.
  2. Satisfied. Full existing harness passes after the edit for both TMPDIR roots. NUL-delimited argv, trailing LF and empty-value checks, environment preservation, source/cwd/custom-target mapping, Cargo/cache cases, and the real stable-mount block remained active. The real-mount block was applicable because the stable workspace and checkout Cargo.toml shared an inode.
  3. Satisfied. Only scripts/test-compiler-cache.sh changed; no test was added and no unrelated prerequisite was repaired.

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

  • Not reported

Branch Freshness

  • Base ref: origin/agent-main
  • Head ref: orbit/ORB-19887-ecf617cb
  • Behind base: 0
  • Ahead of base: 1

Orchestrated-By: sol

…887]

Planned-By: codex
Orchestrated-By: sol
@orbit-agent-01 orbit-agent-01 added the orbit orbit related label Oct 29, 2026
@orbit-agent-01
orbit-agent-01 merged commit 63d0b7c into agent-main Oct 29, 2026
9 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-19887-ecf617cb branch October 29, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant