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

Validate upgrade action on build #3031

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

kichristensen
Copy link
Contributor

What does this change

Validate the upgrade action during porter build, otherwise it will only the validated when porter upgrade is executed. All other actions install, uninstall and custom actions are validated on porter build already.

What issue does it fix

Closes #3030

Notes for the reviewer

The test introduced is using some pointers in order to make it more generic, making it a little harder to understand. I'm not 100% convinced myself it is a good idea, please let me know what you think.

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

Validate the upgrade action during `porter build`, otherwise it will
only the validated when `porter upgrade` is executed. All other actions
`install`, `uninstall` and custom actions are validated on `porter build`
already.

Signed-off-by: Kim Christensen <kimworking@gmail.com>
Copy link
Member

@schristoff schristoff left a comment

Choose a reason for hiding this comment

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

lgtm! :D

@schristoff schristoff merged commit 23a00a5 into getporter:main Mar 24, 2024
15 checks passed
@kichristensen kichristensen deleted the validateUpgradeActionOnBuild branch April 9, 2024 22:17
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.

Malformed upgrade step is not reported during porter build
3 participants