Skip to content

test(acp): settle/1 tolerates a peer that stopped between the alive check and the sync - #782

Merged
jhgaylor merged 3 commits into
mainfrom
test/acp-settle-race
Aug 17, 2026
Merged

jhgaylor merged 3 commits into
mainfrom
test/acp-settle-race

Conversation

@jhgaylor

Copy link
Copy Markdown
Collaborator

Flake seen on #780's partition 2: the conversation accepts another prompt afterwards — settle/1 read acp_peer, checked Process.alive?, and the peer stopped (server stops it on {:done, _}) before :sys.get_state → noproc. A dead peer at that point IS the settled state. Catch the exit. 22/22 locally.

🤖 Generated with Claude Code

jhgaylor and others added 3 commits August 17, 2026 00:09
…z#6088

The PR's single commit was amended with Signed-off-by to satisfy Block's DCO
check (83eda69a -> af535a64, identical tree). The old sha is now unreachable
from any branch on the fork, so the pin follows it before GitHub can GC it.

Co-Authored-By: Claude Fable 5 <[email protected]>
…heck and the sync

The server stops the peer the moment it reports {:done, _}; :sys.get_state
on it can hit noproc. That is the settled state, not a failure — it flaked
partition 2 on 2026-08-17.

Co-Authored-By: Claude Fable 5 <[email protected]>
@jhgaylor
jhgaylor merged commit e389197 into main Aug 17, 2026
8 checks passed
@jhgaylor
jhgaylor deleted the test/acp-settle-race branch August 17, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant