You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky test: dotnet_trx test_parse_trx_files_in_dir_since_ignores_older_files depends on file mtimes #4037
cmds::dotnet::dotnet_trx::tests::test_parse_trx_files_in_dir_since_ignores_older_files fails intermittently. It is not tied to any change — it flakes on unmodified develop-era trees.
thread '…test_parse_trx_files_in_dir_since_ignores_older_files' panicked at
src/cmds/dotnet/dotnet_trx.rs:576:75:
merged summary
Reproduction
Run it repeatedly in isolation:
cargo test --bin rtk test_parse_trx_files_in_dir_since_ignores_older_files
2 failures in 6 runs on that PR's merge-base (da3c4322), which predates the change entirely
So it is pre-existing and independent of the code under test in either tree.
Likely cause
The test name says it: it filters TRX files by "since" a timestamp, so it depends on file mtimes. Files written within the same clock tick — or a filesystem whose mtime granularity is coarser than the test assumes — make "older" and "newer" indistinguishable, and the .expect("merged summary") at dotnet_trx.rs:576 then unwraps a None.
A fixed, explicitly-set mtime on the fixture files, rather than one derived from write order, would make it deterministic.
Why it is worth fixing
It is a false red in CI on an unrelated PR, which is the kind of failure that trains reviewers to re-run rather than read.
Activity
rtk-wshm-sync-bot commentedon Sep 13, 2026
🔍 Automated Triage
bugmediumSummary
Flaky unit test depends on file mtime granularity; fix by setting explicit mtimes on fixture files rather than relying on write-order timing.
📁 Relevant files
src/cmds/dotnet/dotnet_trx.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
TechWizard9999 commentedon Sep 14, 2026
Hi @KuSh , Can I work on this issue ?
KuSh commentedon Sep 14, 2026
Sure!
TechWizard9999 commentedon Sep 14, 2026
@KuSh I have raised an pr could you please reveiw this ? whenever you are free
fix(tests): make dotnet_trx mtime-dependent tests deterministic
fix(tests): make dotnet_trx mtime-dependent tests deterministic