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

Fix non-deterministic test sharding with --order=lexical #2795

Merged
merged 1 commit into from
Jun 19, 2022

Conversation

StephanTLavavej
Copy link
Member

Fixes #2794, which silently degraded our test coverage.

Thanks to @CaseyCarter for investigating the bizarre symptoms and finding this documented option.

@StephanTLavavej StephanTLavavej added infrastructure Related to repository automation test Related to test code labels Jun 16, 2022
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner June 16, 2022 09:43
@StephanTLavavej StephanTLavavej self-assigned this Jun 19, 2022
@StephanTLavavej
Copy link
Member Author

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 61eac79 into microsoft:main Jun 19, 2022
@StephanTLavavej StephanTLavavej deleted the order-lexical branch June 19, 2022 22:56
@StephanTLavavej
Copy link
Member Author

I compared the logs for this CI run and the following run (which had no test additions/removals). Their x64 3 shards ran exactly the same tests with exactly the same results (slightly different times of course), verifying that this works in practice (and not just on the same physical machine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Related to repository automation test Related to test code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LLVM lit sharding is non-deterministic
4 participants