-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Don't kill/recreate containers on every integration/product test run on local machine #4514
Comments
I played a bit with Maybe @findepi any ideas? |
I feel strongly that container reuse must be an opt in. The default behavior must be KISS and same on CI (GHA) and local environment.
Containers are used in quite few different kinds of tests today. Also, for product tests, there is a known (but undocumented way) or starting I think we could start by defining the objectives we want to achieve first. |
This is in progress. |
FYI: #3662 |
For product tests - done: https://github.com/prestosql/presto/pull/4834/files For integration tests - needs some changes in tests, will do it soon |
I am actually not sure we need any changes to how product test environment is started. We have
What it misses today is:
We should add this. (#4911) |
One might say this pull request implements #4911. I think we need to discuss this. |
I do not yet see it this way. |
We now have container reuse for non-product tests using testcontainers. For product tests we can start product test env on CLI and run tests which reuse them using IDE. I'm closing this since in practice it's not been very useful or widely used. We can reopen if we need to in future. |
During GHA build this functionality should be disabled.
It should be possible with
withReuse
functionality recently added to TestContainers (testcontainers/testcontainers-java#1781 )The same issue is with product tests, there we probably need to hook into
Environment.start
The text was updated successfully, but these errors were encountered: