Skip to content

ci: path-literal check scans live gate references; historical gate commands move to currentCommand - #30252

Merged
nwparker merged 1 commit into
mainfrom
nwparker/r2-cleanup-ci
Oct 18, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/r2-cleanup-ci

Conversation

@nwparker

@nwparker nwparker commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​74 $\color{#cf222e}{\Huge{\mathbf{−}}}$​58 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​16
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​27 $\color{#cf222e}{\Huge{\mathbf{−}}}$​60 $\color{#cf222e}{\Huge{\mathbf{−}}}$​33

ELI5

Some CI scripts named test files that had been deleted or renamed, so a few checks were quietly running nothing. This fixes the live ones, makes the stale-path check look only at what CI actually runs (not at historical notes), and tidies the new managed-SSH route.

What Changed

  • Stale-path check (check-path-literal-ratchet.mjs): in config/reliability-gates.jsonc it now reads only each gate's commands and testFiles. Evidence prose and evidence runs record what ran at the time, so they are no longer reported as stale references. The baseline shrinks from 53 to 14 entries.
    • Also removes a dead second prefix check (it could never pass when the first failed) and rewraps a long doc comment.
  • Gate manifest:
    • Historical commands: four gates kept a historical command, naming a since-deleted test, only so an evidence run could point at it. Those commands are removed from commands, and the evidence runs now name the successor command through currentCommand, the manifest's existing mechanism. Each evidence run's own command text is unchanged.
    • Live command: one live command (runtime.headless-desktop-promotion-continuity) dropped src/main/updater.test.ts. That file was split in refactor(tests): split every oversized test file off the max-lines suppression list #14728, and vitest had been silently skipping it.
  • E2E routing:
    • ssh.orcad-remote-fallback is renamed ssh.orcad-remote-sources. It matches on its own, not as a fallback.
    • Its comment drops the commit-percentage numbers, which would go stale.
    • Its test moves into pr-e2e-route-contracts.test.mjs with the other route contracts and uses the shared MANAGED_SSH_E2E_SPEC_PREFIX.

Why

This applies the first holistic clean-code pass over round-2 SSH hardening. A stale-path baseline full of historical evidence would hide new live breakage. Moving evidence onto currentCommand keeps every receipt auditable without keeping commands that run nothing.

Linked Issue

N/A (SSH hardening round 2 follow-up).

Visual Proof

N/A: CI configuration only.

Testing

  • check-path-literal-ratchet.test.mjs, check-reliability-gates.test.mjs and pr-e2e-route-contracts.test.mjs pass. A new test pins that evidence prose and runs are not scanned.
  • check-reliability-gates.mjs passes (148 gates), and the path-literal ratchet is OK.
  • Full local "static analysis and typecheck" job: clean.
  • Codex review (gpt-6.1-sol, high), round 1: one P2. Exempting every evidence-pinned command hid 350 of 477 commands from the check. Fixed by scanning all commands and migrating the 4 historical commands to currentCommand. Round 2: clean.

…mmands move to currentCommand

Gate evidence prose and evidence runs record what ran then, so the check reads only each gate's
commands and test files (baseline 53 -> 14). Four evidence-pinned historical commands that named
deleted tests are removed from their gates' commands and their runs point at the successor via
currentCommand, the manifest's existing mechanism. One live command drops a deleted updater test.
The managed-SSH catch-all route is renamed remote-sources and its test joins the route contracts.
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28095b3c-72b0-4425-97b9-cb494e49d391
📥 Commits

Reviewing files that changed from the base of the PR and between 0d74111 and 42702f0.

📒 Files selected for processing: 7
  • config/path-literal-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/check-path-literal-ratchet.mjs
  • config/scripts/check-path-literal-ratchet.test.mjs
  • config/scripts/pr-e2e-remote-fallback-route.test.mjs
  • config/scripts/pr-e2e-route-contracts.test.mjs
  • config/scripts/pr-e2e-source-routing.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 1e4d65e into main Oct 18, 2026
31 checks passed
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