Repository navigation
Count Only the Newest Check Suite Per Check in the Review Digest - #2337
Conversation
A rerun on the same head leaves its superseded run in the rollup, so a stale failure kept wait and status reading failed after the rerun passed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Keying on the app slug merged distinct workflows sharing a job name, and startedAt misordered overlapping runs. The Q_FULL rollup query now reads suite, check run, workflow, and app ids. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…superseded-check-run
Keep every check run of the newest suite per workflow or app and drop the runs of older suites. Jobs sharing a name inside one suite stay counted. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A name only an older suite carries stays in the digest, since the merge gate still reads it. The unread check run id is dropped from the query. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…superseded-check-run
The older-only test now asserts the kept names and conclusions, and the duplicate shared-name test is removed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2337 +/- ##
==========================================
Coverage ? 57.70%
==========================================
Files ? 16
Lines ? 7919
Branches ? 0
==========================================
Hits ? 4570
Misses ? 3349
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Migrate to full suite identifiers and add the requested query-shape and rerun regression tests.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Updates check-run normalization to count only the newest check suite in the review digest.
Changes:
- Adds suite and workflow metadata to the GraphQL query.
- Filters superseded suites while preserving valid same-suite runs.
- Adds regression coverage for suite selection and grouping.
| File | Description |
|---|---|
tests/test_pr_review.py |
Tests suite supersession and grouping behavior. |
scripts/pr_review.py |
Queries suite metadata and filters check runs. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Parser tests build the suite metadata directly, so a misspelled query field would disable the dedup without failing any of them. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A misspelled field fails GraphQL validation loudly, so only a dropped field disables the dedupe silently. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The docstring names the selected fields and no longer describes a failure mode. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…superseded-check-run
…er Concurrency, and Review Digest Fixes (#2349) ## Summary Promotes `develop` to `main` with twelve pull requests, each already reviewed and merged into `develop`: - [#2329](#2329) drops the KiCadLibrary merge-bot failure note now that its secrets exist. - [#2330](#2330) retires the stale blog gitattributes entry and corrects the blog's hooks row. - [#2331](#2331) scopes the publisher concurrency group to the ref and settles the D4.7 window. - [#2332](#2332) refuses history reads in a shallow hub clone. - [#2333](#2333) names the fetched commit in `hub-fetch-run.py` and tests its unborn-HEAD and probe paths. - [#2337](#2337) counts only the newest check suite per check in the review digest. - [#2340](#2340) deletes merge-bot heads from the closed event and splits the stub concurrency sentence. - [#2343](#2343) drops the branch ref from the version example and documents the file-target release variant. - [#2344](#2344) measures a wrapped Markdown sentence whole in the sentence-length check. - [#2345](#2345) makes the dispatcher own the strict-review pass for seats that cannot dispatch. - [#2346](#2346) adds a dependency-version `test-matrix` axis to the validate task. - [#2347](#2347) lints composite actions with shellcheck and the schema in the repo gate. Closes #2302 Closes #2325 Closes #2320 Closes #2300 Closes #2312 Closes #2323 Closes #2296 Closes #2294 Closes #2292 Closes #2311 Closes #2327 Closes #1421 Closes #2321 Closes #2334 Closes #2335 Closes #2318 Closes #2293 Closes #2297 Closes #2301 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
pr_review.pycounted check runs from superseded check suites, so after a close and reopen or a rerun on one head,waitandstatusread a stale failure.checkSuite{ databaseId app{ slug } workflowRun{ workflow{ databaseId } } }on each CheckRun.Addresses #2327
🤖 Generated with Claude Code