Commit 74802f5
fix(deb): three CodeRabbit findings on the extracted scripts
`resolve-one-deb.sh` accepted an empty `--arch`, which fell through to the
unfiltered branch and matched any .deb — silently disabling the very guard
the flag exists for. release.yml passes `"${ARCH}"` from the matrix, so an
unset ARCH could have handed an arm64 package to the job that labels it
Intel/AMD.
`smoke-deb.sh`'s cleanup did an unbounded `wait` before its KILL sweep, so
the sweep was unreachable in exactly the case it existed for: anything in
the process group ignoring SIGTERM would block the EXIT trap until the job
timeout. Same hang class this plan already fixed in the closure script, on
the same release-gating path. Now a bounded poll, then KILL, then reap.
The closure script's exit-code mapping conflated its two timeouts. Both
`timeout` calls exit 124 and the inner one propagates out as the container
status, so a launch timeout reported itself as the 900s docker budget
being exceeded — the same misdiagnosis this script was rewritten to stop
making, one layer down. The inner timeout is now remapped to 125 with its
own message.
All three verified in the shed: empty `--arch` rejected; smoke and closure
still pass on a good .deb; and the new 125 path exercised end-to-end
against the stripped-Depends .deb with a short launch budget, which
correctly reports "did not answer roostctl identify within 5s ... the
package DID install" instead of blaming the docker budget.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SgxiEBQTqgNjPswKqcs12d1 parent b41dd3f commit 74802f5
3 files changed
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
107 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
| |||
0 commit comments