Repository navigation
ci-gate: a bare sha computes mini copies and spec-import coverage from the checkout's top - #648
Merged
Merged
Conversation
…m the checkout's top
ux-wave's report: with a bare sha as the target, git_dir was the script's
own folder, scripts/. ci-gate-e2e-coverage.mjs then ran `git -C scripts
archive <sha>`, which from a subfolder archives only that subfolder, so
the temp root had no package.json. Every bare-sha call went out with no
mini copies ("mini copies not computed: ENOENT ... package.json") and no
spec-import coverage (U9's run 43548382298). git_dir is now the
checkout's top for a bare sha, and for a worktree path too.
The new bare-sha test also showed that the coverage CLI never ran when
reached through a symlinked directory (macOS's /var -> /private/var):
its main check compared argv[1] with the module's real path. Both sides
are now real paths.
The tracker's pool timing-bound row gains org-recovery.local.test.ts:110
(43538093048, green on the rerun), as the architect asked.
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
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. |
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.
ux-wave found that
scripts/ci-gate.sh <sha>(a bare sha, not a worktree) never computed mini copies or spec-import coverage.git_dirwas$(dirname "$0"), which isscripts/.ci-gate-e2e-coverage.mjsthen rangit -C scripts archive <sha>, and run from a subfolder that archives only the subfolder, so the temp root had no package.json. U9's run 43548382298 went out with no copies, and ux-wave relaunched them by hand.Fix.
git_diris nowgit rev-parse --show-toplevel, for a bare sha and for a worktree path alike.A second fault found by the new test. The coverage CLI's
maincheck comparedargv[1]with the module's real path, so a script reached through a symlinked directory (macOS's/var→/private/var) never ran as the CLI and printed nothing. Both sides are now real paths.Test. ci-gate.test.mjs gains a bare-sha case in which the tested tree carries its own
scripts/, as a real checkout does, and it must produce the sameMiniCopy:trailer as the worktree case. It fails without the fix and passes with it.Tracker. The pool timing-bound row (2026-10-23) gains
test/endpoint/org-recovery.local.test.ts:110, the 5000 ms helper that missed in 43538093048 and was green on the rerun, as the architect asked.Gate. Static is green: 43549699436.
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)