Skip to content

[DOC] changelog-sync: also see PRs merged with a merge commit or by rebase - #10867

Open
timosachsenberg wants to merge 2 commits into
developfrom
claude/openms-test-release-readiness-ks3twg
Open

timosachsenberg wants to merge 2 commits into
developfrom
claude/openms-test-release-readiness-ks3twg

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

The changelog-sync agent finds recent changes with git log --since="8 days ago" --name-only. That command lists no files for a merge commit, and it drops branch commits older than the 8-day window. So the agent misses the changes of a PR that was merged with a merge commit: that is 65 of the 646 first-parent commits on develop between 2026-08-11 and 2026-11-09. Another 36 commits in that period come from rebase merges or direct pushes (e.g. #9800, #9769). They carry no PR number, so the agent cannot tell which PR they belong to.

Example: #10847 was merged on 2026-11-07 from a branch commit dated 2026-10-15. For a window starting on the merge day, the old command does not list its src/openms/source/SYSTEM/SysInfo.cpp, while git log --first-parent --diff-merges=first-parent --name-only does. A replay of 13 weekly windows (2026-08-17 to 2026-11-09, in the review) found 54 more files with the new command and none lost that the PRs' net diffs touch.

Changes in .github/workflows/changelog-sync.md:

  • The file list uses --first-parent --diff-merges=first-parent, which lists what each commit on develop brought in.
  • The PR list uses --first-parent and names both subject forms: (#N) for a squash merge, Merge pull request #N for a merge commit.
  • For a commit with neither form, the agent searches pull requests for its SHA (repo:OpenMS/OpenMS is:pr is:merged <sha>) and takes the PR merged in the window.

The workflow checks out the full history (fetch-depth: 0), so the flags work there. Only the prompt body changed: the frontmatter and its hash are unchanged, and the lock file imports the body at runtime, so no recompile is needed.

This was deferred from the review of #10838. The workflow itself is still disabled.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • I have commented my code, particularly in hard-to-understand areas (no code changes)
  • New and existing unit tests pass locally with my changes (documentation only)
  • Updated or added python bindings for changed or new classes (no updates necessary)

🤖 Generated with Claude Code

https://claude.ai/code/session_01HJitekJKm6HFXbNXbrdeof

Summary by CodeRabbit

  • Documentation
    • Updated recent-change guidance to use first-parent history and merge diffs when identifying files changed in the last eight days.
    • Clarified how to match merged pull requests, including rebased or direct-push commits traced by SHA.
    • Explicitly included packaging-only pull requests in the review guidance.

git log --name-only lists no files for a merge commit and drops branch
commits older than the 8-day window, so the agent missed the changes of a PR
merged with a merge commit (31 of 321 commits on develop in 90 days), e.g.
#10847: merged 2026-11-07 from a commit of 2026-10-15, its SysInfo.cpp was
not listed. --first-parent --diff-merges=first-parent lists what each commit
on develop brought in; the PR list uses --first-parent too and names both
subject forms. Deferred from the review of #10838.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HJitekJKm6HFXbNXbrdeof
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The changelog instructions now use first-parent history and first-parent merge diffs to identify files changed in the last eight days. They describe how to find related pull requests, trace rebased or direct-push commits by SHA, and include packaging-only pull requests in review.

Changes: Changelog history discovery

Layer / File(s) Summary
First-parent history commands
.github/workflows/changelog-sync.md
The instructions use first-parent history and merge diffs for file discovery. They explain how to identify merged pull requests, find pull requests for commits by SHA, and review packaging-only changes.

Possibly related PRs

Suggested reviewers: poshul

Change: Bug fix

Merge Risk: Minimal · up to e87b0

No merge-blocking risk was established for the history-discovery change.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly describes the changelog-sync update to include pull requests merged with a merge commit or by rebase.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · 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

A rabbit checks the branch’s first trail,
Finds changed files in the recent tale.
Merge commits and SHAs align,
Packaging changes join the line.
The changelog hops along just fine.

@timosachsenberg timosachsenberg left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AI-generated initial review

This is an automated, AI-generated first review. It looks only for high- and medium-priority issues (no nits) and checks whether the PR has tests and measurements. Please double-check anything before acting on it; a maintainer will follow up. I reviewed c8e3ce76 against develop (90e5a006).

CodeRabbit left no inline comments.

What I ran:

  • CI: everything had passed when I looked, except build-and-test (clang++ and Windows) and the Windows wheel, which were still running. The PR changes only the agent prompt, so CI doesn't exercise it.
  • Lock file: I confirmed what the description says. changelog-sync.lock.yml:169 imports the body at runtime ({{#runtime-import .github/workflows/changelog-sync.md}}), and the frontmatter is unchanged, so no recompile is needed. The agent job's checkout uses fetch-depth: 0 (:270), so --first-parent sees the real history. --diff-merges needs git ≥ 2.31; I used 2.43.
  • Replay on the real develop history: I fetched develop back to 2026-06-01 and replayed the step as 13 weekly runs, from 2026-08-17 to 2026-11-09. Each run used the tip of develop at that date, the 8-day window and the prompt's filter. I compared the old command with the new one:
    • The new command lists every file the old one lists, plus 54 more in 6 of the 13 weeks. Examples are the PeptDeep inference sources (week of 08-31), FFIDAlgoExternalIDHandler/PosteriorErrorProbabilityModel (09-07), the TMT 32/35-plex methods (10-19) and S3InputSource.h with 24 more files (10-26).
    • The only file the new command loses: 3 files in the week of 08-17 (PeakFileOptions.h/.cpp, bind_kernel.cpp). #9903 changed them and reverted the change on its branch, so its net diff into develop doesn't touch them. Not listing them is correct.
    • The #10847 example holds for a window that starts on the merge day: the old command lists 0 matches, the new one 1. In the real weekly window, the old command did list SysInfo.cpp, but only because #10815 also touched it. So the agent would have tied the file to #10815 alone.
  • Description figure: between 2026-08-11 and 2026-11-09 I count 65 merge commits among 646 first-parent commits on develop (926 commits in total), not 31 of 321. Your figure may come from a shallow clone or a different window. The conclusion is the same, but you may want to update the number.

Verdict:

  • High priority: none.
  • Medium priority: one. PRs merged by rebase or by a direct push still can't be tied to a PR number. This PR didn't cause it, but the new text lists two subject forms as if that covered every case.
  • Checked and fine: the file list and the PR list now walk the same first-parent history, and for a squash merge the output is unchanged.

Medium priority

1. PRs merged by rebase or a direct push have neither subject form

  • Where: .github/workflows/changelog-sync.md:64.

  • Why: in the same 90 days, 36 first-parent commits on develop carry neither (#N) nor Merge pull request #N. They come from 5 PRs that landed by rebase or a direct push:

    • #9800 "Vcpkg Windows and macOS Integration" (19 commits)
    • #9769 "Add user survey to installer" (9)
    • #9928 vcpkg guide (4)
    • #9751 weekly patch-release workflow
    • #10688 GCC 16 header fix

    The new file list does include their files, because they are first-parent commits. The PR list doesn't give the agent a number for them. #9800 and #9769 are exactly the packaging and installer changes that the next sentence asks the agent to read.

  • Mitigation: tell the agent how to find the PR for such a commit. The agent's default GitHub toolset includes pull request search, and GitHub search accepts a commit SHA. I tested it on one commit from each of the 5 PRs. It found the right PR each time. For 3 of them it also returned #10447, whose branch carried old develop history, so the text should say to take the PR merged in the window:

    -Then list the merged pull requests of the same period (`git log --since="8 days ago" --first-parent --oneline`; a squash merge ends with `(#<number>)`, a merge commit reads `Merge pull request #<number>`) and read the description of each one that touched those files.
    +Then list the merged pull requests of the same period (`git log --since="8 days ago" --first-parent --oneline`; a squash merge ends with `(#<number>)`, a merge commit reads `Merge pull request #<number>`). A commit with neither form came from a rebase merge or a direct push: search pull requests for its SHA (`repo:OpenMS/OpenMS is:pr is:merged <sha>`) and take the one merged in this period. Read the description of each pull request that touched those files.

Tests

  • None apply: the PR changes only the agent's prompt text. You checked the #10847 example locally, and the replay above confirms the change on 13 weeks of real history.

Measurements

  • The replay above serves as the measurement on real data. The new file discovery finds more of the changes that matter (54 files in 13 weeks) and loses none.

Generated by Claude Code

36 first-parent commits on develop in 90 days carry neither "(#N)" nor
"Merge pull request #N" (rebase merges and direct pushes, e.g. #9800 and #9769,
packaging changes the agent is asked to read). Tell the agent to search pull
requests for the commit SHA and take the one merged in the window. Review
finding on #10867.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HJitekJKm6HFXbNXbrdeof
@timosachsenberg timosachsenberg changed the title [DOC] changelog-sync: also see PRs merged with a merge commit [DOC] changelog-sync: also see PRs merged with a merge commit or by rebase Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

The initial review's medium finding is fixed in e87b0f0, with the suggested text. A commit that has neither subject form came from a rebase merge or a direct push, and the agent now searches pull requests for its SHA and takes the one merged in the window. I confirmed the counts on the full history from 2026-08-11 to 2026-11-09: 646 first-parent commits, of which 65 are merges and 36 have neither form. The description now uses these figures; my earlier 31 of 321 came from a shallow clone.


Generated by Claude Code

@coderabbitai coderabbitai Bot 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.

Additional comments: 1

.github/workflows/changelog-sync.md: 1

59-59: Minor · Functional Correctness · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Include installer templates in discovery.

PR #9769 changed only cmake/Windows/NSIS.template.in. The filter excludes that file, and the packaging exceptions on Line 64 do not include it. The new SHA lookup can identify the PR, but the agent still has no instruction to review it. Include installer templates in discovery or in the packaging exceptions. (github.com)

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a24fa4d9-0fc2-4ff2-9e34-b9a204b3a3e7
Commits

Reviewing files that changed from the base of the PR and between c8e3ce7 and e87b0f0.

Files selected for processing: 1

  • .github/workflows/changelog-sync.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Copy link
Copy Markdown
Contributor Author

On CodeRabbit's additional comment, "Minor", that installer templates such as cmake/Windows/NSIS.template.in (#9769) are left out: the point is fair. The file filter keeps .cmake files but not the .in templates, and the packaging list doesn't name cmake/ either. I'm leaving it as it is for now, because it is marked minor and not verified, and this PR is about the history walk. If this PR gets another code push, cmake/ packaging templates go into the packaging list with it.


Generated by Claude Code

This branch has not been deployed

No deployments
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