Repository navigation
v1.93.18.0 fix(pregate): a green Free Tests run at the pregate tree clears gstack's remote gate (GST-1024) - #3883
Merged
Merged
Conversation
…at the pregate tree clears remote_gate (GST-1024) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…; validate skipped) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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.
What changed
clear --runon #3869's green Free Tests run: refused on main, accepted here. Five real wrong runs still refuse.Before/after as text: clear --run on #3869's green Free Tests run: refused on main, accepted here; five real wrong runs still refuse
Why
GST-1024: "a slow or contended VM blocks a PR even when CI is green at the same head." On #3869, every check passed at 3f2bcf3 (Free Tests run 41484634592). Two Ubicloud remote gate runs at the same tree still failed, on bun timeouts in files the PR doesn't touch. docs/pregate.md already described clearing the gate from a CI run, but gstack never declared it, so that route always refused. Now a green Free Tests run at the pregate tree clears
pregate.json/remote_gatewithgstack-pregate clear --remote pregate.json/remote_gate --run <run> --allow-repo-commands.Blast radius
The code change is one optional key,
remote_gate_runs.skipped, in the run-evidence clear. A repository that doesn't declare it, gbrain included, gets the same checks as before, because the new branch inclearByRunsruns only whenskippedis set. Evidence:test/pregate-clear-runs.test.tspasses unchanged (script ran). The profile, the inventory and the skipped command are all read from the base branch only, so this PR has no effect until it lands on main.Approvals
Source: gstack-approvals record for gst-1024-remote-gate-runs (display only; not an approval citation).
Summary
gstack declares the CI route (
.gstack/pregate.json).remote_gate_runsnames the existingci-reuse/free-testsprofile. That profile requires every Free Tests job to pass, a same-repository run, thefree-tests.ymlworkflow, apull_requestorworkflow_dispatchevent, and atested-treeartifact on the exact tree. The inventory isscripts/test-free-shards.ts --list, the same 1,534 files the Free Tests plan shards.Paid files need a
skippedlist (lib/run-evidence.ts,lib/pregate/index.ts,lib/pregate/run-check.ts). The declaration alone still refused #3869's run. All 71 selected files that tree.json didn't list are paid test files, whichscripts/ubicloud/pregate-remote.shleaves to the paid PR gate by design.remote_gate_runs.skippedis a command that reads the selected files fromPREGATE_FILES_FILEand prints the ones the gate never runs. gstack's uses the sameisPaidTestFilehelper the gate script uses. These rules keep it tight:skippednames it.skipped_failed).paid_only), the same as the gate's owntests=0.skipped=<n>.Proof
remote_gate_runs. The real GitHub runs gave these results (handoffs/GST-1024/proof3.login the Captain drive):tests=34079 skipped=71, andverifythen showed only the separate macOS lane uncleared.tree_not_stamp_only.workflow_mismatch.run_not_success.run_not_success.fork_run.On real main, the same run refuses because no
remote_gate_runsis declared.test/pregate-remote-gate-runs.test.tsfails all four of its tests on main 40a3170 (handoffs/GST-1024/red.log); on this branch all four succeed.Security read
skippedand inventory commands are pin-file commands. They run only under--allow-repo-commands, only when pregate.json's tree matches the working tree, and only from the base branch's copy of the config.skippedgets one new environment variable,PREGATE_FILES_FILE, pointing at a temporary file of selected paths that is removed infinally..github/workflows, setup, install or upgrade scripts. No outside code was carried over.Test Coverage
All new code paths have test coverage: the declaration's inventory equals the Free Tests plan, the skipped command's paid split, the clear through
buildRunCheckwith gstack's real profile, ten refusal controls, andskippedconfig validation.Tests ran: pregate-local 181
Tests ran: typecheck count unavailable
Tests ran: remote gate (Ubicloud us-east-a2) 1957, 0 failed, tree fb073508ddb0, $0.08
Pre-Landing Review
Pass 1 (gate class, full depth: batched testing, security and state-machines specialist, then Red Team) found 2 INFORMATIONAL findings, both fixed:
skippedvalidation had no negative tests; they are added now.--runwhile the gate refuses it; it now refuses withpaid_only.Pass 2 on the fix range found one INFORMATIONAL count error in the changelog, fixed at Step 13. Step 11 ran the native adversarial pass and the outside voice (openai/gpt-6.1-sol): NO FINDINGS from both.
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=1 fixed=2 scope=frozen ledgers_read=3 dispatches=4
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: completed, no findings.
Exploratory QA
The smoke probe was the real-run check above, run at this PR's code against live GitHub Actions runs: one success and five refusals, each with the reason the verifier names. The required plan checks are the four focused tests. No browser surface changed.
Design Review
No frontend files changed, so design review was skipped.
Eval Results
No prompt-related files changed, so evals were skipped.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). GST-1024 is the plan of record. The Captain waived /autoplan because this repairs a documented path.
TODOS
No TODO items completed in this PR.
Documentation
Status: current — the docs already match the change; no edits.
Scope: the committed diff 40a3170..60d7ae8 (
.gstack/pregate.json,lib/run-evidence.ts,lib/pregate/{index,run-check,config}.ts,changelog.d/gst-1024-remote-gate-runs.md,docs/pregate.md). There are no staged, unstaged or new files. I also searched every authored.mdand.tmplfile forremote_gate_runsand the remote-gate clear.Documentation health:
skipped, the reason codes, the receipt format and gstack's own-profiles paragraph all match the code.Coverage debt:
remote_gate_runs.skippedand the gstack Free Tests remote-gate clear have both reference and how-to coverage in docs/pregate.md. There's no tutorial, which is fine for a contributor-facing gate option. No architecture diagrams are affected.Test plan
bun test test/pregate-remote-gate-runs.test.ts test/pregate-clear-runs.test.ts test/run-evidence.test.ts test/pregate-user-policy.test.ts test/pregate-remote.test.ts test/pregate-remote-stamp-only.test.ts test/pregate-remote-gbrain.test.ts test/pregate-selection.test.ts test/ubicloud-pregate-remote.test.ts test/module-size-ratchet.test.ts test/spawnsync-timeout-tripwire.test.ts test/bun-entry-isolation.test.ts test/free-tests-workflow-wiring.test.ts: 181 pass, 0 failbun run typecheck: zero errorsbun run typecheck:test: 814 known diagnostics, none newUBICLOUD: left=0)