Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Add a test to ensure upgrades work #485

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add a test to ensure upgrades work #485

wants to merge 6 commits into from

Conversation

kfox1111
Copy link
Contributor

No description provided.

Copy link
Contributor

@marcofranssen marcofranssen left a comment

Choose a reason for hiding this comment

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

Did you know the ct tool has a flag to test upgrades?

@kfox1111
Copy link
Contributor Author

Did you know the ct tool has a flag to test upgrades?

We could add those too.

How does that work when we need to add additional, manual steps for upgrades? Guessing we may need some manual steps in some cases, like maybe the first time when we solve the crd update issue.

@faisal-memon faisal-memon added this to the 0.14.0 milestone Sep 19, 2023
@marcofranssen
Copy link
Contributor

https://github.com/helm/chart-testing/blob/main/ct/cmd/install.go#L64-L66 this flag could be set, not tested it though, I guess this compares against what is released vs the unreleased code. Could you try enabling that feature?

@kfox1111
Copy link
Contributor Author

Hmm.... It does look like it will do the right thing and not test if semver says it should be a breaking change. But, we are also pre 1.0, which means breaking changes could be made in a minor revision rather then at a major one? Will it do the right thing there?

@kfox1111
Copy link
Contributor Author

Can we merge this and continue to work on the ct upgrade tests in a different pr? I need the prod upgrade test to start working on crd upgrades for spire-controller-manager upgrades.

@marcofranssen
Copy link
Contributor

Isn't this just duplicate testing if we just utilize ct?

@kfox1111
Copy link
Contributor Author

Isn't this just duplicate testing if we just utilize ct?

No, as it tests our production recommendation. we don't use ct on our production recommendation.

Also, could you please answer the question I asked?

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
@marcofranssen
Copy link
Contributor

Isn't this just duplicate testing if we just utilize ct?

No, as it tests our production recommendation. we don't use ct on our production recommendation.

Also, could you please answer the question I asked?

Yes for sure we can just merge any PR and redo or change things in follow up PRs, however what I try to do here is to look beyond the horizon and see if all the test plumbing is the right thing to do if existing tools are there to do the same.

Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov>
@kfox1111
Copy link
Contributor Author

Yes for sure we can just merge any PR and redo or change things in follow up PRs, however what I try to do here is to look beyond the horizon and see if all the test plumbing is the right thing to do if existing tools are there to do the same.

Yes, I understand what you are trying to do. I am looking beyond the horizon but I don't think your suggestion will work for what I know comes next, nor do I think we should hold up fixing the CRD issue while we try and get the perfect test system in place. We can iterate later.

So, what would you have me do on this pr? I need actionable feedback please. Scrap it and switch to ct, only for it to break irreparably when we try and implement the CRD fix isn't a good solution IMO.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants