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

cmd/govim: make testscript scripts truly concurrent #691

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Jan 19, 2020

Our cmd/govim testscript tests are split across a number of directories.
This grouping allows us to have separate configuration per directory.

Currently we do not call t.Parallel in each directory's subtest. This
means that we run directory scipts in serial, one directory after
another. Therefore, if there is a particularly slow test in one
directory, we can end up with flat spots where we do not fully utilise
the -test.parallel concurrency limit.

Making directory subtests parallel removes these flat spots. But we do
so at the cost of leaving beind gopls install artefacts. When we start
testing against a Go 1.14 release that includes CL 214822 we can enable
that cleanup, but Go version pre 1.14 will unfortunately continue to
leak these artefacts.

Our cmd/govim testscript tests are split across a number of directories.
This grouping allows us to have separate configuration per directory.

Currently we do not call t.Parallel in each directory's subtest. This
means that we run directory scipts in serial, one directory after
another. Therefore, if there is a particularly slow test in one
directory, we can end up with flat spots where we do not fully utilise
the -test.parallel concurrency limit.

Making directory subtests parallel removes these flat spots. But we do
so at the cost of leaving beind gopls install artefacts. When we start
testing against a Go 1.14 release that includes CL 214822 we can enable
that cleanup, but Go version pre 1.14 will unfortunately continue to
leak these artefacts.
@myitcv
Copy link
Member Author

myitcv commented Jan 21, 2020

@leitzler ended up reviewing this commit as part of #326. So merging.

@myitcv myitcv merged commit 57e94a3 into master Jan 21, 2020
@myitcv myitcv deleted the tests_parallel_subtests branch January 21, 2020 06:09
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.

None yet

1 participant