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

E2E test should cover upgrade case #511

Closed
4 tasks
tnqn opened this issue Mar 18, 2020 · 6 comments · Fixed by #524
Closed
4 tasks

E2E test should cover upgrade case #511

tnqn opened this issue Mar 18, 2020 · 6 comments · Fixed by #524
Labels
area/test/e2e Issues or PRs related to Antrea specific end-to-end testing. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@tnqn
Copy link
Member

tnqn commented Mar 18, 2020

Describe the bug
There should be upgrade tests to ensure:

@tnqn tnqn added area/test/e2e Issues or PRs related to Antrea specific end-to-end testing. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Mar 18, 2020
@tnqn
Copy link
Member Author

tnqn commented Mar 18, 2020

@jianjuns @antoninbas @salv-orlando please share your opinions and see if we should have this ready before 0.5.0 as we have missed something that could cause issue after upgrading, like #494.

@jianjuns
Copy link
Contributor

Yes, agreed we should have this in 0.5.0, since we had production deployment since 0.4.0.

@antoninbas
Copy link
Contributor

I think that's a good start and we should try to have this in time for 0.5.

Maybe in the longer term we can verify other things as well (e.g. monitoring CRDs are still valid and Octant plugin still works as expected?).

What do you think the test should look like exactly? Maybe a specific folder under "test/e2e/" and the ability to provide 2 parameters when running go test: -from-sha and -to-sha. Then we can ensure that the test runs before a release with the correct parameters (e.g. -from-sha=v0.4.0 -to-sha=<sha for 0.5.0 release candidate>). If we can run the test in a Kind cluster, it should be very straightforward.
Instead of a single test, we can also verify a matrix of upgrades. Maybe to start with, we can check that 0.3.0, 0.4.0 and 0.4.1 can be upgraded to 0.5.0. If we keep adding tests and running this as a Github workflow is no an option anymore, we will migrate the test to VMC.

@antoninbas antoninbas added this to the Antrea v0.5.0 release milestone Mar 18, 2020
@tnqn
Copy link
Member Author

tnqn commented Mar 20, 2020

Thanks @jianjuns and @antoninbas for your input.
@antoninbas I was just thinking some simple rolling update scenario from N-1 version. I think your proposal is very flexible and convenient. We get only a few days, do you want to implement the proposal yourself? If not, I would volunteer to be the coder.

@antoninbas
Copy link
Contributor

@tnqn I can take a stab at it tomorrow. But have we figured out what to do about #494. I suggest keeping system as a dummy API for now (at least for 0.5.0), since we do not know yet for sure that we will not be needing it in the future. It would be great if you could drive this on your side?

@tnqn
Copy link
Member Author

tnqn commented Mar 20, 2020

@antoninbas sure, @jianjuns and I are discussing adding controllerinfo API under this group, if we can make it 0.5.0, then we don't have to have a dummy one. If not, I will take care of adding a dummy APIGroup.

antoninbas added a commit to antoninbas/antrea that referenced this issue Mar 20, 2020
The new Go test (TestUpgrade) is meant to be run through the wrapper
script ./ci/kind/test-upgrade-antrea.sh.

At the moment we test upgrade from versions 0.3.0, 0.4.0 and 0.4.1 as
part of CI, but we can modify that set as we go through Antrea
releases. We also run the test for every PR against master, which may be
a bit excessive.

Fixes antrea-io#511
antoninbas added a commit to antoninbas/antrea that referenced this issue Mar 20, 2020
The new Go test (TestUpgrade) is meant to be run through the wrapper
script ./ci/kind/test-upgrade-antrea.sh.

At the moment we test upgrade from versions 0.3.0, 0.4.0 and 0.4.1 as
part of CI, but we can modify that set as we go through Antrea
releases. We also run the test for every PR against master, which may be
a bit excessive.

Fixes antrea-io#511
antoninbas added a commit to antoninbas/antrea that referenced this issue Mar 24, 2020
The new Go test (TestUpgrade) is meant to be run through the wrapper
script ./ci/kind/test-upgrade-antrea.sh.

At the moment we test upgrade from versions 0.3.0, 0.4.0 and 0.4.1 as
part of CI, but we can modify that set as we go through Antrea
releases. We also run the test for every PR against master, which may be
a bit excessive.

Fixes antrea-io#511
antoninbas added a commit to antoninbas/antrea that referenced this issue Mar 24, 2020
The new Go test (TestUpgrade) is meant to be run through the wrapper
script ./ci/kind/test-upgrade-antrea.sh.

At the moment we test upgrade from versions 0.3.0, 0.4.0 and 0.4.1 as
part of CI, but we can modify that set as we go through Antrea
releases. We also run the test for every PR against master, which may be
a bit excessive.

Fixes antrea-io#511
antoninbas added a commit that referenced this issue Mar 25, 2020
The new Go test (TestUpgrade) is meant to be run through the wrapper
script ./ci/kind/test-upgrade-antrea.sh.

At the moment we test upgrade from versions 0.3.0, 0.4.0 and 0.4.1 as
part of CI, but we can modify that set as we go through Antrea
releases. We also run the test for every PR against master, which may be
a bit excessive.

Fixes #511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test/e2e Issues or PRs related to Antrea specific end-to-end testing. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants