Skip to content

NRA gate: post the gate's findings on the pull request - #1413

Merged
trissim merged 3 commits into
mainfrom
ccr-b17367e7-4095oh-nra-findings
Nov 2, 2026
Merged

trissim merged 3 commits into
mainfrom
ccr-b17367e7-4095oh-nra-findings

Conversation

@trissim

@trissim trissim commented Nov 2, 2026

Copy link
Copy Markdown

CI-reporting hotfix. Today a red "NRA gate" job keeps its verdict only in a job log of about 1 MB.

  • The gate step now saves its stderr, which holds NRA's verdict lines, to gate-findings.txt and still echoes it to the log.
  • A new step hands that file to Core's shared .github/actions/nra-findings action (NRA gate findings: one shared action posts the blocking verdict on the PR agent-comms#3880). The action is loaded from the same .core-gate checkout the gate runs from. It upserts one <!-- debt-src findings --> comment: blocking lines first, then the warn-only lines (Unformatted, LintFindings, GodClassExcess) in a collapsed section.
  • The job gets pull-requests: write so it can post the comment.

To prove it on this PR's own run, the second commit makes the gate red on purpose in src/toad/platform.py. It adds a TYPE_CHECKING import, a type error and unsorted imports. A revert commit follows once the comment is seen, so the net diff is only .github/workflows/ci.yml.


Generated by Claude Code

The NRA gate job kept its verdict lines only in a ~1 MB job log. It now
captures the gate's stderr and hands it to Core's shared
.github/actions/nra-findings action, from the same .core-gate checkout the
gate runs from, which upserts one "<!-- debt-src findings -->" comment with
the blocking lines first and warn-only ones apart. The job gets
pull-requests: write for that comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdttfQjtizEYZGek9Gh
Copilot AI balanced review requested due to automatic review settings November 2, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

debt-src at 7d34cbd passes.

@trissim
trissim merged commit 5dc4400 into main Nov 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants