Skip to content

Refactor Helm chart release workflow to improve packaging and commit logic - #21

Merged
saadqbal merged 1 commit into
mainfrom
develop
Mar 4, 2026
Merged

Refactor Helm chart release workflow to improve packaging and commit logic#21
saadqbal merged 1 commit into
mainfrom
develop

Conversation

@saadqbal

@saadqbalsaadqbal commented Mar 4, 2026

Copy link
Copy Markdown
Contributor
  • Updated the Helm chart packaging step to select the most recent .tgz file for release.
  • Modified the commit message to dynamically include all packaged Helm charts, enhancing clarity during releases.
  • Streamlined the addition of packaged charts to the Git index, ensuring all relevant files are included in the commit.

Note

Low Risk
Low risk: only adjusts GitHub Actions release workflow shell logic for selecting and committing packaged Helm chart artifacts; main risk is accidentally adding/committing unintended tracebloc-*.tgz files if multiple are present in the workspace.

Overview
Updates the Helm chart packaging step to record the most recently generatedtracebloc-*.tgz for artifact upload (instead of relying on an arbitrary ls match).

On the gh-pages publish step, stages index.yaml plus alltracebloc-*.tgz files and changes the commit message to list the packaged chart tarballs, improving clarity when multiple charts are present.

Written by Cursor Bugbot for commit e598b91. This will update automatically on new commits. Configure here.

…logic
- Updated the Helm chart packaging step to select the most recent `.tgz` file for release.
- Modified the commit message to dynamically include all packaged Helm charts, enhancing clarity during releases.
- Streamlined the addition of packaged charts to the Git index, ensuring all relevant files are included in the commit.
@saadqbal
saadqbal merged commit b24f30c into mainMar 4, 2026
1 check passed

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

echo "No index/tgz changes to commit"
else
git commit -m "Release $CHART_TGZ"
git commit -m "Release helm chart(s): $(ls tracebloc-*.tgz 2>/dev/null | tr '\n' ' ')"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Commit message lists all historical charts, not just new

Low Severity

The ls tracebloc-*.tgz in the commit message runs on the gh-pages branch, which accumulates .tgz files from all previous releases. As releases build up, this commit message will list every historical chart file (e.g., "Release helm chart(s): tracebloc-1.0.0.tgz tracebloc-2.0.0.tgz tracebloc-2.0.1.tgz") rather than just the newly released one. The tr '\n' ' ' flattening makes this worse than the old code, where newlines caused git to split the message so only the first filename appeared in the commit subject. The message grows unboundedly with each release.

Fix in CursorFix in Web

Sign up for freeto 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.

1 participant

@saadqbal