-
Notifications
You must be signed in to change notification settings - Fork 353
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
Add OLM upgrade test #2198
Add OLM upgrade test #2198
Conversation
@astefanutti Finally, the PR is there. Please review. |
@astefanutti the CI seems to be faulty. I see a lot of various errors that are not caused by my changes. |
Yes, we may merge #2197 to have less errors, as the only issue seems in runtime: apache/camel-k-runtime#651. Wdyt? |
Good idea, +1 for me, then we can rebase the pending PRs. |
@astefanutti can you rerun the CI? |
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.
@bouskaJ thanks again for the awesome work.
It seems the test sometimes fails with the following error:
olm_upgrade_test.go:94:
Timed out after 300.006s.
Expected
<v1alpha1.ClusterServiceVersionPhase>: Succeeded
to equal
<v1alpha1.ClusterServiceVersionPhase>: Replacing
--- FAIL: TestOLMAutomaticUpgrade/OLM_upgrade (300.01s)
I wonder if that's just a race issue, or that the phase is not as expected.
Also, I understand that the operator upgrade is triggered by updating the index image in the CatalogSource. However, the CSV generated for the new version does not have a replaces
field. So I wonder, are we sure that this sequence mimics exactly a typical upgrade performed by OLM?
I'd like to be sure that what the test covers is an actual upgrade, rather than just a replace.
Hi, @astefanutti yes, there is no
I decided on the |
I am not sure why, it's failing. Maybe, the OLM needs more time to start the upgrade and we should use |
Printing the patched CSV to the workflow log could help as well... (result of https://github.com/apache/camel-k/blob/master/.github/workflows/upgrade.yml#L143) |
Release Note