Skip to content

fix: dotnet cmd test flakiness#1238

Open
KuSh wants to merge 2 commits intortk-ai:developfrom
KuSh:dotnet-flakiness
Open

fix: dotnet cmd test flakiness#1238
KuSh wants to merge 2 commits intortk-ai:developfrom
KuSh:dotnet-flakiness

Conversation

@KuSh
Copy link
Copy Markdown

@KuSh KuSh commented Apr 11, 2026

Summary

Drastically reduce dotnet_cmd test flakiness.
Before I got 1 error for 4 runs, now 1 for 1000 on my machine.

It's not totally fixed but it reduces it a lot.
Another way would be to use std::fs::set_times on old.trx to set its time in the past, but it requires unstable fs_set_times feature, so I didn't go down that path.

Also fix new clippy warnings that have appeared

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

KuSh added 2 commits April 11, 2026 22:54
Fix seems counter intuitive but it helps a lot on my machine.
Before, I had 234 errors (23%) out of 1,000 tests run; now, I only have one (0.1%)

It's not totaly fixed but it reduce error a lot and avoids having one almost every time I test a PR.

Another way to completly fix it would be to use std::fs::set_times on old.trx to set each time in the past, but it requires unstable fs_set_times feature, so I'm not sure you'll agree with that

Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
@KuSh KuSh changed the base branch from master to develop April 11, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant