Skip to content

test(regression): re-record errors/exp upstream-suite snapshots (Refs #4288) - #4289

Merged
caomengxuan666 merged 1 commit into
masterfrom
captain/snapshot-rerecord-2026-11-30
Nov 30, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
captain/snapshot-rerecord-2026-11-30

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

UNVERIFIED-BY-CAPTAIN

test-only re-record of two upstream-suite snapshots. No source change.

Why: the two snapshots recorded pre-convergence behavior; current rubash matches GNU bash 5.3.20 on both faces (diagnosis: lane-master-ci-red-2026-11-30.md):

  • errors.snap: ivar -3 (${!1:-${1}} with $1=-3) no longer outputs -3; GNU and current rubash both report bad substitution / invalid variable name with empty stdout (2 lines: normal + -o posix runs of errors6.sub).
  • exp.snap: six $xxx""-style concatenations (exp.tests:82-93) now keep one empty word (argv[1] = <>), matching GNU's rule that a quoted empty string keeps the word and only a bare unquoted empty expansion is dropped.

Source of bytes: the runner-true recording from the goldens job of master run 46312294455 (artifact regression-snapshots.zip, ID 15330985687), recorded with RUBASH_REGRESSION_RECORD=1 per the re-record protocol in tests/regression.rs. The other 11 snapshots in that artifact are byte-identical to the committed ones; only these two files change. The snapshot tests are #[cfg(windows)], so the recording could not be reproduced on the macOS lane host — the artifact is the protocol-prescribed source ("prefer it over transcribing the truncated 40-line panic window by hand").

Caveat for the captain: the artifact was recorded at master 5ff7280f; this PR is based on a72db665 (adds #4262). #4262's diff was reviewed hunk by hunk: its expansion-path changes only alter the glob-pattern argument at redirect-target and for-loop-word boundaries (falling back to the identical expanded string when the raw source carries no literal glob pattern), and neither re-recorded face sits on those paths — but the snapshot slices are Windows-only, so the Windows goldens job on this PR is the authoritative check that the bytes still hold at this base. If goldens fail here, a fresh Windows re-record is needed (devin-windows tunnel is currently down).

Refs #4288 (not Fixes).

…4288)

Convergence to GNU bash 5.3.20, not a regression. Both diffs were
verified byte-for-byte against the pristine 5.3.20 oracle and
current rubash (see lane-master-ci-red-2026-11-30.md):

- errors.snap: `ivar -3` (`${!1:-${1}}` with $1=`-3`) no longer
  outputs `-3`; GNU and current rubash both report bad substitution
  / invalid variable name with empty stdout. The old snapshot
  recorded the loose fallback (two lines, normal + `-o posix` runs
  of errors6.sub). Suspected engine change: 975af9c indirect
  expansion (2026-11-09) — not bisect-confirmed.
- exp.snap: six `$xxx""`-style concatenations (exp.tests:82-93)
  now keep one empty word (`argv[1] = <>`), matching GNU: a quoted
  empty string keeps the word, only a bare unquoted empty expansion
  is dropped. The old snapshot (recorded 10-26) dropped all six.
  Suspected engine change: 568dce3 word-walk / quoted-result IFS
  protection (2026-11-03) — not bisect-confirmed.

Bytes are the runner-true recording from the goldens job of master
run 46312294455 (artifact regression-snapshots.zip, ID 15330985687),
recorded with RUBASH_REGRESSION_RECORD=1 per the re-record protocol
in tests/regression.rs; the other 11 snapshots in that artifact are
byte-identical to the committed ones. The snapshot tests are
#[cfg(windows)], so the recording could not be reproduced on the
macOS lane host; the artifact is the protocol-prescribed source.

Refs #4288 (not Fixes).
@caomengxuan666
caomengxuan666 merged commit ef4ea1b into master Nov 30, 2026
12 of 13 checks passed
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