Skip to content

Count Only the Newest Check Suite Per Check in the Review Digest - #2337

Merged
ptr727 merged 11 commits into
developfrom
feature/pr-review-superseded-check-run
Oct 4, 2026
Merged

ptr727 merged 11 commits into
developfrom
feature/pr-review-superseded-check-run

Conversation

@ptr727

@ptr727 ptr727 commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Summary

pr_review.py counted check runs from superseded check suites, so after a close and reopen or a rerun on one head, wait and status read a stale failure.

  • The Q_FULL rollup query now reads checkSuite{ databaseId app{ slug } workflowRun{ workflow{ databaseId } } } on each CheckRun.
  • The digest keeps the newest suite per (workflow or app, check name), and every run of that suite. Same-named jobs in one suite all count, and a name only an older suite carries is kept.
  • A rerun of a superseded suite keeps its older suite id, so it does not override the newer suite.

Addresses #2327

🤖 Generated with Claude Code

ptr727 and others added 7 commits October 3, 2026 21:23
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]>
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]>
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]>
Copilot AI lite review requested due to automatic review settings October 4, 2026 14:53
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9d048368-abbd-4c63-8c22-20844bc1d094
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@2fc8d81). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2337   +/-   ##
==========================================
  Coverage           ?   57.70%           
==========================================
  Files              ?       16           
  Lines              ?     7919           
  Branches           ?        0           
==========================================
  Hits               ?     4570           
  Misses             ?     3349           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 57.70% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 Low severity

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.

Comment thread scripts/pr_review.py Resolved
ptr727 and others added 3 commits October 4, 2026 08:00
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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The changes and tests address stale suite handling; only a minor wording nit remains.

Review effort: Lite
Findings: None

Resolved since last review (1)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

@ptr727
ptr727 merged commit c9ed469 into develop Oct 4, 2026
11 checks passed
ptr727 added a commit that referenced this pull request Oct 4, 2026
…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)
@ptr727
ptr727 deleted the feature/pr-review-superseded-check-run branch October 4, 2026 17:35
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.

2 participants