Skip to content

GHA: create weekly patch workflow - #9751

Merged
jcharkow merged 1 commit into
OpenMS:developfrom
jcharkow:new_weekly_patch_workflow
Oct 9, 2026
Merged

jcharkow merged 1 commit into
OpenMS:developfrom
jcharkow:new_weekly_patch_workflow

Conversation

@jcharkow

@jcharkow jcharkow commented Jul 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This PR creates a new github action that will be used for patch releases.
Follows the general outline as described by @pjones

  1. Workflow kicks off once a week on a schedule (patch Tuesday?)

  2. Find the latest release branch (releases/vN.M.0).

  3. Check out that branch.

  4. Check if there have been any commits since the last tag matching
    vN.M.P. If there haven't been any commits then the workflow should
    exit with success or otherwise deactivate the remaining steps.

  5. Update the version number on the release branch, commit and push.

  6. Tag the release branch with vN.M.(P+1)

  7. Push the tag, triggering the normal release process.

Proper functioning is dependent on merge of #9742

Checklist

  • [ X] Make sure that you are listed in the AUTHORS file
  • [X ] Add relevant changes and new features to the CHANGELOG file
  • [X ] I have commented my code, particularly in hard-to-understand areas
  • [X ] New and existing unit tests pass locally with my changes
  • [ X] Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Summary by CodeRabbit

  • Chores
    • Automated weekly patch release processing is available, with manual runs also supported.
    • New patch versions are published when eligible updates are available; processing skips publication when no eligible release branch or new changes are found.
  • Documentation
    • The changelog now includes an OpenMS 3.6.0 development section covering changes across the project.

@jcharkow
jcharkow requested a review from pjones July 16, 2026 16:34
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1774bf52-1513-47b3-a917-b7e64e9f0ad2

📥 Commits

Reviewing files that changed from the base of the PR and between da891ba and 21ffa3e.


You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The new workflow runs weekly or manually. It authenticates with a GitHub App, finds the latest release branch and patch tag, checks for new commits, updates version files, and publishes the next patch tag when needed.

Changes

Weekly patch release

Layer / File(s) Summary
Workflow setup
.github/workflows/weekly_patch_workflow.yml
The workflow defines scheduled and manual triggers, creates an installation token, checks out full history, and configures Git identity.
Release detection and publishing
.github/workflows/weekly_patch_workflow.yml
The workflow selects the latest release branch, determines the next patch version, checks for new commits, and conditionally pushes version changes and a patch tag.

Sequence Diagram(s)

sequenceDiagram
  participant Trigger as Schedule or manual trigger
  participant Workflow as weekly_patch job
  participant Repository as GitHub repository
  participant VersionScript as update_version_numbers.sh
  Trigger->>Workflow: Start patch release job
  Workflow->>Repository: Authenticate and checkout full history
  Workflow->>Repository: Find release branch and latest patch tag
  Workflow->>Workflow: Count commits since patch tag
  Workflow->>VersionScript: Update version files when changes exist
  VersionScript->>Repository: Push release-branch commit
  Workflow->>Repository: Push next patch tag
Loading

Possibly related PRs

  • OpenMS/OpenMS#9523: Related release automation uses release-branch detection, patch tags, version updates, and GitHub Actions publishing.

Suggested reviewers: pjones


🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the added GitHub Actions workflow for weekly patch releases.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.


✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

🧪 Generate unit tests (beta)
  • Create PR with unit tests



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 weekly trail,
Finds the branch and newest tale.
If fresh commits hop in view,
Versions rise and tags follow too.
The release burrow runs anew.

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

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
.github/workflows/weekly_patch_workflow.yml (1)

35-37: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Anchor the branch regex to prevent matching unexpected suffixes.

The grep pattern will match any branch name that contains the pattern, such as origin/releases/v3.6.0-wip or origin/releases/v3.6.0.1. Adding an end-of-line anchor ($) ensures only strict release branches are matched.

🛠️ Proposed fix
           # 1. Identify the latest release branch (matching pattern releases/vN.M.0)
