fix(test): replace flaky PKCE distribution test with deterministic checks#258
fix(test): replace flaky PKCE distribution test with deterministic checks#258
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughReplaces a probabilistic PKCE distribution test with two deterministic tests. One test spies on and mocks Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4e59fdb to
d6892ff
Compare
d6892ff to
0650d32
Compare
Summary
generateCodeVerifierhad a ~2% failure rate per CI run (example failure) — the 10% tolerance was ~3.6σ per character, and with 66 characters tested the Bonferroni-corrected probability was high enough to flake regularlycrypto.getRandomValuesto feed byte 198 (at threshold, rejected) then byte 197 (below, accepted), verifying the off-by-one boundary is correctTest plan
bun test packages/cli-core/src/lib/pkce.test.ts— 11 pass, 0 fail