Skip to content

hack: wait for a pool's Deployment to exist before its rollout [CI flake fix] - #1320

Open
Benjamin Elder (BenTheElder) wants to merge 1 commit into
agent-substrate:mainfrom
BenTheElder:hack-wait-for-pool-deployment
Open

hack: wait for a pool's Deployment to exist before its rollout [CI flake fix]#1320
Benjamin Elder (BenTheElder) wants to merge 1 commit into
agent-substrate:mainfrom
BenTheElder:hack-wait-for-pool-deployment

Conversation

@BenTheElder

Copy link
Copy Markdown
Collaborator

ate-controller creates a WorkerPool's Deployment, so it does not exist yet when the apply returns.

kubectl rollout status reads the object before it starts watching and errors on a missing one instead of waiting, so whether these waits worked at all came down to beating the controller by a round trip.

e2e lost that race by 178ms, failing the deploy with NotFound while the pool's pods were already being created.

Fixes yet another flake I observed here: https://github.com/agent-substrate/substrate/actions/runs/33275880827/job/99162382080?pr=1283

ate-controller creates a WorkerPool's Deployment, so it does not exist
yet when the apply returns. `kubectl rollout status` reads the object
before it starts watching and errors on a missing one instead of waiting,
so whether these waits worked at all came down to beating the controller
by a round trip. e2e lost that race by 178ms, failing the deploy with
NotFound while the pool's pods were already being created.
@BenTheElder Benjamin Elder (BenTheElder) added kind/bug Something isn't working / bugfixes area/tests Enhancing / fixing test coverage. area/dev-infra labels Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dev-infra area/tests Enhancing / fixing test coverage. kind/bug Something isn't working / bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant