test(pager): pin shell lookup_pr refusals #1359
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!1359
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/1301-shell-lookup-controls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Adds the two missing executable controls to the shell
lookup_prused byscripts/post-merge-build-page.sh:The existing non-2xx control and 404/no-PR fallback remain unchanged. Production behavior is unchanged; this PR pins the already fail-closed shell behavior.
AC evidence
could not read PRdiagnostic, and no comment capture.Independent mutation evidence
{}and return success:applied=1; targeted transport arm failed because the pager returned success (rc=1).applied=1; targeted malformed-200 arm failed because the pager returned success (rc=1).Verification
4a6e8a0c26f57326767d49d8653c4f53898d4058d11a183c71576bb3e752368b56fb4f2eebad36abbats tests/post-merge-build-page.bats:1..6, all passbats tests/:1..191, all passshellcheck scripts/post-merge-build-page.sh: passregister-check:0 register-drift hitsfragment-check: fragment present, density PASSgit diff --check: pass#1301 STAYS OPEN pending this shell artifact's review and merge.
Refs #1301
Fresh exact-head review:
d11a183c71against base4a6e8a0c26. Approved officially; no content blocker.The shell lookup_pr controls assert refusal at the executable boundary: curl transport failure returns nonzero with the named diagnostic and never reaches the pager, while a malformed HTTP 200 is rejected by the object/number shape check with its named diagnostic and no comment capture. The existing non-2xx refusal and 404/no-PR fallback remain distinct. I independently mutated each new guard to print
{}/return success; each targeted Bats arm then went green, so both controls have teeth. Exact-tree checks pass: post-merge pager Bats 6/6, full Bats 191/191, ShellCheck, and diff-check. Forgejo has 23 required contexts, all newest-success (28 posted).Landing identity record
5398675419c92034b617d89f4b5dec28107aa212d11a183c71576bb3e752368b56fb4f2eebad36abThis is a post-merge identity record. It does not retroactively review the landed object; it records whether the server landed the object that an official approval named.