-          LATEST_BRANCH=$(git branch -r | grep -E 'origin/releases/v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/.*origin\///' | sort -V | tail -n 1)
+          LATEST_BRANCH=$(git branch -r | grep -E 'origin/releases/v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/.*origin\///' | sort -V | tail -n 1)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/weekly_patch_workflow.yml around lines 35 - 37, Update the
branch filter used to assign LATEST_BRANCH so its grep regular expression is
anchored at the end of the line, matching only strict releases/vN.M.0 branch
names and excluding suffixes such as -wip or an additional version component.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/weekly_patch_workflow.yml:
- Around line 52-54: Update the LATEST_TAG selection in the weekly patch
workflow to filter tags against a strict stable semantic-version pattern
matching only vMAJOR.MINOR.PATCH, excluding pre-release and release-candidate
suffixes before sorting and selecting the latest tag. Preserve the existing
version ordering and latest-tag behavior for valid stable tags.
- Around line 17-20: Update the actions/checkout step to use the RELEASE_PAT
secret via its token input instead of the default GITHUB_TOKEN, while preserving
fetch-depth: 0 so tag pushes can trigger downstream release workflows.

---

Nitpick comments:
In @.github/workflows/weekly_patch_workflow.yml:
- Around line 35-37: Update the branch filter used to assign LATEST_BRANCH so
its grep regular expression is anchored at the end of the line, matching only
strict releases/vN.M.0 branch names and excluding suffixes such as -wip or an
additional version component.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f8867e05-f57e-4b8c-bc60-922425cc35e7

📥 Commits

Reviewing files that changed from the base of the PR and between f48cc2d and 1c18469.

📒 Files selected for processing (1)
  • .github/workflows/weekly_patch_workflow.yml

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

🧹 Nitpick comments (1)
.github/workflows/weekly_patch_workflow.yml (1)

17-22: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Scope the GitHub App token to the current repository.

By default, the generated token inherits all permissions across all repositories accessible to the GitHub App installation. To follow the principle of least privilege and limit potential impact if the token is exposed, explicitly scope the token to just the current repository.

🛡️ Proposed fix to limit token scope
       - name: Generate GitHub App token
         id: app-token
         uses: actions/create-github-app-token@v2
         with:
           app-id: ${{ vars.OPENMS_GITHUB_APP_ID }}
           private-key: ${{ secrets.OPENMS_GITHUB_APP_PRIVATE_KEY }}
+          repositories: ${{ github.event.repository.name }}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/weekly_patch_workflow.yml around lines 17 - 22, Add the
current repository restriction to the create-github-app-token step identified by
id app-token, configuring its repository input to scope the generated token
exclusively to the repository running the workflow while preserving the existing
app credentials.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.github/workflows/weekly_patch_workflow.yml:
- Around line 17-22: Add the current repository restriction to the
create-github-app-token step identified by id app-token, configuring its
repository input to scope the generated token exclusively to the repository
running the workflow while preserving the existing app credentials.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c8051c2f-2539-4d98-847f-9b6ee23b9be1

📥 Commits

Reviewing files that changed from the base of the PR and between 1c18469 and cbdab16.

📒 Files selected for processing (1)
  • .github/workflows/weekly_patch_workflow.yml

@pjones pjones 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.

Looks really good. I only have a few very minor suggestions.

else
# safety net in case tag does not exist for the branch (should not happen though)
echo "Tag $LATEST_TAG does not exist. Assuming initial execution."
COMMITS_SINCE_TAG=1

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.

Even though this says "(should not happen though)" I think it can.

If git tag -l doesn't match anything then line 67 sets LATEST_TAG to a non-existent tag. Now, that probably can't happen if you've made it this far in the script. But to be cautious I think we should set COMMITS_SINCE_TAG to 0 in this case. I'd rather error on the side of not making bogus releases.


if [[ -z "$LATEST_BRANCH" ]]; then
echo "::error::No release branches matching 'releases/vN.M.0' found."
exit 1

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.

