Skip to content

auth: widen constant-time login test margin - #428

Merged
espadonne merged 1 commit into
trunkfrom
fix/login-timing-test-flake-2
Sep 3, 2026
Merged

auth: widen constant-time login test margin#428
espadonne merged 1 commit into
trunkfrom
fix/login-timing-test-flake-2

Conversation

@espadonne

Copy link
Copy Markdown
Contributor

TestLogin_ConstantTime failed again on an unrelated docs PR (#427): the in-test hash baseline measured 34 ms while a full existing-user login measured 22 ms and the missing-user login 13 ms, i.e. the baseline itself was inflated by neighbouring parallel tests on the shared runner. The assertion now compares the missing-user median against the cheaper of (hash cost, existing-user login) with a 4x margin. A real shortcut (~1 ms) still fails it.

  • auth: widen constant-time login margin against CI timing noise

Test targets:

  • CI Integration step: internal/web/handlers/auth green

@espadonne
espadonne merged commit 063de8e into trunk Sep 3, 2026
1 check passed
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