Repository navigation
WIP: forward-port #1766 host-env harness fix + weak-row upgrade (tests-only) - #1812
Merged
Merged
Conversation
…mpound-append row to exact 1(9) Forward-port of 35e527a (fix9/carrier-host1766), which missed the #1779 merge: drop the Executor before unwrapping the capture Arc in run_host_captures, otherwise all 16 tests panic in try_unwrap before any assertion runs. Also upgrades the formerly weak top-level compound-append row (no-marker-leak only) to assert the exact GNU value 1(9); its upgrade condition is met now that #1767 has merged. The 5 base-clone rows (marker hits on __RUBASH_LAST/CURRENT_COMMAND, nameref contains_key ref) are deliberately left untouched pending the parent's ruling on the host map contract (rescope test invariants vs exported-only host map). Refs #1766
This was referenced Oct 27, 2026
…#1766) Adjudication (c) for the last two PR #1812 pins (issue1766_top/stage_nameref_append_binds_target): the pins are correct GNU expectations - 'declare -n ref=var; var=orig; ref+=x env' prints var=origx and NO ref= line - and the product leaked the nameref cell itself ('ref=var', the target NAME as text) into the host env map, whose base is a full-table clone. invoke_host_external_command now removes nameref alias cells from that base clone, selected by the NAMEREF_VARS attribute set (never a name blacklist). The target cell stays, so nothing is lost; the prefix composition below (tempenv_export_name already resolves prefix names to their targets) is untouched, as is the rest of the channel contract (the clone still carries unexported non-prefix cells - issue1766_top_tempenv_restores_after_host_command pins a=14 in the second capture). Gate: tests/issue1766_host_env_prefix_regressions.rs 16/16 (was 14/16 on this branch).
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.
WIP: forward-port of the #1766 host-env harness fix to current master, plus the weak-row upgrade (tests-only).
Refs #1766
Why this PR exists
PR #1779 was merged (711d429) before its verification gates landed, and the
merge took the original fix commit (2edd162) but NOT the harness fix
(35e527a, on branch fix9/carrier-host1766). As a result, master's copy of
tests/issue1766_host_env_prefix_regressions.rspanics 16/16 inrun_host_captures(Arc::try_unwrap): the Executor owns the handlerclosure, which owns the second Arc clone of the capture sink, so the unwrap
can only succeed once the executor is dropped. CI does not catch this
because the Rust tests job runs
--libplus three named integration targetsonly — this file is not among them.
Contents (one commit, tests-only, no product code)
Commit
58535403(on masterc9bd0f3f, Merge PR #1763):drop(executor)beforeArc::try_unwrapinrun_host_captures, with its comment (verifiedagainst
git show 35e527a7, not rewritten from memory).(
issue1766_top_compound_append_leaks_no_marker→ renamedissue1766_top_compound_append_composes_window_value) from no-marker-leakonly to the exact GNU value
1(9)(plus the retainedassert_no_marker).Its upgrade condition is met: fix7/carrier: tempenv compound append, carrier pair views, eval marker data (#1620, #1635, #1634 eval face) #1767 has merged. The file header note is
updated accordingly.
Gates (final base c9bd0f3 + 5853540, via the build-slot, JOBS=1, purified env)
1(9)). The 3 marker rows that failed on the pre-merge tree now pass oncurrent master (stored command text no longer carries marker bytes). Only
2 rows fail, both on
!env.contains_key("ref")(nameref rows, top-leveland stage); their value assertions (
var=origx) pass.--skip login_posix_env): 771 passed / 1 failed / 1 ignored; thesingle failure is the allowed
ownership_unary_operators_check_existing_file(baseline-identical set).
ps06 is a known timing flake; isolated re-runs x3 on the same tree and
binary all PASS (2026-10-27 00:59 UTC), so the ps06 full-run failure is
ruled a timing flake, not a Host external-command channel re-applies raw prefix assignments (incl. carrier markers) into the host env map #1766 regression — effective failure set
∅ ⊆ {ms10}. On the previous base (48aa7c7) the same gates gave
306/306.
Deliberately NOT in this PR
The 2 remaining nameref rows are left exactly as they are — assertions
unchanged, no watering down. Their captured maps were dumped with a
temporary probe (since removed; tree is clean): both maps contain
var=origx(correct) andref=var(the nameref target name riding along inthe base clone), and both maps are full shell-env clones (94/96 keys), not
exported-only sets. Deciding between (a) rescoping those test invariants to
assignment-derived keys and (b) changing the host map to exported-only is
the parent's call and will be handled separately; this PR changes neither
the assertions nor the product code for those rows.
Full report: REPORT-FORWARDPORT.md in the cluster directory
(
~/workspace/rubash-fix9/clusters/carrier-host1766-forward/).