Skip to content

triage follow-up: executor_tests 172 reds need family-level classification (sampled: version-pin policy, assoc-key-order expectation, BASHOPTS/compgen rc cases) #374

Closed

Description

@caomengxuan666

Follow-up from the ecosweep4-B triage (wt23/bats364, 2026-10-01; table: docs/ecosweep4-B-reds-triage-2026-10-01.md). executor_tests is the single biggest bucket (171 at the ecosweep4 zero point a522eb3; 172 on 2e6b0e9 — same set, extraction-granularity difference; NOT affected by the #364 fix). Spread over ~80 part files; lane sampled five families, full classification needs its own pass.

Sampled evidence

  1. part_008 test_bash_version_and_versinfo_are_initialized pins 5.2.37; the binary reports 5.2.21(1)-release. Compat target is GNU 5.3.0 → the reported version string is a POLICY question for the captain (which string should rubash/niu report?), then update the pin.
  2. part_013 test_bash_aliases_reflects_alias_table expects key order bar,foo; WSL GNU 5.3.0 prints foo,bar for the same script — rubash matches GNU. Flip the assertion (GNU assoc order is unstable — prefer sorting in the test).
  3. part_059 test_bashopts_assignment_reports_readonly (and part_042 compgen statuses): rc divergences that did NOT reproduce in direct probes (BASHOPTS=abc true; echo $? → GNU and rubash both print the readonly error then 0; compgen filtered/no-match statuses match GNU). The test bodies use contexts that differ from the probes — read each test's exact script before touching engine code.

Suggested approach

Group the 172 by root-cause family (version strings / ordering / diagnostic wording / fd+stream plumbing (cross-ref #370) / genuinely semantic), classify against WSL GNU 5.3.0 script-file probes, then land engine fixes (with GNU citations) and test updates in separate commits.

Activity

  1. added a commit that references this issue on Oct 1, 2026
  2. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    wt33/testmaint first pass (commit eb5d3dbe): executor_tests 174 -> 119 reds.

    Resolved 55:

    Remaining 119 classified by K-series probes (84 exact scripts probed, 51 byte-identical at the CLI = same posture class needing per-test conversion; 33 DIFF = real gaps): follow-ups filed as #394 (combined >(cmd > file) redirect on compound commands), #395 (break/continue 0), #396 (consolidated residue: time-in-pipeline, source-procsub, compgen readonly, read -u fd, indirect case-mod, invalid-octal wording, touch glob filename, ! pid), plus #392/#393 from the mechanical pass.

    Probe artifacts: target/issue-suites/results/wt33-373/run/ (A-H, K series; .gnu/.rub pairs; runner run_cases.sh). Caveat: K001/K005-family extracts with embedded \n escapes were mechanically produced and two were corrupted — re-verify a probe before relying on its IDENT verdict.

  3. added a commit that references this issue on Oct 2, 2026
  4. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    First pass landed (eb5d3dbe on master): 174 -> ~119-121 reds. 12 expectation flips (5.2.37->5.3.x version patterns, readonly mid-list abort, assoc key-order-insensitive asserts, path domains, let **= rejection, declare -ai, ${|} REPLY isolation, fg wording); 34 posture conversions to run_cli_script (real CLI child, byte-identical to GNU — the in-process tokenize+execute model cannot express alias-introduced keywords / inline shopt parse rhythm); genuine gaps filed: #392-#396. The remaining ~119: the lane's K-probe says 51 are the same CLI-posture class (convert mechanically) and 33 are real family gaps (already filed or to be batched); two K probes had corrupted script text (K001/K005) — re-verify before relying on their IDENT verdicts. Keeping OPEN for the second pass.

  5. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    wt37/exec2 second pass (commits cfee1bed + aa818a1b on wt37/exec2): executor_tests 121 -> 0 red (1524 passed / 63 ignored / 0 failed; cargo test --lib 560 green; cargo fmt clean; zero product changes).

    Method: all 121 reds mechanically re-extracted (Rust-literal-aware extractor with a dual-decoder fidelity check — the K001/K005 corruption class from round 1 is now structurally guarded) and probed as script files through WSL GNU 5.3.0 and the rubash CLI with byte-compared stdout/stderr/rc/output-files. Two probe-harness defects found and fixed en route: the GNU side initially ran /d/-path scripts (17 cases re-baselined, 6 false DIFFs → IDENT), and sandbox file-watching missed the per-case dir for @@root@@ tests (5 more false IDENTs corrected, incl. the round-1-converted part_005 case-command test whose IDENT verdict was wrong — now rubash#405).

    Three-way split of the 121:

    Probe artifacts: target/issue-suites/results/wt37-374/run/ (K001-K121 .gnu/.rub pairs + classified.json); extractor/runner under target/wt37/scripts/. Not pushed; awaiting captain review.

  6. added 2 commits that reference this issue on Oct 2, 2026
  7. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    Second pass landed (6b9e629 + 871a9bc): executor_tests 121 reds -> 0 (1524 passed / 63 ignored, every ignore attributed to a ticket or documented env cause). 60 posture/stale-expectation conversions (run_cli_script with GNU 5.3.0 evidence, dynamic path expectations); 60 true gaps — 30 already ticketed, 30 newly filed as #397-#412 (each with minimal reproducer + GNU contrast; #399 is the notable carrier-domain one: dynamic-fd here-string reads leaking 0x1D control bytes); 1 env-noise ignore (mktemp absent in the WSL mirror). The lane also re-audited round 1's K probes: found and fixed two more probe artifacts (17 GNU-side re-runs, 6 false-DIFFs flipped; sandbox watcher missed case dirs, 5 false-IDENTs flipped to real gaps) and falsified one round-1 'byte-identical' conversion (now #405) — the probe infrastructure now has a dual-decoder consistency check against the K001/K005 corruption class. Product code: zero changes. Closing; the 60 gap tickets are the live backlog.

  8. added 2 commits that reference this issue on Oct 2, 2026
  9. added
    tests
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions