Skip to content

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

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
healthy-pod:fix-logictests-timeout
Sep 2, 2022
Merged

generate-logictest: add test timeout to BUILD files template#87299
craig[bot] merged 1 commit intocockroachdb:masterfrom
healthy-pod:fix-logictests-timeout

Conversation

@healthy-pod
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

go_test(
name = "{{ .TestRuleName }}_test",
size = "enormous",
args = ["-test.timeout=3595s"],
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

bors r=rickystewart

@craig
Copy link
Copy Markdown
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