Repository navigation
test(git): compare the linked worktree config with native canonical paths - #8690
Conversation
… paths windows 9/14 of dev batch 43413601225: git records the linked worktree gitdir with the Windows long name (runneradmin) while the fixture root keeps the 8.3 short spelling (RUNNER~1) that JS realpathSync leaves in place, so the paths differed only by spelling. #8652's guard resolves the right file; compare with realpathSync.native on both sides.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Ingwannu
left a comment
There was a problem hiding this comment.
Approved for exact head 6015de2189b67a93fca5e635474562cf59b9fed6 targeting dev (trusted policy snapshot 8f6d9b64e9, live dev 8f6d9b64e9 at review).
The complete diff changes only the linked-worktree assertion to canonicalize both actual and expected paths with realpathSync.native. It still compares the resolved common config path; no production guard, fixture ownership, expected-file check or deadline is removed. The preceding check for the ordinary checkout remains intact.
I inspected the actual hosted test changed log in run43422595796: the linked-worktree/common-config case executed and passed, together with inherited-GIT_DIR isolation and preload guards. The gates job131876124800 has a successful Typecheck step, and the selected PR checks/aggregate ci are green. Fresh Ready/head/review/thread state has no blocker. The run's display title contains lane=all, but its event is pull_request and native platform jobs were skipped; this is selected Ubuntu evidence, not full cross-platform acceptance.
Other Cargo workloads already occupy the local host, so I deferred local execution under the shared-host resource policy rather than overlap them. Neither I nor this hosted PR run reproduced the native Windows 8.3 spelling behavior; that platform check remains with the normal batched dev lane, not a new per-PR dispatch. No live config, service, scan, merge or release was touched.
|
Maintainer judgment (dev integration, MAINTAINERS.md maintainer-integration exception): merging without a second maintainer approval, as part of the DEV-RED repair for dev batch run 43413601225 (windows 9/14).
|
…ound the cold ocx-child build apart from its conformance run (#8711) * test: compare the release-gate binary by native canonical path, and bound the cold ocx-child build apart from its conformance run windows 4/14 of dev batch 43483630535: link-gate-codex-binary compared the child's reported path (runneradmin) with a fixture path from tmpdir() that kept the 8.3 short spelling (RUNNER~1), which the JS realpathSync leaves in place. Both sides now use realpathSync.native, as #8690 did. The gate helper itself spawns the hashed copy by absolute path and compares no path strings. windows 3/14: the Rust conformance runner, the only Cargo run of ocx-child on Windows, built the crate cold inside one 90 s bound (29 s and 41 s in earlier batches) and was cut while still compiling. The build (--no-run) now has its own 180 s bound, the run keeps 90 s, and the file runs alone like the two other ocx-child Cargo files. * test(runner): give the ocx-child conformance lane both Cargo bounds Review of #8711: bun run test runs serial files under a 180 s default lane, so a cold build that used its 180 s bound left the 90 s run no time. The two bounds now live in scripts/test.ts, the conformance test reads them, and the file's serial lane is their sum plus 30 s. The runner test asserts the lane outlasts both bounds; removing the lane entry makes it fail (180000, expected > 270000). * ci(release-evidence): approve the scripts/test.ts revision with the conformance lane The gates job pins the CI harness files a dev run must match to count as release evidence (.github/scripts/release-evidence-policy.json); scripts/test.ts changed here, so the latest ci policy no longer matched and the evidence test failed. Following the procedure in release-evidence.cjs, a new ci entry repeats the last one with the new blob ID of scripts/test.ts (git hash-object --no-filters); every older entry is kept. policy-check matches the working tree and the evidence tests pass (69/69). --------- Co-authored-by: lidge-jun <[email protected]>
Summary
windows 9/14 of dev batch run 43413601225 failed
tests/ci-workflows/test-git-isolation.test.ts:169, "git config guard > resolves the common config for a checkout and for a linked worktree" (added by #8652,b35c7544dc):The guard found the right file. Git records the linked worktree's
gitdirwith Windows' long name, while the fixture root keeps the 8.3 short spelling that JSrealpathSyncleaves in place, so the two paths differ only in spelling. The assertion now canonicalizes both sides withrealpathSync.native, which expands short names. This is the same Windows short-name issue #8672 fixed for the pnpm fixtures. Test-only.Verification
RUNNER~1vsrunneradmin).bun test tests/ci-workflows/test-git-isolation.test.ts: 11 pass, 0 fail.bun run typecheck: exit 0.realpathSyncbinding the test imports), a native Windows runner (next dev batch), and the full suite.Checklist
Summary by CodeRabbit