delete this branch specs/040-fix-ci-noise-floor/. This spec is no good.
- User
delete this branch specs/040-fix-ci-noise-floor/. This spec is no good.
Assistant· claude-opus-4-6
Done. The
specs/040-fix-ci-noise-floor/directory has been deleted.- User
Review this issue and explain to me the most efficient way to fix it. https://github.com/oddessentials/ado-git-repo-insights/issues/202
Assistant· claude-opus-4-6
The fix is a single-character change.
Line 489 — change
NOISE_FLOOR_MSfrom2to5:typescriptconst NOISE_FLOOR_MS = 5;Why this works: The test compares two timing paths (v1 vs v2). When both finish under
NOISE_FLOOR_MS(line 630), it skips the flaky percentage comparison and instead just asserts the absolute time is acceptable. On CI shared runners, both paths complete in ~1-3ms, so a floor of2still lands in the percentage branch where timer jitter causes false failures (like the 20.53% example). Raising it to5ensures those sub-5ms results take the stable absolute-check path instead.No other files need to change — the constant is local to this test.
- User
make the change and create a PR then close the gh issue as part of the close
Assistant· claude-opus-4-6
Done:
- PR: oddessentials/ado-git-repo-insights#203
- Issue: oddessentials/ado-git-repo-insights#202 closed as completed
- User
So after this merge, our CLI tool will work as expected?
Assistant· claude-opus-4-6
This PR only fixes a flaky test — it changes zero runtime code. It won't affect the CLI tool's behavior at all.
The actual CLI work was in PR #201 (039-cli-hardening), which is already merged (commit
d290a8bon main). So your CLI improvements are already live as of release 5.28.2.PR #203 just stops that unrelated SC-002 timing test from intermittently failing on CI shared runners.
- User
PS E:\projects\ado-git-repo-insights> uv tool install ado-git-repo-insights
ado-git-repo-insightsis already installed. How do I update it instead? Assistant· claude-opus-4-6
codeuv tool upgrade ado-git-repo-insights