Skip to content

Cleanup tags - #8036

Merged
timosachsenberg merged 12 commits into
developfrom
cleanup-tags
May 15, 2025
Merged

timosachsenberg merged 12 commits into
developfrom
cleanup-tags

Conversation

@poshul

@poshul poshul commented May 9, 2025 •

Copy link
Copy Markdown
Collaborator

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

  • Chores
    • Updated release automation to use the latest release action version.
    • Improved reliability of symbolic links for marking latest installers.
    • Enhanced tag management to prevent accidental overwrites during release workflows.

poshul and others added 8 commits May 8, 2025 13:55
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
@coderabbitai

coderabbitai Bot commented May 9, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The 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

Files/Paths Change Summary
.github/workflows/openms_ci_matrix_full.yml Updated release-action to v1.16.0; fixed symlink targets for "latest" installers; refactored tag logic into a single function (handleGitTag) that checks for tag existence and SHA match before creating or erroring out. Commented-out tag logic updated accordingly.

Poem

🐇
A workflow hops to version new,
With tags now checked for what they do.
Symlinks point the proper way,
Installers marked without delay.
Release the code, let actions run—
This rabbit’s job is never done!

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@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: 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" ]]; then

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

📥 Commits

Reviewing files that changed from the base of the PR and between c5a4f44 and 0142460.

⛔ Files ignored due to path filters (1)
  • src/openms_gui/source/VISUAL/ICONS/TOPP_about.png is 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
Adding merge-multiple: true ensures that all matching installer artifacts are downloaded in one step rather than creating multiple separate downloads.


771-772: Consolidate multiple KNIME artifacts
The same merge-multiple: true flag 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 with ncipollo/[email protected] under if: inputs.do_release. This cleanly separates draft creation (in deploy-installer) from publication (in do-release).

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 674-674: trailing spaces

(trailing-spaces)


969-979: Publish finalized release only in do-release job
The second invocation of ncipollo/[email protected] runs with draft: false, allowUpdates, and updateOnlyUnreleased, ensuring the release is only published during the do-release step.


989-1023: Robust tag handling with verification
The handleGitTag function 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 include libyaml-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: Disable YAML_CPP_INSTALL option for TDL
Commenting out YAML_CPP_INSTALL delegates yaml-cpp installation control to the higher-level packaging configuration, keeping this fetch-and-build script focused on building only.

@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: 0

🧹 Nitpick comments (2)
.github/workflows/openms_ci_matrix_full.yml (2)

989-1024: Refactor tag creation into handleGitTag function.

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_NAME containing 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

📥 Commits

Reviewing files that changed from the base of the PR and between 0142460 and 4ec02d4.

📒 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: Approve merge-multiple: true for installer artifacts.

Consolidating multiple installer artifacts into a single download simplifies downstream steps and avoids missing files across matrix builds.


769-771: Approve merge-multiple: true for KNIME artifacts.

Same rationale for KNIME artifacts; merging ensures a single download of all payloads.


671-673: Verify upgrade to ncipollo/[email protected].

The action version bump in deploy-installer must 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 ./$folder to ../$folder fixes 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-release job with explicit flags (allowUpdates, updateOnlyUnreleased, etc.) cleanly separates draft creation and publication. Please verify that omitBodyDuringUpdate and omitNameDuringUpdate behave as intended when updating existing releases.


1034-1041: Verify handleGitTag invocations and SHA lookups.

Ensure that each curl-based SHA extraction matches the correct GitHub API endpoint (e.g., git/ref/heads vs. contents) and that the resulting SHAs for contrib, 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() {

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.

Maybe source or execute a script from the tools folder to keep the action clean once stable.

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.

Good idea. I'll add a note here so I remember after the next release cycle.

@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: 0

🧹 Nitpick comments (2)
.github/workflows/openms_ci_matrix_full.yml (2)

990-1025: Refactor Tag Management into handleGitTag Function

The new handleGitTag function centralizes tag creation and verification, preventing accidental overwrites of existing tags. Consider declaring REPO, SHA, and TAG_NAME as local variables 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 Whitespace

There 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

📥 Commits

Reviewing files that changed from the base of the PR and between 4ec02d4 and d3821c3.

📒 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 Step

The relative path for the latest symlink has been updated from ./$folder to ../$folder, which aligns with the repository hierarchy on the remote server. This ensures the link correctly points to the release directory.


673-680: Bump ncipollo/release-action to v1.16.0

The 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 Step

Mirroring the installer update, the latest symlink in the KNIME payload step now references ../$folder. This fix maintains consistent behavior across installers and update sites.


966-979: Publish Draft Release in do-release Job with Updated Action

The do-release job now publishes the previously created draft by invoking ncipollo/[email protected] with flags like allowUpdates, omitBodyDuringUpdate, and updateOnlyUnreleased. This completes the split between draft creation and publication phases as intended.


1035-1041: Review Downstream Tagging Calls

The calls to handleGitTag for 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.

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.

5 participants