Repository navigation
ci: path-literal check scans live gate references; historical gate commands move to currentCommand - #30252
Merged
Conversation
…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.
Contributor
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
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.
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
check-path-literal-ratchet.mjs): inconfig/reliability-gates.jsoncit now reads only each gate'scommandsandtestFiles. 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.commands, and the evidence runs now name the successor command throughcurrentCommand, the manifest's existing mechanism. Each evidence run's owncommandtext is unchanged.runtime.headless-desktop-promotion-continuity) droppedsrc/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.ssh.orcad-remote-fallbackis renamedssh.orcad-remote-sources. It matches on its own, not as a fallback.pr-e2e-route-contracts.test.mjswith the other route contracts and uses the sharedMANAGED_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
currentCommandkeeps 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.mjsandpr-e2e-route-contracts.test.mjspass. A new test pins that evidence prose and runs are not scanned.check-reliability-gates.mjspasses (148 gates), and the path-literal ratchet is OK.currentCommand. Round 2: clean.