jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-58488] Restart from stage does not work with timeout step

Aperta
#491 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

component:workflow-basic-steps-plugin imported-jira-issue priority:major resolution:unresolved
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. 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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.