-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(ingest): refactor test markers + fix disk space issues in CI #8938
Conversation
if ( | ||
"docker_compose_runner" in item.fixturenames # type: ignore[attr-defined] | ||
or any( | ||
marker.name == "integration_batch_2" for marker in item.iter_markers() | ||
) | ||
): | ||
item.add_marker(pytest.mark.slow) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we manually mark each test in this batch slow instead? Feels like this is something that'd be easy to miss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't actually use slow
anywhere, so I think it's fine - I mainly added it as a convenience thing to run quick unit tests locally
This refactors the tests into integration_batch_{0,1,2}. If it's in the tests/integration directory, it gets labelled as an integration test. If it has an explicit batch number, that will be used. Otherwise, it will go in batch 0 by default.
Also renames
slow_integration
->batch_2
andslow_unit
toslow
. The slow marker isn't actually used for much yet.Root cause of the disk space issues seems to be the iceberg CI tests - the
tabulario/spark-iceberg
image is 6.7gb uncompressed. This shuffles some of the tests between the batches and adds logic to remove some of the larger docker images after the integration test is done.Checklist