Repository navigation
Name the auth store startup stage in timeouts (refs #339) - #341
Merged
Merged
Conversation
…apses (refs #339) Co-Authored-By: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #339 (does not close it).
What the evidence says
Windows failures (jobs 106140203347 for #328, 106144892279 for #333, first attempts) versus passing Windows runs:
kit-rendered admin pages ...(untouched, same file set)onlineafter 22 ms and message wiring is synchronous withnew Worker(no await in between). Its startup (open, WAL andsynchronous=FULLfsyncs, schema transaction) then took more than 15 s where it normally takes well under a second. That is a stall, not a lost message.exportUserRangehas a fixed 5 s product deadline covering about 55 fsync-bound store calls (adminExportper user); under the same I/O stall it legitimately returns 413Narrow the user filters.What I did not change, and why
importUsersskips the external-identity link that themethod=oidcfilter in this test depends on, so using it would weaken what the test proves. The 5 s export deadline is product behavior and stays.The change (diagnostic only)
The next occurrence should be attributable. The worker now posts
{ stage }progress messages (database opened,journal mode set) and the startup timeout message includes the last stage reached, or says the database open itself had not returned.awaitStoreStartupignores progress messages for settling and removes its listener when the bound elapses. No behavior, timing or budget changes; message text for the timeout gains a suffix.Verified
npm ciandnpm run verify(including verify:workspaces) pass locally on macOS. Local SQLite may lack the patch level for some auth tests; CI covers that.Not verified / open decisions
journal mode set(the WAL/fsync step) after a long stall, consider raising the budget for CI only, or makingverifyon Windows run the admin suite with lower test concurrency. Your call.🤖 Generated with Claude Code