Skip to content

ci: check that a PR description completes the template - #2524

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:pr-description-check
Nov 26, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:pr-description-check

Conversation

@sbryngelson

@sbryngelson sbryngelson commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Adds the PR Description check: it fails while a pull request's description leaves out something the template asks of that kind of change.

1. Does it solve the problem?

Command that shows it:

python3 -m pytest toolchain/mfc/test_check_pr_description.py
Quantity master this PR expected
open PR descriptions flagged, of 16 (local dry run of the workflow's script) no check 16 16, none follows the new template
tests of the check none 70 pass all pass

Why the new result is right (analytic solution, reference data, convergence, ...): the tests build passing and failing descriptions by filling in the real template, so a template edit that the check cannot read fails them.

2. Does it create another one?

Check Result
Tests: command, number passed, number failed ./mfc.sh lint: 1100 passed, 0 failed; ./mfc.sh precheck passes
Golden files changed: count, largest difference, why 0
Not tested the workflow running on GitHub: it runs from the base branch, so only after merge

3. Is it slower?

N/A: no src/ or build files change.

Notes

  • Not a required check. It shows as failing but does not block merging until PR Description is added to the branch's required checks.
  • Open pull requests will show it failing the next time they are edited or pushed.
  • It runs from the base branch with a read-only token and reads the description as text; it runs none of the pull request's code. Bots are skipped.
  • It checks that the report is complete, and that src/ and build files did not change after the benchmarked commit. It cannot tell whether numbers or figures are true.
  • Authors without a GPU write No GPU access in section 3; the template now says so.
  • A branch older than PR template asks for evidence of a fix and its speed; bench_diff reports only grind time #2520 produces the old benchmark table and is asked to merge master.

Merged without waiting for CI.

The PR Description check fails while a section the change requires is missing, blank or N/A, or when src/ or build files changed after the benchmarked commit. Saying there is no GPU access replaces the speed results.
@sbryngelson
sbryngelson requested a review from a team as a code owner November 26, 2026 23:46
@sbryngelson
sbryngelson requested review from wilfonba and removed request for a team November 26, 2026 23:46
@sbryngelson
sbryngelson merged commit 7959afb into MFlowCode:master Nov 26, 2026
sbryngelson added a commit that referenced this pull request Nov 26, 2026
Descriptions are not checked in CI. This reverts #2524.
@github-actions

Copy link
Copy Markdown

Claude Code Review

Head SHA: 5a11e1a

No review was produced. Claude ran but wrote no review (Claude step: failure). Run and transcript: https://github.com/MFlowCode/MFC/actions/runs/45912875100

@sbryngelson
sbryngelson deleted the pr-description-check branch November 27, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant