Repository navigation
fix(cli): stop the account changes test timing out under load - #626
Draft
PiquelChips wants to merge 1 commit into
Draft
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
`account update` syncs the renamed login to disk. On a busy disk that can take longer than the fake server's 10-second accept timeout, so the server stopped listening and the next command got "Connection refused". The update now gets a server of its own, and the other changes use one started after it.
PiquelChips
force-pushed
the
fix/account-changes-test-timeout
branch
from
November 22, 2026 22:12
43790d3 to
2f2b0da
Compare
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.
What and why
account_changes_resolve_usernames_to_typed_requestsfailed under load because of its fake server, not because of the CLI's 2-second--timeout.account updatesyncs the renamed login to disk with two fsyncs. On a busy disk this took longer than the server's 10-secondACCEPT_TIMEOUT, so the server stopped listening and the next command (account delete) got "Connection refused".The update now gets a fake server of its own, and the other changes go to one started after it, so the fsync no longer falls inside any server's accept window. The test checks the same requests and the same saved login. The harness, its
ACCEPT_TIMEOUTfail-fast and the 2-second timeout are unchanged. The 2-second timeout never fired in about 150 runs at load 60–100.Fixes PQD-168
Proof: on
mainunder disk load (dd with fsync) at load 70, 15 of 24 runs failed, all with "accept timeout after 2 of 14" andConnection refused. With this change, 24 of 24 passed in the same setup, plus 25 of 25 at load 92–96 (slowest 22 s). With an 11-second sleep added afterupdate,mainfails the same way and this change passes.Checklist
AGENTS.mdit applies to,documentation included, with its reverse states. (Test-only change; no surface applies.)
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)