Control API receiving deploy intent before build causes dev loop to softlock #4886
Labels
area/api
kind/bug
Something isn't working
priority/p3
agreed that this would be good to have, but no one is available at the moment.
Expected behavior
When dev loop is running with
auto-build
andauto-deploy
both set to false, if a rebuild is necessary and a deploy intent is issued by the user before the build intent, this intent should be ignored by the server andneedsDeploy
should still betrue
.Actual behavior
When a change is made to an already-deployed application, the intents are reset on the runner. Then, when a deploy intent is received first, skaffold tries to redeploy (which it shouldn't), though nothing changes, but the intent is then set to
false
. Thus, if a build intent is sent after this, the build will occur, but subsequentdeploy
intents will do nothing.Users can escape out of this by making another code change, but it's still a bad UX.
To fix, we should do two things:
autoBuild
set to false as well, and haven't received a build intent yet). in the logs I seeDEBU[0024] 1 manifests to deploy. 0 are updated or new
, so I know we're tracking thisneedsRedeploy
whenever a build is completeInformation
Steps to reproduce the behavior
getting-started
works fineskaffold dev --auto-build=false --auto-deploy=false --rpc-http-port=12345
main.go
curl http://localhost:12345/v1/execute -X POST -d '{"deploy": true}
curl http://localhost:12345/v1/execute -X POST -d '{"build": true}
curl http://localhost:12345/v1/execute -X POST -d '{"deploy": true}
The text was updated successfully, but these errors were encountered: