Skip to content

fix: dotnet cmd test flakiness#1238

Merged
aeppling merged 1 commit intortk-ai:developfrom
KuSh:dotnet-flakiness
May 4, 2026
Merged

fix: dotnet cmd test flakiness#1238
aeppling merged 1 commit intortk-ai:developfrom
KuSh:dotnet-flakiness

Conversation

@KuSh
Copy link
Copy Markdown
Collaborator

@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.

Test plan

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

@KuSh KuSh changed the base branch from master to develop April 11, 2026 20:59
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>
@KuSh KuSh force-pushed the dotnet-flakiness branch from 686d496 to b269918 Compare April 26, 2026 00:06
@aeppling aeppling self-assigned this May 4, 2026
@aeppling aeppling merged commit 17ffe62 into rtk-ai:develop May 4, 2026
12 checks passed
@aeppling aeppling mentioned this pull request May 4, 2026
@KuSh KuSh deleted the dotnet-flakiness branch May 4, 2026 20:35
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.

2 participants