jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-58488] Restart from stage does not work with timeout step
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 73
- Fork
- 129
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
If a stage contains a timeout step, then the "Restart from stage" feature does not work. Any attempt to restart the stage is just skipped by the timeout step.
A quick look to the timeout step code shows that it stores the time limit (end) as an absolute timestamp. So if the restart stage happens after that fixed time limit has passed then this issue is visible.
Originally reported by
amuniz, imported from: Restart from stage does not work with timeout step
- status: Open
- priority: Major
- component(s): workflow-basic-steps-plugin
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 20251215-220547
Raw content of original issue
If a stage contains a timeout step, then the "Restart from stage" feature does not work. Any attempt to restart the stage is just skipped by the timeout step.
A quick look to the timeout step code shows that it stores the time limit (end) as an absolute timestamp. So if the restart stage happens after that fixed time limit has passed then this issue is visible.
Guida per i contributori
Apri 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.
Direzione di ricerca
Inizia da src/main/java/org/jenkinsci/plugins/workflow/steps/TimeoutStepExecution.java intorno alla riga 49, quindi traccia come Restart from stage interagisce con il timeout step. Riproduci un riavvio dopo che la scadenza di timeout originale è trascorsa; il lavoro è completato quando la stage riavviata viene eseguita invece di essere saltata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- ci-cd
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100