You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flaky test: TestValidate_OIDC_KeyRotation_RefreshOnUnknownKid fails intermittently in CI #1381
validator_test.go:456: kid B (post-rotation): scheduledauth: unauthorized: failed to verify signature
in TestValidate_OIDC_KeyRotation_RefreshOnUnknownKid (internal/server/scheduledauth). The test passes 5/5 locally at the same commit, and no recent merge touched the JWKS rotation logic (only comment/lint-level changes in the package), so this is a timing-sensitive flake in the post-rotation kid-refresh path (likely a race between the rotation swap and the refresh-on-unknown-kid fetch against the httptest JWKS server).
Fix properly per the no-sleep rule: synchronize the rotation with the validator's refresh (channel/Swap-then-signal), not a retry/sleep. Failed CI run: 29515xxx series on main (job 87679827193).
Activity
fix(scheduledauth): retry once on unknown-kid signature failure; dete…
fix(scheduledauth): retry once on unknown-kid signature failure; dete…
Merge pull request #1386 from LeanerCloud/fix/oidc-rotation-test-race
cristim commentedon Jul 16, 2026
Fixed and merged via #1386 (retry-once + rate-limited verifier rebuild). Unit Tests deterministic on main now.