Repository navigation
Cleanup tags - #8036
Cleanup tags#8036
Conversation
Fix destination paths for KNIME artifact downloads.
Change logo scaling for installer to "tofit"
updated link to flashdeconv web site
Disable mac installer logo
* add libyaml dependency * proper fix
fix download-artifact issue
WalkthroughThe GitHub Actions workflow was updated to use a newer release-action version, correct symbolic link targets for installer marking, and consolidate tag creation and updating logic into a single function that checks for tag existence and SHA consistency before proceeding. No changes were made to exported or public code entities. Changes
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
cmake/package_mac_productbuild.cmake (1)
45-47: Remove unused commented CPack background settings
These three commented lines are no longer needed. Removing them will clean up the packaging configuration.
Apply this diff:-# set(CPACK_PRODUCTBUILD_BACKGROUND ${OPENMS_LOGOSMALL_NAME}) -# set(CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT "bottomleft") -# set(CPACK_PRODUCTBUILD_BACKGROUND_SCALING "tofit").github/workflows/openms_ci_matrix_full.yml (1)
986-986: Remove trailing spaces
Several lines contain trailing whitespace, which can cause linting errors. Please remove the extra spaces at these lines.
Apply this diff:- - name: run GHA release action. ← trailing spaces + - name: run GHA release action.- /repos/${REPO}/git/refs/tags/${TAG_NAME} 2>/dev/null || echo "TAG_NOT_FOUND" + /repos/${REPO}/git/refs/tags/${TAG_NAME} 2>/dev/null || echo "TAG_NOT_FOUND"- EXISTING_SHA=$(echo $TAG_EXISTS | jq -r '.object.sha') + EXISTING_SHA=$(echo $TAG_EXISTS | jq -r '.object.sha')- if [[ "$TAG_EXISTS" == "TAG_NOT_FOUND" ]]; then + if [[ "$TAG_EXISTS" == "TAG_NOT_FOUND" ]]; thenAlso applies to: 993-993, 1000-1000, 1014-1014
🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 986-986: trailing spaces
(trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
src/openms_gui/source/VISUAL/ICONS/TOPP_about.pngis excluded by!**/*.png
📒 Files selected for processing (5)
.github/workflows/openms_ci_matrix_full.yml(5 hunks)cmake/package_deb.cmake(1 hunks)cmake/package_mac_productbuild.cmake(1 hunks)src/openms/extern/tool_description_lib/tdl-config.cmake(1 hunks)src/openms_gui/source/VISUAL/APPLICATIONS/FLASHDeconvWizardBase.cpp(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/openms_ci_matrix_full.yml
[error] 986-986: trailing spaces
(trailing-spaces)
[error] 993-993: trailing spaces
(trailing-spaces)
[error] 1000-1000: trailing spaces
(trailing-spaces)
[error] 1014-1014: trailing spaces
(trailing-spaces)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: build-and-test (macos-13, xcode, 14.2)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
- GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
- GitHub Check: cppcheck-test
🔇 Additional comments (8)
src/openms_gui/source/VISUAL/APPLICATIONS/FLASHDeconvWizardBase.cpp (1)
63-67: Update of FLASHDeconv homepage URL
The homepage link has been corrected to the proper applications path and error handling remains consistent..github/workflows/openms_ci_matrix_full.yml (5)
576-578: Consolidate multiple installer artifacts
Addingmerge-multiple: trueensures that all matching installer artifacts are downloaded in one step rather than creating multiple separate downloads.
771-772: Consolidate multiple KNIME artifacts
The samemerge-multiple: trueflag is applied for KNIME artifacts, simplifying downstream steps by providing a single archive.
673-682: Use draft release creation only when requested
The draft release is created withncipollo/[email protected]underif: inputs.do_release. This cleanly separates draft creation (indeploy-installer) from publication (indo-release).🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 674-674: trailing spaces
(trailing-spaces)
969-979: Publish finalized release only indo-releasejob
The second invocation ofncipollo/[email protected]runs withdraft: false,allowUpdates, andupdateOnlyUnreleased, ensuring the release is only published during thedo-releasestep.
989-1023: Robust tag handling with verification
ThehandleGitTagfunction correctly checks if a tag exists, creates it if missing, or verifies it points to the expected SHA before proceeding. This prevents accidental tag overwrites.🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 993-993: trailing spaces
(trailing-spaces)
[error] 1000-1000: trailing spaces
(trailing-spaces)
[error] 1014-1014: trailing spaces
(trailing-spaces)
cmake/package_deb.cmake (1)
77-77: Add YAML-CPP as Debian package dependency
The Debian package dependencies have been extended to includelibyaml-cpp0.7 | libyaml-cpp0.8, matching the CMake configuration changes and ensuring the YAML C++ library is available at runtime.src/openms/extern/tool_description_lib/tdl-config.cmake (1)
27-27: DisableYAML_CPP_INSTALLoption for TDL
Commenting outYAML_CPP_INSTALLdelegates yaml-cpp installation control to the higher-level packaging configuration, keeping this fetch-and-build script focused on building only.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/openms_ci_matrix_full.yml (2)
989-1024: Refactor tag creation intohandleGitTagfunction.Centralizing tag logic into a single Bash function reduces duplication and enforces consistent behavior (no silent tag overwrites). Consider improving HTTP error checking (e.g., explicitly handling non-404 errors) and validating that
TAG_NAMEcontaining slashes (release/x.y.z) is acceptable for all repositories.🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 993-993: trailing spaces
(trailing-spaces)
[error] 1000-1000: trailing spaces
(trailing-spaces)
[error] 1014-1014: trailing spaces
(trailing-spaces)
986-986: Remove trailing spaces flagged by YAMLlint.Lines 986, 993, 1000, and 1014 contain trailing whitespace; please trim these to satisfy YAML linting.
Also applies to: 993-993, 1000-1000, 1014-1014
🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 986-986: trailing spaces
(trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/openms_ci_matrix_full.yml(6 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/openms_ci_matrix_full.yml
[error] 986-986: trailing spaces
(trailing-spaces)
[error] 993-993: trailing spaces
(trailing-spaces)
[error] 1000-1000: trailing spaces
(trailing-spaces)
[error] 1014-1014: trailing spaces
(trailing-spaces)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (macos-13, xcode, 14.2)
- GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
- GitHub Check: cppcheck-test
🔇 Additional comments (6)
.github/workflows/openms_ci_matrix_full.yml (6)
573-577: Approvemerge-multiple: truefor installer artifacts.Consolidating multiple installer artifacts into a single download simplifies downstream steps and avoids missing files across matrix builds.
769-771: Approvemerge-multiple: truefor KNIME artifacts.Same rationale for KNIME artifacts; merging ensures a single download of all payloads.
671-673: Verify upgrade toncipollo/[email protected].The action version bump in
deploy-installermust support the new parameters (artifactErrorsFailBuild,makeLatest). Please confirm compatibility with existing workflow behavior.
936-944: LGTM: Corrected installer symlink path.Switching the symlink target from
./$folderto../$folderfixes the path for the “latest” link on the remote server.
966-979: Extract “publish” into its own release step.Moving the publish action into the
do-releasejob with explicit flags (allowUpdates,updateOnlyUnreleased, etc.) cleanly separates draft creation and publication. Please verify thatomitBodyDuringUpdateandomitNameDuringUpdatebehave as intended when updating existing releases.
1034-1041: VerifyhandleGitTaginvocations and SHA lookups.Ensure that each
curl-based SHA extraction matches the correct GitHub API endpoint (e.g.,git/ref/headsvs.contents) and that the resulting SHAs forcontrib,pyopenms-docs, and others are valid commit object SHAs. This prevents tags from pointing to incorrect objects.
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| run: | | ||
| function createGitTag() { | ||
| function handleGitTag() { |
There was a problem hiding this comment.
Maybe source or execute a script from the tools folder to keep the action clean once stable.
There was a problem hiding this comment.
Good idea. I'll add a note here so I remember after the next release cycle.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/openms_ci_matrix_full.yml (2)
990-1025: Refactor Tag Management intohandleGitTagFunctionThe new
handleGitTagfunction centralizes tag creation and verification, preventing accidental overwrites of existing tags. Consider declaringREPO,SHA, andTAG_NAMEaslocalvariables and quoting expansions to harden the function against word-splitting and improve maintainability:function handleGitTag() { - REPO=$1 - SHA=$2 + local REPO="$1" + local SHA="$2" + local TAG_NAME="${RUN_NAME}"🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 994-994: trailing spaces
(trailing-spaces)
[error] 1001-1001: trailing spaces
(trailing-spaces)
[error] 1015-1015: trailing spaces
(trailing-spaces)
987-987: Remove Trailing WhitespaceThere are trailing spaces on these lines flagged by YAMLlint. Please remove them to ensure clean formatting:
- Line 987
- Line 994
- Line 1001
- Line 1015
Also applies to: 994-994, 1001-1001, 1015-1015
🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 987-987: trailing spaces
(trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/openms_ci_matrix_full.yml(4 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/openms_ci_matrix_full.yml
[error] 987-987: trailing spaces
(trailing-spaces)
[error] 994-994: trailing spaces
(trailing-spaces)
[error] 1001-1001: trailing spaces
(trailing-spaces)
[error] 1015-1015: trailing spaces
(trailing-spaces)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
- GitHub Check: build-and-test (macos-13, xcode, 14.2)
- GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
- GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
- GitHub Check: cppcheck-test
🔇 Additional comments (5)
.github/workflows/openms_ci_matrix_full.yml (5)
633-633: Correct Symlink for Release Folder in Deploy Installer StepThe relative path for the
latestsymlink has been updated from./$folderto../$folder, which aligns with the repository hierarchy on the remote server. This ensures the link correctly points to the release directory.
673-680: Bumpncipollo/release-actionto v1.16.0The GitHub Action now uses
ncipollo/[email protected]with enhanced options (artifactErrorsFailBuild,makeLatest, etc.). This aligns with the PR objective to consolidate and modernize release steps.🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 674-674: trailing spaces
(trailing-spaces)
944-944: Correct Symlink for Release Folder in KNIME Update StepMirroring the installer update, the
latestsymlink in the KNIME payload step now references../$folder. This fix maintains consistent behavior across installers and update sites.
966-979: Publish Draft Release indo-releaseJob with Updated ActionThe
do-releasejob now publishes the previously created draft by invokingncipollo/[email protected]with flags likeallowUpdates,omitBodyDuringUpdate, andupdateOnlyUnreleased. This completes the split between draft creation and publication phases as intended.
1035-1041: Review Downstream Tagging CallsThe calls to
handleGitTagfor each repository correctly align tags with their respective SHAs. The dynamicJSViewers line remains commented out; please confirm when permissions are in place so it can be enabled without manual intervention.
Creating the tags is currently a mess, this updates the logic around them, and publishes the release once we get to the do-release step.
Summary by CodeRabbit