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

Update E2E test data to fix operator-developer-e2e #488

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Oct 24, 2023

Zero major version is reserved for initial development according to SemVer spec1 and anything may change at any time.
Updates for this version behaves differently:

  • When version is 0.1.0 we allow versions which are >= 0.1.0 and < 0.2.0 (patch updates)
  • When version is 0.0.1 we allow versions which are >= 0.0.1 and < 0.0.2 (no updates)

To be able to update in the second case (e.g. from 0.0.1 to 0.0.2) users will have to set .spec.upgradeConstraintPolicy to Ignore once support for this implemented.

We have unit tests for the above behaviour, but E2E test data was not updated.

Fixes #481

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Footnotes

  1. https://semver.org/#spec-item-4

@m1kola m1kola added the kind/flake Categorizes issue or PR as related to a flaky test. label Oct 24, 2023
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 24, 2023
@m1kola
Copy link
Member Author

m1kola commented Oct 24, 2023

Note: with the current state of main branch operator-developer-e2e job must always fail but it sometimes pass. Flakes (false negatives) should still be addressed and I created #485 for it.

This PR just focuses on updating the data.

Zero major version is reserved for initial development
according to SemVer spec[^1] and anything may change at any time.
Updates for this version behaves differently:

* When version is `0.1.0` we allow versions which are >= `0.1.0` and < `0.2.0` (patch updates)
* When version is `0.0.1` we allow versions which are >= `0.0.1` and < `0.0.2` (no updates)

To be able to update in the second case (e.g. from `0.0.1` to `0.0.2`)
users will have to set `.spec.upgradeConstraintPolicy` to `Ignore`
once support for this implemented.

We have unit tests for the above behaviour, but E2E test data was not updated.

[^1]: https://semver.org/#spec-item-4

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola force-pushed the update_operator-developer-e2e_test_data branch from f34bf55 to 3d50312 Compare October 24, 2023 14:40
@m1kola m1kola marked this pull request as ready for review October 24, 2023 14:42
@m1kola m1kola requested a review from a team as a code owner October 24, 2023 14:42
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 24, 2023
@tmshort
Copy link
Contributor

tmshort commented Oct 25, 2023

So, just going to ignore 0.x.x for now?

@m1kola
Copy link
Member Author

m1kola commented Oct 25, 2023

So, just going to ignore 0.x.x for now?

In E2E - yes. But we have tests for this here.

Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 25, 2023
@tmshort tmshort added this pull request to the merge queue Oct 25, 2023
Merged via the queue into operator-framework:main with commit 082dd0e Oct 25, 2023
9 checks passed
@m1kola m1kola deleted the update_operator-developer-e2e_test_data branch October 25, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/flake Categorizes issue or PR as related to a flaky test. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flake in operator-developer-e2e: unexpected status conditions for the operator
2 participants