Don't instantly fail if redeploying a Deployment past PDS
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
The issue names no files, tests, or entry points. Start by locating the deployment-watch handling for progressDeadlineExceeded, then compare the proposed warning-and-continued-watch behavior with the redeploy-detection alternative; done means choosing and implementing a defined behavior that avoids an immediate failure while still respecting the global timeout.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Proposal:
Currently, if someone attempts to redeploy a deployment in the state progressDeadlineExceeded, we instantly fail the deploy. In general, this leads users to think their deploy is fundamentally broken and will not succeed. For the most part, this error is usually indicative of slow cluster operations, and deploys will (eventually) be successful. I propose it would be a better user experience if we handled this case a little more gracefully.
Alternative 1
If the apply of a deployment results in a change to its spec, the status field is cleared and the progressing status is set to true. On redeploy, if we are able to see that apply does nothing and that progressing == false, we know we are in a situation where we are trying to rewatch an in-flight deployment. Coding this has several issues:
- There is no 'lastUpdated' field for the most recent change -> we don't know if we're seeing a new deploy.
- It's difficult to initially observe the
Deploymentresource to know if it is already inprogressDeadlineExceeded, and also difficult to pass that information nicely to the resource object being watched.
One approach could be to look at deploy_started_at and see if it's been at least progressDeadlineSeconds. If so, we know we're in the case where we're watching a redeploy.
Alternative 2
Instead of failing the deploy when progressDeadlineExceeded, we could issue a warning, but continue to watch. If we exceed the global timeout, we can then raise a fatal deployment error as normal.
- Lingua principale
- Ruby
- Stelle
- 1.4k
- Fork
- 119
- Merge medio
- 1h 7m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shopify/krane
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
:sparkles: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
:sparkles: enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di Shopify/krane
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hanami/hanami-action#536 ·
-
[2026-11] Latest release (2026-11) still has expanded list entries that are no longer supportedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Shopify/product-taxonomy#1054 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 13 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
docker/model-runner#1118 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
TarteelAI/quranic-universal-library#1111 ·
I maintainer di solito rispondono entro 1 giorno