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

generate-logictest: add test timeout to BUILD files template #87299

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

healthy-pod
Copy link
Contributor

In #86363, we added a test.timeout arg to all go_test targets.
When generate-logictest runs out of bazel-generate.sh,
logic tests build files are re-created based on the template
that was missing the test.timeout arg and since the timeout
script doesn't run, the timeouts get deleted. This patch updates
the template to include a test timeout.

Release justification: Non-production code changes
Release note: None

@healthy-pod healthy-pod requested a review from a team as a code owner September 1, 2022 18:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@@ -249,6 +249,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test")
go_test(
name = "{{ .TestRuleName }}_test",
size = "enormous",
args = ["-test.timeout=3595s"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indentation looks wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

In cockroachdb#86363, we added a test.timeout arg to all go_test targets.
When generate-logictest runs out of `bazel-generate.sh`,
logic tests build files are re-created based on the template
that was missing the `test.timeout` arg. This patch updates
the template to include a test timeout.

Release justification: Non-production code changes
Release note: None
@healthy-pod healthy-pod force-pushed the fix-logictests-timeout branch from 083919c to b75d2ee Compare September 1, 2022 18:33
@healthy-pod
Copy link
Contributor Author

bors r=rickystewart

@craig
Copy link
Contributor

craig bot commented Sep 2, 2022

Build succeeded:

@craig craig bot merged commit 49b6501 into cockroachdb:master Sep 2, 2022
@healthy-pod healthy-pod deleted the fix-logictests-timeout branch September 20, 2022 23:32
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