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

EVEREST-107 run e2e tests conditionally #605

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

Conversation

recharte
Copy link
Collaborator

@recharte recharte commented Dec 17, 2024

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 suite
  • test/e2e-upgrade - runs just the upgrade e2e test suite

Besides the conditional run of E2E tests, this PR introduces some more changes to the integration tests:

  • All integration tests are now run in kind. Since they don't wait for any status, there's no point in running them on EKS. This will save us time and money.
  • Adds new core tests to cover the basic scenarios
  • Moves the dbengine tests to a separate step to avoid having them interfere with the rest of the tests.

@recharte recharte force-pushed the EVEREST-107-tests-reorg branch 3 times, most recently from 2b3c765 to bde0eff Compare December 18, 2024 00:52
@recharte recharte added test/e2e-upgrade Run upgrade E2E test suite and removed test/e2e-upgrade Run upgrade E2E test suite labels Dec 18, 2024
@recharte recharte force-pushed the EVEREST-107-tests-reorg branch 2 times, most recently from 69b2812 to 4b522ec Compare December 18, 2024 12:51
@recharte recharte added the test/e2e-upgrade Run upgrade E2E test suite label Dec 18, 2024
By making the EKS E2E tests optional we need some more integration tests
to ensure some basic sanity on every PR.
@recharte recharte removed the test/e2e-upgrade Run upgrade E2E test suite label Dec 18, 2024
@recharte recharte force-pushed the EVEREST-107-tests-reorg branch from 4b522ec to 6801227 Compare December 18, 2024 13:06
The dbengine tests upgrade the CRDs which sometimes messes up other
tests, running them on a separate step isolates them from the other
tests.
@recharte recharte marked this pull request as ready for review December 18, 2024 13:36
@@ -46,9 +47,82 @@ jobs:
PG_OPERATOR_VERSION: 2.5.0
PERCONA_VERSION_SERVICE_URL: https://check-dev.percona.com/versions/v1

integration-tests:
Copy link
Member

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')
Copy link
Contributor

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?

Copy link
Contributor

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😅

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

Successfully merging this pull request may close these issues.

3 participants