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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for running unit tests in parallel #1659

Merged
merged 1 commit into from May 17, 2021

Conversation

dominiklohmann
Copy link
Member

馃摂 Description

Before this change, the filesystem unit test fixture used a fixed vast-unit-test root directory. Now, we use vast-unit-test/<suite> instead to avoid races when running tests in parallel, e.g., via ctest -j12 -C Debug.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

Test locally via

ctest --test-dir <path/to/build> -j12 -C Debug

@dominiklohmann dominiklohmann added the bug Incorrect behavior label May 17, 2021
@dominiklohmann dominiklohmann requested a review from a team May 17, 2021 09:23
@dominiklohmann dominiklohmann force-pushed the story/ch25558/parallel-unit-tests branch from b7b4671 to 8ad2352 Compare May 17, 2021 09:26
Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

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

Looks good to me, and at least solves the issue with ctest. (although running two independent instances of vast-test in parallel would still fail, but we don't need to solve this in this PR)

libvast/vast/detail/pp.hpp Outdated Show resolved Hide resolved
Before this change, the filesystem unit test fixture used a fixed
`vast-unit-test` root directory. Now, we use `vast-unit-test/<suite>`
instead to avoid races when running tests in parallel, e.g., via `ctest
-j12 -C Debug`.
@dominiklohmann dominiklohmann force-pushed the story/ch25558/parallel-unit-tests branch from 8ad2352 to 8a752b1 Compare May 17, 2021 14:17
@dominiklohmann dominiklohmann merged commit 786d6a7 into master May 17, 2021
@dominiklohmann dominiklohmann deleted the story/ch25558/parallel-unit-tests branch May 17, 2021 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
2 participants