Repository navigation
Review and shipping tools: seven small fixes to exclusions, issue links, PR description checks, build outputs, known-red tests and telemetry (GST-3464) - #4672
Merged
Conversation
… prose, build outputs, train base-red cases and a telemetry midnight race Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
4 of 5 tasks
…mmits (#4378) git log ends each commit with a newline after the format, so every entry after the first started with it and its label read `commit :`. Reading the log with -z ends each commit with NUL alone. The sweep test now sorts the ignored list it receives instead of relying on the walk's order. Co-authored-by: Davmunrey <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ed, and check a body whose opening is longer than the PR body rules allow Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…does, so the Agent notes marker and comments do not count Review-Finding: p2/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…re the PR body opening before code blocks collapse Review-Finding: p2/outside-voice#1 reader=outside-voice Review-Finding: p2/outside-voice#2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…character limit; rename the changelog fragment to the branch name Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 of 5 tasks
Merged
3 tasks done
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.
Fixes seven small bugs in the review and shipping tools: bad exclusion keys now refuse,
Review-Finding:lines are no longer issue references, older commits' issue mentions name their commit, and wording checks skip the PR's short opening lines.A native binary the checkout builds at a path its committed
.gitignorenames is no longer flagged as a download; the grouped-merge test gate can read the list of tests already failing on main from a file; and telemetry no longer logs a duplicate onboarding event when a run crosses midnight.Nothing to do; each fix has a test that fails on main.
What changed
lib/ship-policy.ts): the key filter used an unanchored pattern, so a key such asreview_exclude_paths[0]was set aside instead of refusing. It now matchesreview_exclude_pathsandreview_content_patternsexactly.lib/issue-links.ts, gstack-issue-links prints /ship's Review-Finding ledger ids (p1/red-team#3) as cross-repo issue references (Refs p1/red-team#3) #4371): aReview-Finding:trailer line is skipped when collecting issue references, so a finding that quotes#123no longer links that issue. This supersedes outside PR gstack-issue-links skips /ship's Review-Finding trailers (#4371) #4389, which fixed the same thing.bin/gstack-issue-links, gstack-issue-links prints an empty commit id for issue mentions from older commits #4378): the commit log is read withgit log -z, so each mention's label names its own commit instead ofcommit :. Reported and first fixed by @Davmunrey in gstack-issue-links names the older commit of each issue mention (#4378) #4388; rebuilt here with credit.lib/ship-receipt-prose.ts): the claim checks skip the plain opening above the first<details>fold (for example a result the PR is about) when that opening fits the 3-line, 600-character limit, measured the way the body shape check measures it. A body with no fold, or a longer opening, is still checked whole.lib/review-sweep.ts): a new large file is exempt only when it is an ELF, Mach-O or PE executable inside the checkout at a path the committed, unmodified root.gitignorenames exactly (for examplebin/gstack-cso-core). A build output that already existed when a stage started is not counted when the stage ends. Everything else, including a large file that replaces a test fixture folder, is still a download.crew/lib/ship-queue-train-*.ts, ship-queue ready --fixes-base-red still can't name a Vitest case with a comma or >, and it now blocks a fixer train (reopen of #4233) #4569):--fixes-base-red-file <file>reads the case list from a file, and JUnit attributes are entity-decoded so a case name with&matches.bin/gstack-telemetry-log): only onboarding markers dated before today are deleted, so a run that crosses midnight no longer logs a third event.Why
Each item is a bug someone hit while shipping. They caused false refusals from the PR description check, wrong issue links in PR bodies, a review stopped because the repo built its own binary, and test case names with commas or escaped characters that the merge gate could not match.
Blast radius
Only gstack's own review and shipping tools and the telemetry logger change. The fetch sweep's new exemption is narrow and sits on top of the existing check; every other large new file still stops the review. No defaults, settings or stored data change.
Pre-Landing Review
Two full review passes and one approved follow-up check, all on this PR.
REVIEW_LOOP: passes=2 blocking_found=3 deferred=0 noted=3 fixed=5 scope=frozen fix_checks=1 dispatches=4 est_input_tokens=24149
Gate edits: none detected (8 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Issues
Fixes #4371
Fixes #4378
Related: #4388 (@Davmunrey)
Contributed by @Davmunrey
TODOS
No TODO items completed in this PR.
Tests
Agent notes
Documentation audit
Status: updated. 2 factual corrections, no blockers.
Scope: commits c2b4f0d2..cb93ec4 plus the staged and unstaged changes: changelog.d rename, gstack-issue-links Review-Finding skip and commit naming, telemetry onboarding marker race, merge-train
--fixes-base-red-fileand JUnit entity decoding, review fetch sweepbuild-outputexemption, base policy exclusion-key filter, and--check-proseskipping the opening above the first fold. Docs audited: docs/pregate.md, docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md, captain/templates/merge-train-peer.md, crew/docs/captain.md.Documentation health
RECEIPT_PROSE_MISMATCHmeaning lists the skipped openingReview-Finding:skip (#4371)FETCH_IGNORED reason=build-output--fixes-base-red, which is still valid--fixes-base-red, which is still validCoverage debt:
--fixes-base-red-filehas reference docs only (docs/ship-policy.md) and no how-to example. The telemetry midnight fix is internal and has no doc. Neither gap needs a new page.Diagram drift: none; no diagrams reference the changed modules.
Approvals
Approved: yes (record r-d4d2f4b296f3). The full approval record stays private.
Plan: exempt: bug fix with a failing-first test for each item (--kind fix)
Plan check: exempt bug fix
Failing-first: each new test fails on main c2b4f0d and passes here. Round grant a-cd77f5b8b26c (GSTA-36) bought one scoped fix-check for p2/outside-voice#1 and #2. test/ship-issue-intent.test.ts's ISSUE_LINKS_MISSING case times out at 5 s on Capy machines on main as well; CI is the check.