tests: fix pr_events race between the eval result and the closed webhook #19
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-flaky-pr-closed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pr_events::closed_cancels_the_graph_but_lets_an_effectful_task_finishfailed in 3 of 8 local runs once all the control-plane suites share one test process (#18). It passed 10/10 when run alone.The extra Cancel it saw was for the eval instance, not the effectful
deploy. The eval'sSucceededevent travels over the agent WebSocket, while theclosedwebhook arrives over HTTP and can overtake it. The control plane then correctly cancels an eval it still sees as running. So this is a race in the test, not a control-plane bug.The fix adds
common::wait_task_stateand waits for the eval to be terminal before postingclosed.🤖 Generated with Claude Code
@krisbuild r+
The pull request head's own build failed (graph 600).
nix/test: exit-code on nuxbox, exit 1 — logPush a fix, or comment
@krisbuild retryto rerun the failed tasks and requeue.Superseded by #20, which landed the same
pr_eventseval wait (pluscommon::wait_task_state). Closing.Removed from the merge queue: the pull request was closed.
Pull request closed