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

TOOL-1907 fix flaky CI test case #712

Merged
merged 2 commits into from
Mar 27, 2020
Merged

TOOL-1907 fix flaky CI test case #712

merged 2 commits into from
Mar 27, 2020

Conversation

trapacska
Copy link
Collaborator

$ go help testflag

-parallel n
	    Allow parallel execution of test functions that call t.Parallel.
	    The value of this flag is the maximum number of tests to run
	    simultaneously; by default, it is set to the value of GOMAXPROCS.
	    Note that -parallel only applies within a single test binary.
	    The 'go test' command may run tests for different packages
	    in parallel as well, according to the setting of the -p flag
	    (see 'go help build').

$ go help build

	-p n
		the number of programs, such as build commands or
		test binaries, that can be run in parallel.
		The default is the number of CPUs available.

Created a test case run timeline graph with the default settings:
cli_failure

Also created a graph with -p 1:
cli_ok

So it is clearly visible that packages are running in parallel and also that it can be turned off.

@trapacska trapacska requested review from a team and removed request for a team March 26, 2020 16:35
@ghost ghost requested review from Szabadember and removed request for a team March 26, 2020 16:36
@lpusok lpusok self-requested a review March 27, 2020 09:57
@trapacska trapacska merged commit 1ca1a1f into master Mar 27, 2020
@trapacska trapacska deleted the tool-1907-fix branch March 27, 2020 13:58
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