run-offload.sh: cancelling a job leaves the remote driver running, holding the slot and building the cancelled commit
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- bash, linux, shell
- Ambito
- devops, infrastructure
Direzione di ricerca
Start with tools/offload/run-offload.sh and trace how it starts the remote bash -s driver and manages the shared slot. Reproduce cancellation and inspect the remote process tree and slot handling; make sure cleanup targets only the job's branch or worktree path. Done means cancelling a wrapper stops its remote driver and test children without affecting other users' jobs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found while clearing nerdegg's single slot during the 9.6.1 work. It happened twice in one night, to two different people.
tools/offload/run-offload.sh drives the host over ssh. Killing the local wrapper - a cancelled background job, a stopped agent, Ctrl-C - does not stop the remote side. The bash -s -- <ref> <command> driver on the host keeps running, is reparented to init, and carries on. In one case its ctest was still launching tests, including starting ecce-qm runs, well after the local job was gone.
Two consequences:
- The slot stays occupied by work nobody is waiting for, and other jobs queue behind a ghost.
- A cancelled job still runs. One of the orphans here was an early build of a commit that had been superseded because it did not compile; had it reached the slot it would have built the broken commit and reported on it.
Cleaning up by hand means killing the remote driver, its orphaned ctest (whose parent is now init, so it does not match the job's process tree) and the remaining test children, by pid.
A trap worth naming in the fix: the obvious clean-up, matching on the tool name (pkill ctest), kills every other user's run on the shared host. Any clean-up must match on the branch or worktree path. One attempt at the broad form was made here and stopped before it executed; it would have destroyed two unrelated jobs.
Suggested fix: have the wrapper trap its own termination and tell the host to kill that job's process group; or have the host write the driver's pid into the slot file so a later job can tell a live holder from a ghost and reclaim the slot.
Related: #1220, #1292 and the #1282 verification were all queued behind the orphans while this was sorted out.
- 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 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
FriendsofECCE/ECCE#1345 ·
Tutte le issue di FriendsofECCE/ECCE
Issue simili
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vincentarelbundock/xtx#11 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
compiler-explorer/compiler-explorer#9738 ·
I maintainer di solito rispondono entro 2 giorni
-
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 ·