Skip to content

stages/authenticator_validate: fix intermittnetly failing throttling test - #24568

Merged
rissson merged 4 commits into
goauthentik:mainfrom
atereshkin:fix-flaky-throttling-test
Aug 3, 2026
Merged

rissson merged 4 commits into
goauthentik:mainfrom
atereshkin:fix-flaky-throttling-test

Conversation

@atereshkin

Copy link
Copy Markdown
Contributor

Fixes intermittent failure in authentik/stages/authenticator_validate/tests/test_throttling.py::ValidateStageThrottlingFlowTests::test_bad_code_then_correct_code_is_still_blocked, caused by request occasionally taking longer than the 1 second allowed by throttling (the fix is using freeze_time)

Supersedes #24561

@atereshkin
atereshkin requested a review from a team as a code owner July 31, 2026 13:10
@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 2a301a9
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a6ca5b52142de00086ccb84
😎 Deploy Preview https://deploy-preview-24568--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.19%. Comparing base (77d7857) to head (bfadfef).
⚠️ Report is 63 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24568      +/-   ##
==========================================
- Coverage   91.19%   91.19%   -0.01%     
==========================================
  Files        1128     1128              
  Lines       70501    70501              
  Branches     3798     3798              
==========================================
- Hits        64295    64294       -1     
- Misses       6171     6172       +1     
  Partials       35       35              
Flag Coverage Δ
conformance 35.17% <0.00%> (+<0.01%) ⬆️
e2e 39.96% <0.00%> (+<0.01%) ⬆️
integration 31.26% <0.00%> (-0.47%) ⬇️
rust 37.78% <ø> (ø)
unit 92.91% <100.00%> (+0.03%) ⬆️
unit-migrate 92.94% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@rissson rissson added area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Aug 3, 2026
@rissson
rissson merged commit 210df87 into goauthentik:main Aug 3, 2026
119 checks passed
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #24708

rissson added a commit that referenced this pull request Aug 3, 2026
…test (cherry-pick #24568 to version-2026.8) (#24708)

Co-authored-by: Alexander Tereshkin <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Aug 3, 2026
* main:
  root: add AI_POLICY.md (#23481)
  core: Actors (#24353)
  ci: release publish: fix image attestation (cherry-pick #24706 to main) (#24707)
  stages/authenticator_validate: fix intermittnetly failing throttling test (#24568)
  ci: release publish: fix metadata parsing (cherry-pick #24703 to main) (#24704)
  website/docs: fix sidebar titles and ordering (#24051)
  ci: release publish: fix missing gh cli env var (cherry-pick #24695 to main) (#24696)
  ci: release: rename major release to release family (#24691)
  web: ensure native select popup contrast (#24622)
  web: scale small application icons (#24620)
  ci: release tag: add validation that the workflow was started on the appropriate branch (#24676)
  ci: release publish: fix missing checkout (cherry-pick #24684 to main) (#24685)
  web: contain long text in tables and application cards (#24621)
  web: hide plain action icons while loading (#24618)
  website/docs: fix brand name in google results (#24687)
  website/docs: Mark the release notes for 2026.8 as 'beta' (#24682)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants