Offload: a 'run' job reports PASS when its command failed (and the README's $BLD/b path does not exist)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bash, shell
- Ambito
- build-system, cli
Direzione di ricerca
Inizia da tools/offload/run-offload.sh e dalla tabella dei comandi del README che descrive il job run e il relativo percorso dell’albero di build. Riproduci il comportamento segnalato con un comando in cui fallisce una fase iniziale della pipeline, poi fai in modo che run propaghi lo stato di errore dell’intero comando e identifichi il comando fallito. Il lavoro è completo quando l’esempio non stampa più PASS né termina con 0 e il percorso di build documentato corrisponde a quello usato da run.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
tools/offload/run-offload.sh ... run <cmd> reports PASS and exits 0 when
the command it ran failed.
Seen today building a package on beryllium:
run bash -c 'cd $BLD/b && cpack -G DEB 2>&1 | tail -5; ls -lh *.deb | tail -5'
bash: line 1: cd: /home/andy/ecce-offload/build/main/b: No such file or directory
ls: cannot access '*.deb': No such file or directory
PASS: run bash -c ... on main (8825ee3dda) exit 0, 1470s
Nothing was built, and the job reported success.
Two causes, and the second is the one that matters:
- The README's command table says the build tree is
$BLD/b. For arun
job it is$BLD/bi, the same treectestiuses. Either the README or the
variable should change; the path in the docs does not exist. runtakes its status from the last command of the pipeline rather than
from the whole command, so an early failure is invisible. Herecd
failed,cpacknever ran,lsfailed, and the job still exited 0.
This is the same shape as #1301 (a ctest -R matching no test exiting 0) and
#1309: a step that did nothing reports success. An offload run is used for
measurement sweeps and packaging, where "it printed PASS" is often the only
thing anyone looks at.
Suggested: run should use set -o pipefail and fail on any non-zero status
in the command it was given, and say which command failed. A run whose
command produced no output at all is also worth failing, as #1309 does for
test scripts.
- Lingua principale
- C
- Stelle
- 10
- Fork
- 8
- Merge medio
- 6h 32m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 FriendsofECCE/ECCE
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
FriendsofECCE/ECCE#1353 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
FriendsofECCE/ECCE#1348 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
FriendsofECCE/ECCE#1345 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
FriendsofECCE/ECCE#1333 ·
Tutte le issue di FriendsofECCE/ECCE
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 3 giorni
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
kamgurgul/mib2q-carplay#74 ·
-
Claude:NotNeeded GPT:NotABug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
open5gs/open5gs#5195 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
i3-compat
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 5 giorni
-
`gamma` is log-gamma on Linux (glibc) but the gamma function elsewhere; gojq and jaq implement ΓForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno