-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fixes the release 400
error on smoke tests
#11
base: main
Are you sure you want to change the base?
Conversation
3f8cc28
to
700ac60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would do this different, and in the case of helm
, automatically extract the app version from the Chart.yaml, vs having it dynamic.
if: inputs.version == '' | ||
shell: bash | ||
run: | | ||
tarball=$(find ${YAML_DIR} -name "${CHART_NAME}*.tgz") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this will break if the yaml-dir
doesn't contain a helm chart?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, all the manipulation of the chart will break, I should make those conditional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made a few more things conditional
4937047
to
700ac60
Compare
@crdant this has been a while, is it still needing review or is it no longer required? |
I've generally moved away from our actions so I'm not sure. Happy to check it again. |
TL;DR
Makes sure versions are aligned when running smoke tests
Details
Replaces hardcode major.minor.patch of
0.0.1
from the version used in the smoke action and replaces it with the version from the Helm chart'sChart.yaml
. I thought that would be all that was required to fix the400
on release, but it wasn't. So now the smoke test also updatesChart.yaml
with the version that it creates to use for the test release. This required by the strict rules the vendor portal has for validating that the release version matches the chart version.Ideally we could stash the build related tagging into the build metadata fragment of the semver instead of the prerelease version, and the vendor portal could ignore build metadata.