Skip to content

docs(contributing): fix bump-PR review check for the reconciled stamp - #2147

Merged
KatalKavya96 merged 2 commits into
apache:mainfrom
KatalKavya96:docs/bump-review-check
Nov 19, 2026
Merged

KatalKavya96 merged 2 commits into
apache:mainfrom
KatalKavya96:docs/bump-review-check

Conversation

@KatalKavya96

Copy link
Copy Markdown
Member

Summary

  • The bump-PR review check in CONTRIBUTING.md printed .apache-magpie.lock lines on every valid bump since Restamp the reconciliation stamp on every dev bump #2047, when the bump started restamping the reconciled: block, so "should print nothing" was never true.
  • It is now split into two filters: every file except the lock may change only the version string, and the lock may change only the at: date and skill sha256 surface hashes.
  • It uses a three-dot diff against origin/main, so commits that landed on main after the bump no longer show up as changes.

Type of change

  • Documentation (docs/, README.md, CONTRIBUTING.md)

Test plan

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-DD and <skill>: sha256:<16 hex>. A new key, a changed source: or method:, or any other line in the lock still prints. A skill appearing in or disappearing from the stamp passes, which matches what refresh-reconciled-stamp.py does for new skills.


Was generative AI tooling used to co-author this PR
  • Yes: Claude Code was used to find the drift, draft the change and run the checks above. I reviewed and tested the change myself.

…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)
@KatalKavya96 KatalKavya96 changed the title docs(contributing): fix the bump-PR review check for the reconciled s… docs(contributing): fix bump-PR review check for the reconciled stamp Nov 16, 2026
@github-actions github-actions Bot added the family:docs Docs, MISSION.md, READMEs label Nov 16, 2026

@Kaap10 Kaap10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@KatalKavya96

Copy link
Copy Markdown
Member Author

@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!

@KatalKavya96
KatalKavya96 merged commit fdca3ac into apache:main Nov 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:docs Docs, MISSION.md, READMEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CONTRIBUTING: the bump-PR review check flags every valid bump

2 participants