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

cli: use pseudoversion and forward it into helm charts #1281

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

derpsteb
Copy link
Member

Proposed change(s)

  • Cmake produces a new pseudoversion whenever cmake is run. This version is used to set PROJECT_VERSION, unless PROJECT_VERSION is set to a version other than 0.0.0. The release pipeline already overwrites PROJECT_VERSION, thus this change does not interfere with the pipeline. Another commit is created when merging changes from a release branch to main that resets PROJECT_VERSION to 0.0.0.
  • Use the CLI's current version to set the helm chart versions. This allows us to test upgrades to an arbitrary development build more easily. And we don't have to update chart versions manually. Since we currently don't publish the charts standalone it does not make sense to version them independently from the CLI imo.

Checklist

  • Update docs
  • Add labels (e.g., for changelog category)
  • Link to Milestone

@derpsteb derpsteb added this to the v2.6.0 milestone Feb 27, 2023
@netlify
Copy link

netlify bot commented Feb 27, 2023

Deploy Preview for constellation-docs ready!

Name Link
🔨 Latest commit 22f3b81
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/63fcc444e255f8000860952e
😎 Deploy Preview https://deploy-preview-1281--constellation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

All binaries that receive a version number during build
now receive a pseudoversion from hack/pseudo-version.
This makes any version-dependant behavior more similar
between dev and release versions. And in turn makes testing
easier.
* As charts receive information like the container image from
the cli it makes sense to also version the charts based on the cli
version.
* The pseudoversion is recalculated when running cmake.
* When merging changes from release branch to main,
a new commit is introduced to set the PROJECT_VERSION back
to 0.0.0, so that builds include a pseudoversion.
@derpsteb derpsteb merged commit 08ee569 into main Feb 27, 2023
@derpsteb derpsteb deleted the feat/cli-pseudoversion branch February 27, 2023 15:06
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