[compiler-rt] Fix flaky test xray/basic-filtering.cpp (PR #186611)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 10:45:19 PDT 2026


vitalybuka wrote:

> It's unclear why this fixes the issue.
> 
> And if you have reproduced this locally and this makes the frequency of failure much lower, this is still only a bandaid fix. We shouldn't be relying on timing in the first place to ensure a test passes.

Unless you can find someone who is willing to rewrite the test, bandaid is better than nothing.

We need to fix this flakiness: 
1. Rewrite test - need volunteer (I don't buy that keeping it flaky is good way to find one)   
2. Disable - also bad , but maybe it still can detect unintentional regresson
3. Bandaid - if it drops failure significantly (looks like the case).

So I am strongly for merging this PR.

https://github.com/llvm/llvm-project/pull/186611


More information about the llvm-commits mailing list