Skip to content

ci-gate: a bare sha computes mini copies and spec-import coverage from the checkout's top - #648

Merged
SSFSKIM merged 1 commit into
masterfrom
gate-bare-sha-git-dir
Nov 14, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
gate-bare-sha-git-dir

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 14, 2026

Copy link
Copy Markdown
Owner

ux-wave found that scripts/ci-gate.sh <sha> (a bare sha, not a worktree) never computed mini copies or spec-import coverage. git_dir was $(dirname "$0"), which is scripts/. ci-gate-e2e-coverage.mjs then ran git -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_dir is now git 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 main check compared argv[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 same MiniCopy: 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)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T03:11:06.239141Z 015481b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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