-
Notifications
You must be signed in to change notification settings - Fork 2
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
EVEREST-107 run e2e tests conditionally #605
base: main
Are you sure you want to change the base?
Conversation
2b3c765
to
bde0eff
Compare
69b2812
to
4b522ec
Compare
By making the EKS E2E tests optional we need some more integration tests to ensure some basic sanity on every PR.
4b522ec
to
6801227
Compare
The dbengine tests upgrade the CRDs which sometimes messes up other tests, running them on a separate step isolates them from the other tests.
@@ -46,9 +47,82 @@ jobs: | |||
PG_OPERATOR_VERSION: 2.5.0 | |||
PERCONA_VERSION_SERVICE_URL: https://check-dev.percona.com/versions/v1 | |||
|
|||
integration-tests: |
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.
I was expecting a step to run kind create cluster ...
, but that's not there. When does the kind cluster get created? 🤔
|
||
eks-e2e-tests: | ||
name: E2E tests (EKS) | ||
if: contains(github.event.pull_request.labels.*.name, 'test/e2e') || contains(github.event.pull_request.labels.*.name, 'test/e2e-upgrade') || contains(github.event.pull_request.labels.*.name, 'test/e2e-core') |
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.
The E2E step is a required check in CI, so we skip it, the PR will be blocked, wouldn't it? Should we configure Merge Gatekeeper then?
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.
Although now it looks like the PR is not blocked by the skipped step. Not sure😅
The E2E test suite takes a long time to run and these tests are not always needed.
This PR introduces a condition for running the E2E test suite based on PR labels. There are 3 labels relevant:
test/e2e
- runs the full e2e test suite (core+upgrade)test/e2e-core
- runs just the core e2e test suitetest/e2e-upgrade
- runs just the upgrade e2e test suiteBesides the conditional run of E2E tests, this PR introduces some more changes to the integration tests: