Skip to content

test: pin the bridged-signal path and RUNPATH on both engines - #156

Merged
zackees merged 1 commit into
mainfrom
test/123-bridge-evidence
Sep 17, 2026
Merged

zackees merged 1 commit into
mainfrom
test/123-bridge-evidence

Conversation

@zackees

@zackees zackees commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

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_reported

PR #134 made a signal-killed bridge exit 128 + signal and print a diagnostic naming the engine and signal, so a crashed ld.lld is diagnosable instead of collapsing to a bare exit 1. Nothing pinned it.

The new crates/reld/tests/bridge_route.rs points RELD_BRIDGE_LINKER at a script that sends itself SIGSEGV, forces the bridge with --engine=lld, and asserts exit 139 plus lld bridge terminated by signal 11. It skips where the host has no POSIX signals, asked through reld_core::platforms::host rather than host cfg, so it stays inside the #137 boundary.

nix_runpath_on_every_route

nix_rpath.rs only ever exercised the native engine, even though bridge.rs deliberately re-derives the same Nix store RUNPATH for routed links (a routed link must not lose it). All three tests now run with --engine=reld and --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 and ci/check_dependencies.py are green; bridge-route (1) and nix-rpath (3, each across two engines) pass locally.

🤖 Generated with Claude Code

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant