Skip to content

Handle helm chart releases - #330

Merged
roehrich-hpe merged 3 commits into
masterfrom
csi-charts
May 18, 2026
Merged

Handle helm chart releases#330
roehrich-hpe merged 3 commits into
masterfrom
csi-charts

Conversation

@roehrich-hpe

Copy link
Copy Markdown
Contributor

The lustre-csi-driver repo has support for helm charts that are setup to allow github to serve as a chart repo. This chart is expected to be in the master branch.

The release-all tool will create a "chart-releases/" directory in the release branch and copy that chart into it and munge it with proper release info. This allows github to serve as a chart repo for the release branch's chart as well.

The lustre-csi-driver repo has support for helm charts that are setup to allow
github to serve as a chart repo. This chart is expected to be in the master
branch.

The release-all tool will create a "chart-releases/" directory in the release
branch and copy that chart into it and munge it with proper release
info. This allows github to serve as a chart repo for the release branch's
chart as well.

Signed-off-by: Dean Roehrich <dean.roehrich@hpe.com>
Comment thread tools/release-all/release-all.sh Outdated
Comment thread tools/release-all/release-all.sh
Comment thread tools/release-all/release-all.sh
Comment thread tools/release-all/release-all.sh Outdated
local indent="$3"

msg "${indent}Verifying clean build on GitHub for $default_branch..."
build_status=$(gh run list --repo "$repo_url" --branch "$default_branch" --limit 1 --json conclusion -q '.[0].conclusion' 2>/dev/null || echo "unknown")

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.

consider also checking the status field in case conclusion is null.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Have you found something that indicates that can happen? If it's null, it'll be caught on the next line. I'd like to stop there and understand how it could be null.

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.

conclusion : null if status: in_progress for running workflows. A nicer error message would be helpful to the admin.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A running workflow looks like this:

$ GH_HOST=github.hpe.com gh run list --json conclusion -q '.[1] | {"status":.status,"conclusion":.conclusion}'
{
  "conclusion": "",
  "status": null
}

So conclusion is not "null", but empty string. And status is not "in_progress", it's the word "null".

Let me fuss with that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah, I did that wrong. It is more informative:

gh run list --json status,conclusion -q '.[0] | {"status":.status,"conclusion":.conclusion}'
{
  "conclusion": "",
  "status": "in_progress"
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Dean Roehrich <dean.roehrich@hpe.com>
@roehrich-hpe

Copy link
Copy Markdown
Contributor Author

Take another look here, please.

@ajfloeder

Copy link
Copy Markdown
Contributor

Don't you need the latest lustre-csi-driver submodule? I don't see that included.

Comment thread tools/release-all/release-all.sh Outdated
Signed-off-by: Dean Roehrich <dean.roehrich@hpe.com>
@roehrich-hpe

Copy link
Copy Markdown
Contributor Author

Don't you need the latest lustre-csi-driver submodule? I don't see that included.

Yes, thanks for the reminder.

@roehrich-hpe
roehrich-hpe merged commit 2232b0e into master May 18, 2026
1 check passed
@roehrich-hpe
roehrich-hpe deleted the csi-charts branch May 21, 2026 20:45
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.

3 participants