Repository navigation
Acquire account locks before starting account updates - #1790
Conversation
Architecture-Review: unchanged; account operations keep their existing locks and acquire them before mutable work. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by codex on d2a19fe54e35435d16403efaf80acba502e1c21b, 59.5s: request_changes (0 critical, 2 important, 1 suggestion)
Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: d569624a0f2d9939c420a8a6326eacdc76e760ddb928818503aa15d960415418
| lambda: helper.check(quiet=True), | ||
| lambda: helper.cmd_add("codex", "new"), | ||
| lambda: helper.cmd_pinned_exec("codex", helper.identity("codex", "b"), ["unused"]), | ||
| lambda: helper.exhausted("codex", helper.identity("codex", "main"), "model", retry_env={}), |
There was a problem hiding this comment.
suggestion: Exercise the Codex retry through cmd_run
Calling exhausted directly verifies its lock acquisition, but the regression would still pass if cmd_run reacquired the home lock after selection. The existing successful replay test uses Claude. Add a Codex replay from main to an extra home and assert that the second child receives the selected home and identity with only one home-lock acquisition across selection and replay.
Architecture-Review: unchanged; launch uses the same account locks and each provider is prepared once. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by codex on 8dae2be845895d2c2d884775aec3d04153f0bbf0, 23.9s: approve (0 critical, 0 important, 1 suggestion)
Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 207bf9f1d6ee2a42191cc4f033b3caa66c2800e341a537b8e10a81415087d8f7
| for operation in operations: | ||
| with pytest.raises(helper.AccountLockTimeout, match=r"\.codex-sync\.lock is busy"): | ||
| operation() | ||
| assert elapsed == 360 |
There was a problem hiding this comment.
suggestion: Check the timeout for each lock acquisition
The 360-second total can pass even if one operation exceeds its deadline and another returns early. Capture the fake clock before each operation, including the separate .lock check, and assert that each timeout occurs within the acquisition bound. This also avoids recalculating the total when adding a case.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Acquire account locks before starting account updates
Context and goal
Supersedes #1773. Closes #1665.
Acceptance
Validation
Recorded for
8dae2be84589uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Review
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.