Skip to content

[CI] Let the first v3.6.0 tag build upload and name its release artifacts - #10282

Merged
timosachsenberg merged 2 commits into
developfrom
claude/confident-lovelace-muuw2w-release-tag
Sep 28, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/confident-lovelace-muuw2w-release-tag

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

3.6.0 will be released from the tag v3.6.0 without a release candidate, so that tag build is the first run of the tag path in release.yml (#9523). The nightly never runs three parts of it. A fourth problem also affects the nightly.

  1. Installer upload.
    • deploy-installer uploads to /OpenMSInstaller/release/3.6.0. The archive has no OpenMSInstaller/release/ yet, only nightly/ and experimental/.
    • Without --mkpath, rsync creates only the last directory of the destination, so the upload fails. publish-release (the GitHub release) and create-website-update depend on this upload, so they would be skipped too.
    • The rsync action already has a mkpath input. It is now set from has_version, so it applies only to releases and the nightly upload runs as before.
    • The docs upload needs no change, because Documentation/release/ exists.
  2. Package names.
    • A tag checkout is a detached HEAD, so the refspec CMake reads (git rev-parse --abbrev-ref HEAD) is HEAD. Until now only the refspecs release* and master got the plain version, so the tag build's installers would have been named 3.6.0-pre-HEAD-<date>.
    • Now, when the refspec is HEAD and HEAD is exactly the tag v<version> of the version in CMakeLists.txt, the tag becomes the refspec and the packages are named 3.6.0.
    • A tag that does not match the CMake version still gets the -pre-HEAD- name, which makes the mismatch visible.
    • For such a build, VersionInfo::getBranch() reports v3.6.0.
  3. Source tarball name. It was named after the version name, OpenMS-release-3.6.0.tar.gz, but the Bioconda recipes download OpenMS-<version>.tar.gz. A release's tarball is now OpenMS-3.6.0.tar.gz. Nightly tarballs keep their name, OpenMS-nightly-<date>.tar.gz.
  4. Source tarball content.
    • The tarball is taken from the workspace after the build, and the workspace also holds .ccache/, .vcpkg-cache/ and the third-party tools in _thirdparty/. The tar command now excludes these three directories.
    • The nightly's OpenMS-nightly-2026.09.25.tar.gz (run 36082352087) was 1.34 GB for that reason; OpenMS-3.5.0.tar.gz was 260 MB.

Server side

  • --mkpath works with the deploy key. The vcpkg cache upload in the same nightly run calls rsync … --mkpath … with the same ARCHIVE_RRSYNC_* secrets, and it succeeds.
  • Still open: whether /OpenMSInstaller/release/<version> is the intended place for releases. This is the "rsync server layout" item from New CI Build/Release Workflows #9523 (comment).

Not part of this PR

  • The Bioconda recipes' source URL (releases/download/release%2F{{ version }}/…) has to move to the v tag (releases/download/v{{ version }}/…) when the recipes are bumped to 3.6.0. That change belongs in bioconda-recipes.

Validation

Package names were checked with the real cmake/Modules/GetGitRevisionDescription.cmake and the changed block, configured in a scratch repository at version 3.6.0:

checkout refspec version string
tag checkout as actions/checkout does it (shallow, lightweight local tag) v3.6.0 3.6.0
annotated tag, shallow v3.6.0 3.6.0
full clone, detached at v3.6.0, with v3.6.1 on a later commit v3.6.0 3.6.0
nightly branch nightly 3.6.0-pre-nightly-<date> (as before)
detached at v3.6.1, which does not match CMake HEAD 3.6.0-pre-HEAD-<date> (as before)
detached at an untagged commit, e.g. a PR merge ref HEAD 3.6.0-pre-HEAD-<date> (as before)
release/3.6.0 branch release/3.6.0 3.6.0 (as before)
  • The tarball naming step, given the version action's outputs, produces OpenMS-3.6.0.tar.gz for v3.6.0 and OpenMS-nightly-<date>.tar.gz for a nightly. The nightly name is unchanged.
  • I ran the tar command on a mock workspace. Before this change the archive contained .ccache/, .vcpkg-cache/ and _thirdparty/; now it does not, and the source files are still in it.
  • actionlint and shellcheck report no new findings for release.yml.
  • Not tested: an actual tag run.

Checklist

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

Summary by CodeRabbit

  • Release Packaging
    • Release archives use version-based filenames, with versioned builds named consistently across archive creation, uploads, and downloads.
    • Source archives exclude build-generated caches and third-party workspace contents.
    • Builds tagged with an exact package version report the standard version instead of a prerelease identifier.
    • Installer deployment creates the release directory for versioned builds.

…acts

3.6.0 is tagged without a release candidate, so its tag build is the first
run of release.yml's tag path. The nightly never exercises three parts of it:

- Upload: dst is /OpenMSInstaller/release/3.6.0, but the archive has no
  OpenMSInstaller/release/ yet, and rsync without --mkpath creates only the
  last directory. The failed upload would also skip Publish Release (the
  GitHub release) and the website update, which depend on it. Pass mkpath
  for releases only, so the working nightly upload stays as it is.
- Package names: a tag checkout is a detached HEAD, so CMake named the
  packages 3.6.0-pre-HEAD-<date>. If HEAD is exactly the tag v<version> of
  this version, use the tag as refspec and name them 3.6.0.
- Source tarball: it was OpenMS-release-3.6.0.tar.gz; the Bioconda recipe
  downloads OpenMS-<version>.tar.gz. Nightly tarballs keep their name.

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

timosachsenberg commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

@poshul, could you quickly check the server side of this?

The v3.6.0 tag build uploads the installers to /OpenMSInstaller/release/3.6.0. The archive has no OpenMSInstaller/release/ yet, and rsync only creates the last directory of the destination. This PR therefore passes --mkpath for release uploads.

  1. Does the server's rsync accept --mkpath? Answered: yes. The vcpkg cache upload in nightly run 36082352087 calls rsync … --mkpath … with the same ARCHIVE_RRSYNC_* key, and it succeeds.
  2. Is /OpenMSInstaller/release/<version> where release installers should go?

If it is simpler, a one-time mkdir OpenMSInstaller/release on the server works too, and the mkpath change can be dropped from this PR.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 2bf36863-85b2-4e63-8a17-63581c531880

📥 Commits

Reviewing files that changed from the base of the PR and between 960a7f5 and 70c643a.

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

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


📝 Walkthrough

Walkthrough

CMake recognizes an exact tag matching the package version as a plain version. The release workflow computes a source archive filename based on build version state and uses it for archive creation, upload, and download. It excludes build-generated workspace contents and sets installer deployment’s mkpath based on has_version.

Changes

Release Versioning

Layer / File(s) Summary
Exact version tag handling
CMakeLists.txt
When Git tracking returns HEAD, CMake checks for an exact v<version> tag. That refspec now produces a plain package version.
Source archive naming and transfer
.github/workflows/release.yml
The workflow computes the tarball filename from version state and uses it for archive creation, artifact upload, and release download. The archive excludes .ccache, .vcpkg-cache, and _thirdparty. Installer deployment sets mkpath to has_version.

Suggested reviewers: castornova2

Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 70c64

No demonstrated issue blocks merging. Confirm the release destination with the server operator as part of deployment.

Architecture Summary

Architecture risk: 🔵 Low · up to 70c64

The change affects 1 system.

Changed systems: CMakeLists.txt

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CMakeLists.txt (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in CMakeLists.txt: When Git tracking succeeds with refspec HEAD, CMake queries for an exact tag matching the configured v<major>.<minor>.<patch> version and replaces the refspec with that tag only when it matches exactly.
  • observed — Modified behavior in CMakeLists.txt: The plain-version branch now also matches refspec v${OPENMS_PACKAGE_VERSION}; previously only release* and master matched, while other refs received a prerelease identifier.
  • observed — Modified behavior in .github/workflows/release.yml: The build-and-test job exposes the computed source tarball filename as the source_tarball output.
  • observed — Modified behavior in .github/workflows/release.yml: Adds a step that sets the tarball name to OpenMS-<version>.tar.gz when has_version is true, and to OpenMS-<version_name>.tar.gz otherwise.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: enabling the first v3.6.0 tag build to upload and correctly name release artifacts. It is specific and concise.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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 version tag,
Then names the tarball in its bag.
It leaves the build caches behind,
And sends the same archive down the line.
The release steps now match their name,
While carrots celebrate the change.

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

The tarball is taken from the workspace after the build, which also holds
.ccache, .vcpkg-cache and the third-party tools in _thirdparty. The
nightly's OpenMS-nightly-2026.09.25.tar.gz was 1.34 GB for that reason;
OpenMS-3.5.0.tar.gz was 260 MB. With this PR the release tarball becomes
the source the Bioconda recipes download, so exclude the three directories.

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

Copy link
Copy Markdown
Contributor Author

checked on build archive. should work

@timosachsenberg
timosachsenberg merged commit e0af76d into develop Sep 28, 2026
32 checks passed
@timosachsenberg
timosachsenberg deleted the claude/confident-lovelace-muuw2w-release-tag branch September 28, 2026 07:42
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