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

test: forbid using t.Parallel #344

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Dec 11, 2024

The internal test runner used by Google gets confused by testing using t.Parallel due to the log lines getting mixed, so this removes all usage of it and configures the forbidigo linter to enforce it's not-use.

Since this by extension means we never want the tparallel linter enabled, I've updated the linting config to remove it from the enable list and added it to the commented out disable list in preparation for when we're able to switch to having all linters enabled by default (as you're not allowed to use both disable-all and disable at the same time)

@G-Rath G-Rath mentioned this pull request Dec 11, 2024
46 tasks
@G-Rath G-Rath force-pushed the linting/prevent-t-parallel branch from a9befea to babf1f3 Compare December 11, 2024 18:36
@G-Rath G-Rath force-pushed the linting/prevent-t-parallel branch from babf1f3 to ec75397 Compare December 11, 2024 18:44
@G-Rath G-Rath marked this pull request as ready for review December 11, 2024 18:51
@copybara-service copybara-service bot merged commit 3135093 into google:main Dec 12, 2024
6 of 7 checks passed
@G-Rath G-Rath deleted the linting/prevent-t-parallel branch December 12, 2024 20:27
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