I wonder if we should exit with success and set changes_exist=false. If we merge this today it will fail until we get the rest of the release process in place and have released the next version of OpenMS. Thoughts?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

True I guess that this will fail today. Was too future looking when I wrote this. I'll comment this line out and exit with success for now but it might be worth throwing an error in the future when we get the release process all up and running.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think it is enough to just mark "changes_exist=false" since the git checkout will fail on the next line so will just exit in success for now with the warning message.

- name: Configure Git identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

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.

I believe that RFC 5322 forbids the use of square brackets in the local part of an email address. It can only be made up of dot-separated atext characters. Also, I know way too much about email addresses.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Even though this is a violation, I've seen it used a lot for github action workflows so I think it is probably best to keep it as it has become pseudo-standard.

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
.github/workflows/update_version_numbers.yml (1)

73-98: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the fixed update branch.

Line 73 creates a branch name that includes NEW_VERSION. Each tag push therefore creates a separate branch and pull request. Reuse update_package_number for checkout, push, and gh pr lookup so that later tag pushes update the same pull request.

Based on learnings: maintainer pjones prefers the fixed branch name update_package_number to prevent orphaned branches.

Proposed change
-          FULL_BRANCH_NAME=${BRANCH_NAME}_${NEW_VERSION}
-
           # 2. Configure Git using the actor's identity
           git config --global user.name "${{ github.actor }}"
           git config --global user.email "${{ github.actor }}`@users.noreply.github.com`"

           # 3. Checkout a clean branch and commit changes
-          git checkout -b "$FULL_BRANCH_NAME"
+          git checkout -B "$BRANCH_NAME"
           git add .
           git commit -m "Updated OpenMS package version number to $NEW_VERSION"

           # 4. Force push the changes to keep the PR branch updated
-          git push origin "$FULL_BRANCH_NAME" --force
+          git push origin "$BRANCH_NAME" --force

-          PR_EXISTS=$(gh pr list --head "$FULL_BRANCH_NAME" --base develop --state open --json number --jq '.[].number')
+          PR_EXISTS=$(gh pr list --head "$BRANCH_NAME" --base develop --state open --json number --jq '.[].number')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/update_version_numbers.yml around lines 73 - 98, Replace
the version-suffixed FULL_BRANCH_NAME flow with the fixed branch name
update_package_number. Update git checkout, push, PR lookup, and PR creation
references to consistently use update_package_number so subsequent tag pushes
reuse the same branch and pull request.

Source: Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/update_version_numbers.yml:
- Line 82: Update the git commit message in the workflow’s version-update step
to use the required [TAG1,TAG2] prefix, such as [GHA,VERSION], while retaining
$NEW_VERSION in the summary.

In `@CHANGELOG`:
- Line 20: Update the changelog entry’s reference to the target gated by
BUILD_TOPP_TOOLS: replace the incorrect TOPP_TOOLS target name with the actual
aggregate CMake target TOPP, while retaining the surrounding feature
description.

---

Nitpick comments:
In @.github/workflows/update_version_numbers.yml:
- Around line 73-98: Replace the version-suffixed FULL_BRANCH_NAME flow with the
fixed branch name update_package_number. Update git checkout, push, PR lookup,
and PR creation references to consistently use update_package_number so
subsequent tag pushes reuse the same branch and pull request.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2492b04c-70a7-472e-b2d4-5d92f8ee9c68

📥 Commits

Reviewing files that changed from the base of the PR and between cbdab16 and 180cee8.

📒 Files selected for processing (12)
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
  • .github/workflows/update_version_numbers.yml
  • .github/workflows/weekly_patch_workflow.yml
  • CHANGELOG
  • CMakeLists.txt
  • cmake/OpenMSConfig.cmake.in
  • cmake/cmake_findExternalLibs.cmake
  • doc/CMakeLists.txt
  • src/CMakeLists.txt
  • src/openms/CMakeLists.txt
  • src/openms/include/OpenMS/FORMAT/sources.cmake
  • src/tests/CMakeLists.txt
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/weekly_patch_workflow.yml

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 2

