Cached failed action is used when retrying a failed build
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- build-system, cli
Direzione di ricerca
Inizia tracciando il percorso della riga di comando --retry-failed e la ricerca in action-cache utilizzata durante l’esecuzione remota. Riproduci lo scenario registrato con un’azione memorizzata nella cache che ha avuto esito negativo; il lavoro è completato quando il nuovo tentativo ignora l’errore memorizzato nella cache ed esegue nuovamente l’azione di build.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When using remote execution, if a build fails the failure is saved in the action cache. However builds can fail for a variety of reasons (e.g. running out of resources) that are not necessarily reproducible.
Buildstream offers to retry at the command line and also offers the --retry-failed command line argument for this purpose. However, it will still get a cached failure from the action cache.
Here is an example log (I extracted just the things relevant to the element in question):
[11:08:35][--:--:--][8524a2f2][ pull:freedesktop-sdk.bst:components/fontconfig.bst] START freedesktop-sdk/components-fontconfig/8524a2f2-pull.20250611-110835.log
[11:08:35][--:--:--][8524a2f2][ pull:freedesktop-sdk.bst:components/fontconfig.bst] STATUS Pulling artifact 8524a2f2 <- https://gbm.gnome.org:11004
[11:08:35][--:--:--][8524a2f2][ pull:freedesktop-sdk.bst:components/fontconfig.bst] STATUS Pulling data for artifact 8524a2f2 <- https://gbm.gnome.org:11004
[11:08:35][--:--:--][8524a2f2][ pull:freedesktop-sdk.bst:components/fontconfig.bst] INFO Pulled artifact 8524a2f2 <- https://gbm.gnome.org:11004
[11:08:35][--:--:--][8524a2f2][ pull:freedesktop-sdk.bst:components/fontconfig.bst] INFO Discarded failed build
[11:08:35][00:00:00][8524a2f2][ pull:freedesktop-sdk.bst:components/fontconfig.bst] SKIPPED Pull
[11:08:35][--:--:--][8524a2f2][ fetch:freedesktop-sdk.bst:components/fontconfig.bst] START freedesktop-sdk/components-fontconfig/8524a2f2-fetch.20250611-110835.log
[11:08:35][--:--:--][8524a2f2][ fetch:freedesktop-sdk.bst:components/fontconfig.bst] STATUS Pulling source 031032b8 <- https://gbm.gnome.org:11004
[11:08:36][--:--:--][8524a2f2][ fetch:freedesktop-sdk.bst:components/fontconfig.bst] STATUS Pulling data for source 031032b8 <- https://gbm.gnome.org:11004
[11:08:36][--:--:--][8524a2f2][ fetch:freedesktop-sdk.bst:components/fontconfig.bst] INFO Pulled source 031032b8 <- https://gbm.gnome.org:11004
[11:08:36][00:00:00][8524a2f2][ fetch:freedesktop-sdk.bst:components/fontconfig.bst] SUCCESS freedesktop-sdk/components-fontconfig/8524a2f2-fetch.20250611-110835.log
[11:08:37][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] START freedesktop-sdk/components-fontconfig/8524a2f2-build.20250611-110837.log
[11:08:37][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] START Staging dependencies at: /
[11:09:04][00:00:26][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] SUCCESS Staging dependencies at: /
[11:09:04][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] START Integrating sandbox
[11:09:32][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] INFO Action result found in action cache
[11:09:48][00:00:44][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] SUCCESS Integrating sandbox
[11:09:48][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] START Staging sources
[11:09:48][00:00:00][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] SUCCESS Staging sources
[11:09:48][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] START Running commands
[11:09:48][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] INFO Action result found in action cache
[11:09:49][00:00:00][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] FAILURE Running commands
[11:09:49][--:--:--][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] START Caching artifact
[11:09:49][00:00:00][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] SUCCESS Caching artifact
[11:09:49][00:01:11][8524a2f2][ build:freedesktop-sdk.bst:components/fontconfig.bst] FAILURE Command failed
You can see that bst pulled a cached failure and promptly discarded it, but it then proceeded to get the failed action from the action cache and not actually retry the build.
- Lingua principale
- Python
- Stelle
- 144
- Fork
- 45
- Merge medio
- 20h 38m
- PR unite (30g)
- 6
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.
Altre issue di apache/buildstream
-
logging
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/buildstream#2150 · 3 commenti ·
-
question
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
apache/buildstream#2143 · 2 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
apache/buildstream#2194 ·
-
Modification time of an element with an open workspace propagates into consumer element's sandbox Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
apache/buildstream#2186 · 2 commenti · 2 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
apache/buildstream#2184 · 1 commento ·
Tutte le issue di apache/buildstream
Issue simili
-
triage/confirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100