Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix base Fleet chart version resolution for test release #3068

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

weyfonk
Copy link
Contributor

@weyfonk weyfonk commented Nov 11, 2024

When releasing test Fleet charts, the test release workflow looks for the latest existing Fleet release, to use it as a base before making a few edits.

The previous logic used to find the latest available chart was buggy, in that it would list releases in alphabetical order, which could differ from semver. For instance, chart version 103.1.10+up0.9.11 would be listed between versions 103.1.0+up0.9.0 and 103.1.2+up0.9.2.

Instead, this commit simplifies resolution by first looking at the package.yaml file, extracting the chart version from there and looking for the corresponding Fleet version in the charts repository. Resolution would then fail if no corresponding version is found in the repository, but that is far less likely to happen than with the previous logic and would typically be a symptom of a broken state of the charts repository.

Tested with this job (previous failure example here).

Refers to #1640

@weyfonk weyfonk requested a review from a team as a code owner November 11, 2024 17:37
When releasing test Fleet charts, the test release workflow looks for
the latest existing Fleet release, to use it as a base before making a
few edits.

The previous logic used to find the latest available chart was buggy, in
that it would list releases in alphabetical order, which could differ
from semver. For instance, chart version `103.1.10+up0.9.11` would be
listed between versions `103.1.0+up0.9.0` and `103.1.2+up0.9.2`.

Instead, this commit simplifies resolution by first looking at the
`package.yaml` file, extracting the chart version from there and looking
for the corresponding Fleet version in the charts repository.
Resolution would then fail if no corresponding version is found in the
repository, but that is far less likely to happen than with the previous
logic and would typically be a symptom of a broken state of the charts
repository.
@weyfonk weyfonk merged commit a00dac3 into main Nov 13, 2024
12 checks passed
@weyfonk weyfonk deleted the test-chart-fix-version-resolution branch November 13, 2024 09:36
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