capistrano / capistrano/sshkit
`bundle install` step is assumed to have succeeded when OOM killed
- Lingua principale
- Ruby
- Stelle
- 1.2k
- Fork
- 257
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a Rails app that when deployed, runs the command
```
cd /home/app/staging/releases/20250304094541 && /usr/bin/env bundle install --jobs 4 --quiet
```
on the server. Due to `--jobs 4` and the amount of memory available, it happens to be OOM-killed.
SSHKit happily assumes it has succeeded and continues, erroring on a follow-up step.
My suspicion is that this commented-out code points into the direction of a solution: https://github.com/capistrano/sshkit/blob/master/lib/sshkit/backends/netssh.rb#L160-L166
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inspect lib/sshkit/backends/netssh.rb around lines 160-166, where the issue notes commented-out handling related to command status. Start by tracing how Net::SSH command failures are reported for the bundle install invocation, then verify that an OOM-killed command is treated as failed and prevents follow-up deployment steps.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ruby
- Ambito
- devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 48/100