fix(smoke): capture arp-scan output instead of piping into awk #8

Merged
daniel merged 1 commit from fix-smoke-pipefail into main 2026-04-18 15:43:50 +02:00
Owner

When host-networking finally gave arp-scan a real LAN to scan, the
first MAC-match emitted a line, awk hit its exit clause, closed the
pipe, and arp-scan died from SIGPIPE (exit 141). With set -o pipefail
active, that killed the whole smoke-vm.sh run immediately after
"==> starting VM" — no IP discovery, no curl, no prune.

Fix: capture arp-scan's output into a variable first, then let awk
parse a here-string. Same treatment for the ip neigh show fallback.
No pipe, no pipefail cascade.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

When host-networking finally gave arp-scan a real LAN to scan, the first MAC-match emitted a line, awk hit its `exit` clause, closed the pipe, and arp-scan died from SIGPIPE (exit 141). With `set -o pipefail` active, that killed the whole smoke-vm.sh run immediately after "==> starting VM" — no IP discovery, no curl, no prune. Fix: capture arp-scan's output into a variable first, then let awk parse a here-string. Same treatment for the `ip neigh show` fallback. No pipe, no pipefail cascade. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
daniel added 1 commit 2026-04-18 15:43:32 +02:00
fix(smoke): capture arp-scan output instead of piping into awk
All checks were successful
CI / lint (pull_request) Successful in 26s
CI / test (pull_request) Successful in 34s
CI / validate-json (pull_request) Successful in 23s
CI / markdown-links (pull_request) Successful in 14s
93c6b838a7
When host-networking finally gave arp-scan a real LAN to scan, the
first MAC-match emitted a line, awk hit its `exit` clause, closed the
pipe, and arp-scan died from SIGPIPE (exit 141). With `set -o pipefail`
active, that killed the whole smoke-vm.sh run immediately after
"==> starting VM" — no IP discovery, no curl, no prune.

Fix: capture arp-scan's output into a variable first, then let awk
parse a here-string. Same treatment for the `ip neigh show` fallback.
No pipe, no pipefail cascade.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
daniel merged commit 850d656169 into main 2026-04-18 15:43:50 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: daniel/furtka#8
No description provided.