Repository navigation
docs(contributing): fix bump-PR review check for the reconciled stamp - #2147
Conversation
…tamp Since apache#2047 the bump also restamps .apache-magpie.lock, so the documented filter printed lock lines on every valid bump. Split it into a version-only check and a lock check, and use a three-dot diff so later main commits are not shown. Generated-by: Claude Code (Opus 5.5)
Kaap10
left a comment
There was a problem hiding this comment.
LGTM!, This fixes the false-positive output on bump PR reviews cleanly. Splitting the check into two filters works as expected—it allows the reconciled: date and skill surface hashes in .apache-magpie.lock to update without printing noisy diffs, while still catching any unintended changes. The three-dot diff (...) also nicely prevents subsequent commits on main from showing up.
Verified the regex against the existing skills and hash formats, and everything checks out.
This review was drafted by an AI-assisted tool and
confirmed by an Apache Magpie maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.More on how Apache Magpie handles maintainer review:
Contributing guide.
|
@potiuk It updates the “Reviewing a bump PR” check in CONTRIBUTING so it stops flagging the .apache-magpie.lock restamp that #2047 added, and it switches to a three-dot diff. The test plan in the description shows the new filters on the last four real bumps (#2116, #2074, #2066, #2054). CI is green. Thanks! |
Summary
CONTRIBUTING.mdprinted.apache-magpie.locklines on every valid bump since Restamp the reconciliation stamp on every dev bump #2047, when the bump started restamping thereconciled:block, so "should print nothing" was never true.at:date and skillsha256surface hashes.origin/main, so commits that landed onmainafter the bump no longer show up as changes.Type of change
docs/,README.md,CONTRIBUTING.md)Test plan
prek run --files CONTRIBUTING.mdpassestools/x.pychange and an injected non-hash line in.apache-magpie.lockmakes each filter print exactly the injected lines.mainprints 13,795 lines with..and 0 with....RFC-AI-0004 compliance
Not applicable (docs-only change to a maintainer review procedure).
Linked issues
Closes #2145
Notes for reviewers
The lock filter allows only lines shaped like
at: YYYY-MM-DDand<skill>: sha256:<16 hex>. A new key, a changedsource:ormethod:, or any other line in the lock still prints. A skill appearing in or disappearing from the stamp passes, which matches whatrefresh-reconciled-stamp.pydoes for new skills.Was generative AI tooling used to co-author this PR