Skip to content

e2e: Update cross logical cluster testing to use private fixture #811

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

Merged
merged 3 commits into from
Mar 31, 2022

Conversation

marun
Copy link
Contributor

@marun marun commented Mar 31, 2022

These tests operate against global state which precludes successive
invocations against shared fixture without error.

Fixes #802

Also restrict test usage of shared fixture to `Private` and `Shared`
to avoid adding new fixture usage without consideration.
@marun marun force-pushed the e2e-fix-cross-cluster branch from 6c7e175 to 17c42d5 Compare March 31, 2022 02:20
marun added 2 commits March 30, 2022 19:21
These tests operate against global state which precludes successive
invocations against shared fixture without error.
@sttts
Copy link
Member

sttts commented Mar 31, 2022

I don't think this is necessary. Just make the global state unique enough to not fall over other parallel tests.

@marun
Copy link
Contributor Author

marun commented Mar 31, 2022

I don't think this is necessary. Just make the global state unique enough to not fall over other parallel tests.

If you - or whoever wrote this test - want to fix it, by all means. I've already spent considerable effort getting e2e running with shared fixture and at this point my priority is getting the e2e-shared-server job to the point where it can prevent further regression. This PR accomplishes that, and in no way precludes future changes that would re-enable use of shared fixture.

FWIW, moving to private fixture also ensures these tests execute in a reasonable amount of time. When running against shared fixture even once, this test takes 45s on my machine. It takes <10s running independently.

@marun marun merged commit a4a3ecb into kcp-dev:main Mar 31, 2022
@marun marun deleted the e2e-fix-cross-cluster branch March 31, 2022 16:51
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.

e2e: TestCrossLogicalClusterList fails when run more than once against persistent fixture
2 participants