Repository navigation
verify: opt-in PgBot migration verification; fix public-repo guard - #8
Merged
Merged
Conversation
The server picks the engine before provisioning; the run-unique branch name doubles as the idempotency key, and a replayed create (200, replayed: true) counts as created. 19/19 tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With server-side admission control on, a busy host answers 429 capacity_busy + Retry-After and creates nothing. The action now treats it like a quota wait: give back a partial hold, wait what the server asks (clamped 5-60 s) within capacity-wait, retry under a new name. 503 capacity_unavailable stays fatal. Without this, enabling admission would fail CI runs under load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
verify: true runs `pgrun bot verify --json` (pgrun-verify 1.x) before the mode's run and reports its verdict: job summary sections per category (success, informational warnings, dangerous operations with advice, confirmed failure, unsupported on PGX, incomplete, infrastructure error), annotations, and verify-verdict/-blocking/-categories/-report outputs. Blocking follows the report's `blocking` field under the explicit verify-fail-on / verify-block-on policy; a missing CLI or unreadable report is an `error` category, blocking only when block-on lists it. The token reaches pgrun by env only; the migration runs under env -u PGRUN_API_TOKEN, its output redacted and fenced by stop-commands. Each run writes into its own mktemp directory and never touches the run step's state. No unpinned CLI download: no verify-capable release is pinned yet. Off by default; existing steps unchanged. Tests: tests/test_verify.sh with a fake pgrun (52 checks, incl. 8 concurrent runs on one runner temp dir). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…/ treats false as empty) Found while integrating verify. A public repository's run went ahead in production-like mode, printing the sanitized copy's data into readable Actions logs was possible. Test added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alexshapalov
force-pushed
the
feat/pgbot-verify
branch
from
November 15, 2026 20:02
ab5fb57 to
622cf34
Compare
…t file On GitHub the runner's GITHUB_EVENT_PATH describes THIS (public) repository, so since the public-repository guard works (622cf34) it refused 43 of 52 verify tests in CI; locally the variable is unset and they passed. run_verify now defaults to a private-repository event; the guard tests pass their own. Reproduced locally with a public event: 9/52 before, 52/52 after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t file) c95784c fixed test_verify.sh; test_lifecycle.sh (the unit job) and test_rails_local.sh had the same leak: on GitHub the runner's GITHUB_EVENT_PATH describes this public repository, so the working public-repository guard refused 25 of 33 lifecycle tests. Reproduced locally with a public event: 8/33 before, 33/33 after; verify 52/52, guard 3/3, profile 30/30, node 20/20 under the same event. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Draft for review — do not merge or tag.
verifystep (verify: falseby default) runningpgrun bot verify: categories, policy-controlled blocking, job summary table, outputs.jq //treats false as empty); regression test added.🤖 Generated with Claude Code