fix(lab): assert-command output on failure + pin shaper iface selection #257
No reviewers
Labels
No labels
bug
deploy
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/blackwall!257
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lab-assert-stderr-and-shaper-iface"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two lab-robustness follow-ups from the container-netns gate fixes (#254 deception, #256 trafficgen).
1. Assert failures now show the command's own output. The self-diagnosing log dump (#251) captured run-node logs but not an assert command's stderr/stdout — so the trafficgen failure showed only
# exit 1 != 0and the sink's log, never thesendcommand's owngenerator fidelity: … ppsreason. A failingassertnow folds the command's stderr (then stdout, last 20 lines each) into its TAP#reason as comment-continuation lines, matching the diagnostic a failingwaitalready gets. Unit-tested (with_cmd_output): appends both streams as# …lines; passes-through aPassor an empty-output failure unchanged.2. Third copy of the iface bug, pinned.
blackwall-shaper/tests/interop.rshad the sameip link showfirst-non-loheuristic as the deception (#254) and trafficgen (#256) drivers. It was latent — shaper-cake (gate 4) passed in CI — but fragile in the container netns, so it now selects the veth by its IPv4 like the other two. All three lab drivers now share the robust selection.Verified.
shaper-cakepasses locally;cargo test -p blackwall-lab(incl. the 2 new tests) green; clippy--deny warnings+ fmt clean.