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

Run the E2E tests that work for both cluster-scoped and namespace-scope modes, on both #64

Conversation

jgwest
Copy link
Member

@jgwest jgwest commented Jun 6, 2024

What does this PR do / why we need it:

  • At the moment, we have a generic set of E2E tests defined in the tests/e2e package, but by default we only run these during namespace-scoped tests
  • However, we can easily extend these tests to work in the cluster-scoped case as well.
  • Now the tests will run for both cases.

Have you updated the necessary documentation?

  • Documentation update is required by this PR, and has been updated.

Signed-off-by: Jonathan West <jonwest@redhat.com>
@jgwest jgwest force-pushed the switch-to-cluster-scoped-test-default-may-2024 branch from 53dc87c to fe739ab Compare June 6, 2024 03:35
@jgwest jgwest changed the title Run the E2E tests that work for both cluster-scoped and namespace-mode, on both Run the E2E tests that work for both cluster-scoped and namespace-scope modes, on both Jun 13, 2024
@@ -21,7 +21,7 @@ set -ex

if [ "$NAMESPACE_SCOPED_ARGO_ROLLOUTS" == "true" ]; then

go test -v -p=1 -timeout=30m -race -count=1 -coverprofile=coverage.out ./tests/e2e/. ./tests/e2e/namespace-scoped
go test -v -p=1 -timeout=30m -race -count=1 -coverprofile=coverage.out ./tests/e2e/namespace-scoped
Copy link
Member Author

@jgwest jgwest Jun 13, 2024

Choose a reason for hiding this comment

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

I removed ./tests because that logic is now invoked directly from the namespace/cluster-scoped tests

@Rizwana777
Copy link
Collaborator

LGTM

Copy link
Collaborator

@chetan-rns chetan-rns left a comment

Choose a reason for hiding this comment

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

/lgtm

@jgwest
Copy link
Member Author

jgwest commented Jun 14, 2024

Thanks @chetan-rns and @Rizwana777!

@jgwest jgwest merged commit 3c085b1 into argoproj-labs:main Jun 14, 2024
6 checks passed
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