Repository navigation
test: pin the bridged-signal path and RUNPATH on both engines - #156
Merged
Merged
Conversation
Two Phase 0 checklist lines had shipped behavior but no evidence. `bridged_child_signal_is_reported`: PR #134 made a signal-killed bridge exit `128 + signal` with a diagnostic naming the engine, and nothing pinned it. The new test points RELD_BRIDGE_LINKER at a script that SIGSEGVs itself and asserts exit 139 plus the message. It skips where the host has no POSIX signals, asked through the platform facade rather than host cfg. `nix_runpath_on_every_route`: the NixOS RUNPATH tests only ever exercised the native engine, even though bridge.rs re-derives the same RUNPATH for routed links. All three now run with `--engine=reld` and `--engine=lld`, skipping the bridge leg only when no bridge linker is discoverable. Both legs run on this host, so the routed path is now covered. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #123 (Phase 0). Part of the #153 burn-down.
Two checklist lines had shipped behavior but no test, which the Wave 0 audit turned up.
bridged_child_signal_is_reportedPR #134 made a signal-killed bridge exit
128 + signaland print a diagnostic naming the engine and signal, so a crashedld.lldis diagnosable instead of collapsing to a bare exit 1. Nothing pinned it.The new
crates/reld/tests/bridge_route.rspointsRELD_BRIDGE_LINKERat a script that sends itselfSIGSEGV, forces the bridge with--engine=lld, and asserts exit 139 pluslld bridge terminated by signal 11. It skips where the host has no POSIX signals, asked throughreld_core::platforms::hostrather than hostcfg, so it stays inside the #137 boundary.nix_runpath_on_every_routenix_rpath.rsonly ever exercised the native engine, even thoughbridge.rsdeliberately re-derives the same Nix store RUNPATH for routed links (a routed link must not lose it). All three tests now run with--engine=reldand--engine=lld, skipping the bridge leg only when no bridge linker is discoverable on the host.Both legs run on this host, so the routed path is genuinely covered rather than silently skipped.
Validation
cargo fmt --check,clippy --workspace --all-targets -D warnings, the host-platform Dylint andci/check_dependencies.pyare green;bridge-route(1) andnix-rpath(3, each across two engines) pass locally.🤖 Generated with Claude Code