-
Notifications
You must be signed in to change notification settings - Fork 63
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
Tests optimization #1352
Comments
Currently our tests are slow not because of Artipie docker image. |
Actually, testcontainers may have some caching features, this is to be investigated too. |
Also, when actively debugging/running tests some may start to fail in package downloading, probably due to very frequent http requests to the same files in the repos. Yet another reason to refactor test containers usage. |
Currently, local docker client image caching is supported in: conda, PyPy, rpm and debian S3 integration test cases in artipie-main and adapters. And on |
Currently Integration Tests run about one hour.
So, artipie-main is the biggest culprit, runs about 30 minutes. It followed by maven (7min) and conda (5 min) modules. When run locally artipie-main IT tests, top slowest tests were:
|
My current prospect on tests optimization:
|
Tests which use
com.artipie.test.TestDeployment
take too long time.We should optimize these tests to reduces execution time, make test results more convenient for a bug fixing.
To achieve these aims, we could start Artipie's server on a local host, reduce restart server (restart only in the tests where it's really needing). The client part of
TestDeployment
often could be started only once in theBeforeAll
method.Building client images for integration tests takes a lot of time.
We could create according images in advance and use it in these tests and this approach makes tests running 2-3 time faster.
The text was updated successfully, but these errors were encountered: