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

Add test size option #180

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Add test size option #180

merged 2 commits into from
Dec 16, 2024

Conversation

hofbi
Copy link
Contributor

@hofbi hofbi commented Dec 11, 2024

Replace #173

@hofbi hofbi requested a review from a team as a code owner December 11, 2024 13:04
@@ -43,6 +45,7 @@ def pip_compile(
requirements_in = requirements_in or "//:requirements.in"
requirements_txt = requirements_txt or "//:requirements.txt"
tags = tags or []
size = size or "small"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mark-thm Choosing small as the default since this will most likely match the expected size of the test according to https://bazel.build/reference/be/common-definitions#common-attributes-tests

Copy link

Choose a reason for hiding this comment

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

The default test size in bazel is "medium", and this was the size set on pip_compile_test tests before this pull request. Changing the default to "small" led to test timeouts for me.

Also,pip_compile_test is, in my opinion, an integration tests, since is involves querying the index, so the default of "medium" is justified.

@mark-thm mark-thm merged commit b173a93 into theoremlp:main Dec 16, 2024
9 checks passed
@hofbi hofbi deleted the test-size branch December 19, 2024 15:21
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