Skip to content

fix(test): deploy happy-path poll on terminal status, not provider_id#223

Merged
mastermanas805 merged 1 commit into
masterfrom
hotfix/deploy-happy-poll-race-2026-06-03
Jun 3, 2026
Merged

fix(test): deploy happy-path poll on terminal status, not provider_id#223
mastermanas805 merged 1 commit into
masterfrom
hotfix/deploy-happy-poll-race-2026-06-03

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

TestDeployNew_SourceImage_FlagOn_Accepted (and its git sibling) polled the row
until provider_id was non-empty, then asserted status=="healthy". But runDeploy
writes provider_id BEFORE status in two separate UPDATEs, so the poll could
break in the window between them and read a transient "building" — a real race
in the test, not the compute path. It passed in ci.yml build-and-test but lost
the race in deploy.yml's gate, which (now that P3 merged) blocks the api
auto-deploy (prod stuck on the P2 SHA). Poll on the terminal status
(healthy/failed) so the wait covers the final write.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

TestDeployNew_SourceImage_FlagOn_Accepted (and its git sibling) polled the row
until provider_id was non-empty, then asserted status=="healthy". But runDeploy
writes provider_id BEFORE status in two separate UPDATEs, so the poll could
break in the window between them and read a transient "building" — a real race
in the test, not the compute path. It passed in ci.yml build-and-test but lost
the race in deploy.yml's gate, which (now that P3 merged) blocks the api
auto-deploy (prod stuck on the P2 SHA). Poll on the terminal status
(healthy/failed) so the wait covers the final write.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 enabled auto-merge (squash) June 3, 2026 12:05
@mastermanas805 mastermanas805 merged commit 940d2a0 into master Jun 3, 2026
18 checks passed
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