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 #173

Closed
wants to merge 1 commit into from
Closed

Add test size option #173

wants to merge 1 commit into from

Conversation

hofbi
Copy link

@hofbi hofbi commented Nov 19, 2024

The test should be quite fast so should be tagged as small test to prevent test size warnings if this is enabled

@hofbi hofbi requested a review from a team as a code owner November 19, 2024 11:36
@@ -41,6 +42,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
Collaborator

Choose a reason for hiding this comment

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

I think I'd like to keep this defaulted to None if unspecified, but otherwise this seems fine.

Copy link
Author

Choose a reason for hiding this comment

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

From https://bazel.build/reference/be/common-definitions you can see the default test size to be medium which has the the spects medium 100 MB RAM 1 CPU timeout moderate (5 minutes) vs. small 20 MB RAM 1 CPU timeout short (1 minute). To me, small seems a reasonable timeout

@hofbi hofbi closed this Dec 11, 2024
@hofbi hofbi mentioned this pull request Dec 11, 2024
@hofbi hofbi deleted the patch-1 branch December 11, 2024 13:08
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.

2 participants