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/integration: run parallel tests concurrently with serial tests #808

Merged
merged 2 commits into from Aug 26, 2021

Conversation

enj
Copy link
Contributor

@enj enj commented Aug 25, 2021

Signed-off-by: Monis Khan mok@vmware.com

Fixes #803
Fixes #351

Release note:

NONE

@codecov
Copy link

codecov bot commented Aug 25, 2021

Codecov Report

Merging #808 (e2cf9f6) into main (475da05) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #808   +/-   ##
=======================================
  Coverage   79.15%   79.15%           
=======================================
  Files         128      128           
  Lines        8768     8768           
=======================================
  Hits         6940     6940           
  Misses       1604     1604           
  Partials      224      224           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 475da05...e2cf9f6. Read the comment docs.

@enj enj force-pushed the enj/t/integration_parallel branch from fc046eb to 8df8379 Compare August 25, 2021 19:03
@enj enj changed the title Run integration tests in parallel integration test: create parallel package to handle parallel tests Aug 25, 2021
@enj enj force-pushed the enj/t/integration_parallel branch from 8df8379 to 7c9680f Compare August 25, 2021 19:33
@enj enj changed the title integration test: create parallel package to handle parallel tests test/integration: run parallel tests concurrently with serial tests Aug 25, 2021
@enj enj force-pushed the enj/t/integration_parallel branch 6 times, most recently from 4e7a6fb to 8fe60c8 Compare August 26, 2021 02:54
@enj enj enabled auto-merge August 26, 2021 02:57
for _, test := range tests {
test := test

if strings.Contains(test.Name, "Parallel") {
Copy link
Member

Choose a reason for hiding this comment

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

@enj It looks like you meant to say "ends with _Parallel" here, so we don't accidentally classify TestMyParallelFunctionality as one of these special tests.

Copy link
Member

Choose a reason for hiding this comment

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

Or maybe "ends with _Parallel OR contains _Parallel/"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I was being a bit lazy here, I can change it to "ends with _Parallel"

Instead of blindly waiting long enough for a disruptive change to
have been observed by the old leader and followers, we instead rely
on the approximation that checkOnlyLeaderCanWrite provides - i.e.
only a single actor believes they are the leader.  This does not
account for clients that were in the followers list before and after
the disruptive change, but it serves as a reasonable approximation.

Signed-off-by: Monis Khan <mok@vmware.com>
@enj enj force-pushed the enj/t/integration_parallel branch from 9cc90a3 to e2cf9f6 Compare August 26, 2021 17:00
@enj enj merged commit d22099a into vmware-tanzu:main Aug 26, 2021
cfryanr added a commit that referenced this pull request Sep 21, 2021
This was broken recently by the improvements in #808.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run integration tests in parallel Integration tests: mark more tests as parallel
4 participants