Skip to content

test(cli): interleave typed-cell matrix across builtin writes - #926

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/typed-cell-matrix
Oct 20, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/typed-cell-matrix

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

39 probes (37 stdout + illegal-subscript + coproc): establish cell via read, builtin-side write, read back. Covers declare/typeset/local/export/readonly/unset/read/mapfile/printf/arith/append/nameref/trap-close. All bash 5.3.20-consistent; stderr assertions regex-normalized. Tests: typed_cell 3 passed.

37 stdout probes (R1a-d,R2a,R3a-c,R4a,R5a-b,R6a-d,R7a-c,R8a-d,R10a-b,R11a-d,R12a-c,R13a-e,R14a) plus R4b illegal-subscript stderr regex and R9a coproc fd regex. All expectations verified against GNU bash 5.3.
@caomengxuan666
caomengxuan666 merged commit ad8158b into master Oct 20, 2026
8 checks passed
@caomengxuan666

Copy link
Copy Markdown
Member Author

Post-merge review (merge base a53aeaaa, merged as ad8158bd). Reviewed on Windows local: base vs head binaries, plus WSL GNU bash 5.3.0 oracle.

What checks out

  • Scope is clean: only tests/cli_tests.rs is touched; the added typed_cell_interleaved_matrix (plus its runner) is self-contained — fresh process per case, no cross-test state, no smuggled production changes.
  • Locally on the head tree the full cli_tests target shows no new red vs base: 460 passed / 22 failed on both, and the 22-name failure set is byte-identical (all pre-existing local-Windows env failures: examples::*, fd_redirects::c_external*, tilde_user*).
  • The matrix's expected outputs match /usr/local/bin/bash 5.3.0 for the runnable cases (spot-checked via batch oracle).

Finding: no discriminating power against master

The review bar requires at least one "red on master, green on branch" proof. Running the new test against the merge base (a53aeaaa sources + this PR's test file) yields:

test typed_cell_interleaved_matrix ... ok

Every added case (R1-R14) already passes on master, so the suite cannot demonstrate it would catch the stale-typed-cell regression it targets — it is a characterization suite. That is still useful documentation (the interleaving patterns were not covered before), but if any case was expected to fail on some earlier revision, please note which one; otherwise consider labeling the intent explicitly as characterization so a future reader does not mistake green for coverage proof.

Verdict: content safe (test-only, no new red, GNU-consistent), but the required discrimination proof is absent.

@caomengxuan666
caomengxuan666 deleted the fix/typed-cell-matrix branch October 21, 2026 08:45
caomengxuan666 added a commit that referenced this pull request Nov 6, 2026
…> 0 (Refs #863) (#2858)

[B5-11] Ledger: raise has_compspec_at 0 -> 1, retire has_compspec 1 -> 0 (Refs #863)

Follow-up bookkeeping for the merged B5-11 host migration (niu #926, merge `d4879b4b`): the host's completer routing gate now reads `Session::has_compspec_at` (one production call, completer.rs:637), and the name-form `Session::has_compspec` has zero production callers left (the two shell.rs reads are test-module only, noted in-row, not counted).

Ledger only; no Rust touched. Checker: presence 279/279 + self-test green. Canary's ledger leg will read red until the niu mirror copies this ledger (expected lockstep debt, same as #2852 -> #923).

Refs unixwin/niubash#863, #2856.

本 PR 删除了什么:两行账本记录的 staged-0 状态(`has_compspec_at` 的 "Recorded staged ahead of the host adoption" 与 `has_compspec` 行的旧门描述);无产品代码增删。
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