🧹 Nitpick comments (1)
.github/workflows/update_version_numbers.yml (1)

73-98: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the fixed update branch.

Line 73 creates a branch name that includes NEW_VERSION. Each tag push therefore creates a separate branch and pull request. Reuse update_package_number for checkout, push, and gh pr lookup so that later tag pushes update the same pull request.

Based on learnings: maintainer pjones prefers the fixed branch name update_package_number to prevent orphaned branches.

Proposed change
-          FULL_BRANCH_NAME=${BRANCH_NAME}_${NEW_VERSION}
-
           # 2. Configure Git using the actor's identity
           git config --global user.name "${{ github.actor }}"
           git config --global user.email "${{ github.actor }}`@users.noreply.github.com`"

           # 3. Checkout a clean branch and commit changes
-          git checkout -b "$FULL_BRANCH_NAME"
+          git checkout -B "$BRANCH_NAME"
           git add .
           git commit -m "Updated OpenMS package version number to $NEW_VERSION"

           # 4. Force push the changes to keep the PR branch updated
-          git push origin "$FULL_BRANCH_NAME" --force
+          git push origin "$BRANCH_NAME" --force

-          PR_EXISTS=$(gh pr list --head "$FULL_BRANCH_NAME" --base develop --state open --json number --jq '.[].number')
+          PR_EXISTS=$(gh pr list --head "$BRANCH_NAME" --base develop --state open --json number --jq '.[].number')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/update_version_numbers.yml around lines 73 - 98, Replace
the version-suffixed FULL_BRANCH_NAME flow with the fixed branch name
update_package_number. Update git checkout, push, PR lookup, and PR creation
references to consistently use update_package_number so subsequent tag pushes
reuse the same branch and pull request.

Source: Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/update_version_numbers.yml:
- Line 82: Update the git commit message in the workflow’s version-update step
to use the required [TAG1,TAG2] prefix, such as [GHA,VERSION], while retaining
$NEW_VERSION in the summary.

In `@CHANGELOG`:
- Line 20: Update the changelog entry’s reference to the target gated by
BUILD_TOPP_TOOLS: replace the incorrect TOPP_TOOLS target name with the actual
aggregate CMake target TOPP, while retaining the surrounding feature
description.

---

Nitpick comments:
In @.github/workflows/update_version_numbers.yml:
- Around line 73-98: Replace the version-suffixed FULL_BRANCH_NAME flow with the
fixed branch name update_package_number. Update git checkout, push, PR lookup,
and PR creation references to consistently use update_package_number so
subsequent tag pushes reuse the same branch and pull request.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2492b04c-70a7-472e-b2d4-5d92f8ee9c68

📥 Commits

Reviewing files that changed from the base of the PR and between cbdab16 and 180cee8.

📒 Files selected for processing (12)
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
  • .github/workflows/update_version_numbers.yml
  • .github/workflows/weekly_patch_workflow.yml
  • CHANGELOG
  • CMakeLists.txt
  • cmake/OpenMSConfig.cmake.in
  • cmake/cmake_findExternalLibs.cmake
  • doc/CMakeLists.txt
  • src/CMakeLists.txt
  • src/openms/CMakeLists.txt
  • src/openms/include/OpenMS/FORMAT/sources.cmake
  • src/tests/CMakeLists.txt
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/weekly_patch_workflow.yml
🛑 Comments failed to post (2)
.github/workflows/update_version_numbers.yml (1)

82-82: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use the required commit-message format.

The generated message has no [TAG1,TAG2] prefix. Use a compliant summary, such as [GHA,VERSION] Update OpenMS package version to $NEW_VERSION.

As per coding guidelines: “Use commit messages formatted as [TAG1,TAG2] short summary.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/update_version_numbers.yml at line 82, Update the git
commit message in the workflow’s version-update step to use the required
[TAG1,TAG2] prefix, such as [GHA,VERSION], while retaining $NEW_VERSION in the
summary.

Source: Coding guidelines

CHANGELOG (1)

20-20: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use the actual CMake target name in the changelog.

Line 20 calls TOPP_TOOLS a target. In src/topp/CMakeLists.txt lines 61-67, TOPP is the aggregate CMake target, while TOPP_TOOLS is an internal cache variable containing the tool list. Update the wording.

Proposed wording change
-its TOPP_TOOLS target
+the TOPP target and TOPP_TOOLS cache list
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

  - Feature: standalone consumers can now build and install a core-only OpenMS SDK by disabling TOPP tools and GUI support. New CMake options BUILD_TOPP_TOOLS (default ON) gates the src/topp subdirectory and the TOPP target and TOPP_TOOLS cache list, and INSTALL_OPENMS_EXAMPLES (default ON) gates installing the example data; TOPP/pipeline tests (ENABLE_TOPP_TESTING, ENABLE_PIPELINE_TESTING) default to following BUILD_TOPP_TOOLS, and ENABLE_CWL_GENERATION / ENABLE_PREPARE_KNIME_PACKAGE now fail configuration with a clear error if requested while BUILD_TOPP_TOOLS is OFF instead of breaking later in the build. The installed core SDK now also ships the OpenMS BSD-3-Clause license and the public Bruker tims imaging header, and the Thermo RawFileReader license is assigned to the 'share' install component. Defaults are unchanged, so existing full OpenMS builds retain current behavior (`#9752`)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG` at line 20, Update the changelog entry’s reference to the target
gated by BUILD_TOPP_TOOLS: replace the incorrect TOPP_TOOLS target name with the
actual aggregate CMake target TOPP, while retaining the surrounding feature
description.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/weekly_patch_workflow.yml:
- Around line 44-45: Update the LATEST_BRANCH extraction to match only complete
release branch names in the releases/vN.M.0 format, requiring the final numeric
component to be 0 and anchoring the pattern to the full branch name. Exclude
patch releases such as vN.M.1 and suffixed names such as vN.M.0-rc while
preserving the existing sorting and latest-branch selection.
- Around line 12-14: Add a GitHub Actions concurrency group to the weekly_patch
workflow so scheduled and manually triggered runs cannot execute simultaneously.
Configure the group at the workflow or weekly_patch job level, using an
appropriate stable identifier and preserving the existing ubuntu-latest runner
configuration.
- Around line 107-116: Update the release flow around the commit push and tag
creation so the version-bump branch ref and NEW_TAG are pushed together in a
single atomic git push. Create the tag before pushing, remove the separate
branch and tag push commands, and preserve the existing commit message and tag
naming.
- Around line 19-22: Add the create-github-app-token step’s permission-contents
input with a write value, alongside app-id and private-key, so the generated
token is limited to the repository contents permission.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 40dcd47b-3147-4599-8d7d-26d33642d566

📥 Commits

Reviewing files that changed from the base of the PR and between f176836 and 9f3ec47.

📒 Files selected for processing (1)
  • .github/workflows/weekly_patch_workflow.yml

Comment on lines +12 to +14
jobs:
weekly_patch:
runs-on: ubuntu-latest

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.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Serialize patch-release executions.

A manual run can overlap the scheduled run. Both runs can calculate the same NEW_PATCH, and one run can fail after the other publishes the release. GitHub Actions permits concurrent workflow runs unless a concurrency group restricts them. (docs.github.com)

Proposed fix
   weekly_patch:
+    concurrency:
+      group: weekly-openms-patch-release
+      cancel-in-progress: false
     runs-on: ubuntu-latest
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
jobs:
weekly_patch:
runs-on: ubuntu-latest
jobs:
weekly_patch:
concurrency:
group: weekly-openms-patch-release
cancel-in-progress: false
runs-on: ubuntu-latest
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/weekly_patch_workflow.yml around lines 12 - 14, Add a
GitHub Actions concurrency group to the weekly_patch workflow so scheduled and
manually triggered runs cannot execute simultaneously. Configure the group at
the workflow or weekly_patch job level, using an appropriate stable identifier
and preserving the existing ubuntu-latest runner configuration.

Comment on lines +19 to +22
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.OPENMS_GITHUB_APP_ID }}
private-key: ${{ secrets.OPENMS_GITHUB_APP_PRIVATE_KEY }}

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.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- workflow ---'
cat -n .github/workflows/weekly_patch_workflow.yml

printf '%s\n' '--- token-action references ---'
rg -n -C 4 'create-github-app-token|permission-[a-z-]+|permissions:' .github/workflows .github 2>/dev/null || true

Repository: OpenMS/OpenMS

Length of output: 33885


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- create-github-app-token@v2 action metadata ---'
curl -fsSL https://raw.githubusercontent.com/actions/create-github-app-token/v2/action.yml |
  sed -n '1,220p'

printf '%s\n' '--- workflow command usage ---'
python3 - <<'PY'
from pathlib import Path
p = Path(".github/workflows/weekly_patch_workflow.yml")
text = p.read_text()
for i, line in enumerate(text.splitlines(), 1):
    if 16 <= i <= 117 and any(x in line for x in ("git ", "bash ", "uses:", "with:", "token:", "permission-")):
        print(f"{i}: {line}")
PY

Repository: OpenMS/OpenMS

Length of output: 12397


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- action documentation for permission behavior ---'
curl -fsSL https://raw.githubusercontent.com/actions/create-github-app-token/v2/README.md |
  rg -n -A 18 -B 8 'permission-contents|permissions|If you do not specify any permissions|only those permissions'

printf '%s\n' '--- action implementation references ---'
curl -fsSL https://raw.githubusercontent.com/actions/create-github-app-token/v2/dist/main.cjs |
  rg -o -n '.{0,180}(permission-|permissions|permissionsToRequest).{0,240}' |
  head -n 40

Repository: OpenMS/OpenMS

Length of output: 6368


Restrict the GitHub App token permissions.

This workflow only uses repository contents access. Add permission-contents: write to the token step. Without this input, the token inherits all installation permissions.

🧰 Tools
🪛 zizmor (1.29.0)

[error] 19-19: dangerous use of GitHub App tokens (github-app): app token inherits blanket installation permissions

(github-app)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/weekly_patch_workflow.yml around lines 19 - 22, Add the
create-github-app-token step’s permission-contents input with a write value,
alongside app-id and private-key, so the generated token is limited to the
repository contents permission.

Source: Linters/SAST tools

Comment on lines +44 to +45
# 1. Identify the latest release branch (matching pattern releases/vN.M.0)
LATEST_BRANCH=$(git branch -r | grep -E 'origin/releases/v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/.*origin\///' | sort -V | tail -n 1)

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.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Match only complete release-branch names.

The expression accepts releases/vN.M.1 and prefixes such as releases/vN.M.0-rc. If either branch exists, the workflow can update and tag the wrong branch.

Proposed fix
-          LATEST_BRANCH=$(git branch -r | grep -E 'origin/releases/v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/.*origin\///' | sort -V | tail -n 1)
+          LATEST_BRANCH=$(git branch -r | sed -nE 's|^[[:space:]]*origin/(releases/v[0-9]+\.[0-9]+\.0)$|\1|p' | sort -V | tail -n 1)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# 1. Identify the latest release branch (matching pattern releases/vN.M.0)
LATEST_BRANCH=$(git branch -r | grep -E 'origin/releases/v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/.*origin\///' | sort -V | tail -n 1)
# 1. Identify the latest release branch (matching pattern releases/vN.M.0)
LATEST_BRANCH=$(git branch -r | sed -nE 's|^[[:space:]]*origin/(releases/v[0-9]+\.[0-9]+\.0)$|\1|p' | sort -V | tail -n 1)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/weekly_patch_workflow.yml around lines 44 - 45, Update the
LATEST_BRANCH extraction to match only complete release branch names in the
releases/vN.M.0 format, requiring the final numeric component to be 0 and
anchoring the pattern to the full branch name. Exclude patch releases such as
vN.M.1 and suffixed names such as vN.M.0-rc while preserving the existing
sorting and latest-branch selection.

Comment on lines +107 to +116
# 2. Commit and push the version updates back to the release branch
git add .
git commit -m "Bump version to $MAJOR.$MINOR.$NEW_PATCH"
git push origin HEAD:"$BRANCH_NAME"

# 3. Tag the release branch with vN.M.(P+1) and push it
NEW_TAG="v$MAJOR.$MINOR.$NEW_PATCH"
echo "Tagging and pushing $NEW_TAG..."
git tag "$NEW_TAG"
git push origin "$NEW_TAG"

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.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Push the version commit and tag atomically.

If the tag push fails, line 110 has already published the version-bump commit. The release branch then has a new version without its corresponding patch tag. Push both refs with one atomic operation.

Proposed fix
           git add .
           git commit -m "Bump version to $MAJOR.$MINOR.$NEW_PATCH"
-          git push origin HEAD:"$BRANCH_NAME"
 
           # 3. Tag the release branch with vN.M.(P+1) and push it
           NEW_TAG="v$MAJOR.$MINOR.$NEW_PATCH"
           echo "Tagging and pushing $NEW_TAG..."
           git tag "$NEW_TAG"
-          git push origin "$NEW_TAG"
+          git push --atomic origin HEAD:"$BRANCH_NAME" "refs/tags/$NEW_TAG"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# 2. Commit and push the version updates back to the release branch
git add .
git commit -m "Bump version to $MAJOR.$MINOR.$NEW_PATCH"
git push origin HEAD:"$BRANCH_NAME"
# 3. Tag the release branch with vN.M.(P+1) and push it
NEW_TAG="v$MAJOR.$MINOR.$NEW_PATCH"
echo "Tagging and pushing $NEW_TAG..."
git tag "$NEW_TAG"
git push origin "$NEW_TAG"
# 2. Commit and push the version updates back to the release branch
git add .
git commit -m "Bump version to $MAJOR.$MINOR.$NEW_PATCH"
# 3. Tag the release branch with vN.M.(P+1) and push it
NEW_TAG="v$MAJOR.$MINOR.$NEW_PATCH"
echo "Tagging and pushing $NEW_TAG..."
git tag "$NEW_TAG"
git push --atomic origin HEAD:"$BRANCH_NAME" "refs/tags/$NEW_TAG"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/weekly_patch_workflow.yml around lines 107 - 116, Update
the release flow around the commit push and tag creation so the version-bump
branch ref and NEW_TAG are pushed together in a single atomic git push. Create
the tag before pushing, remove the separate branch and tag push commands, and
preserve the existing commit message and tag naming.

@jcharkow

Copy link
Copy Markdown
Collaborator Author

@pjones I realised that this PR never got merged. Is this PR still relevant or was it already implemented. Currently we cannot merge since "this branch cannot be rebased due to conflict"

@pjones

pjones commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Yes, we still need this. It will need to be rebased and merged after @timosachsenberg releases OpenMS 3.6.0.

@jcharkow
jcharkow force-pushed the new_weekly_patch_workflow branch from da891ba to 576f87c Compare October 9, 2026 15:51
general outline

Workflow kicks off once a week on a schedule (patch Tuesday?)

Find the latest release branch (releases/vN.M.0).

Check out that branch.

Check if there have been any commits since the last tag matching
vN.M.P. If there haven't been any commits then the workflow should
exit with success or otherwise deactivate the remaining steps.

Update the version number on the release branch, commit and push.

Tag the release branch with vN.M.(P+1)

Push the tag, triggering the normal release process.
@jcharkow
jcharkow force-pushed the new_weekly_patch_workflow branch from 576f87c to 21ffa3e Compare October 9, 2026 16:01
@jcharkow
jcharkow merged commit a6bfd1e into OpenMS:develop Oct 9, 2026
31 checks passed
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