Skip to content

fix(ci): wave3a/4a inherited CI regressions + #1575 seq grid bug - #1600

Closed
caomengxuan666 wants to merge 2 commits into
mainfrom
fix/wave3a-ci-regressions
Closed

caomengxuan666 wants to merge 2 commits into
mainfrom
fix/wave3a-ci-regressions

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fixes the 23-case build-windows (x64 default) ctest red that the #1588 CI run surfaced. Triage verdict: all 23 are inherited from main — none is an #1588 regression.

Triage (task order followed)

  1. Merge-base check: the failing 23-set is byte-identical on the pre-merge main run (6fc5ebf = merge-base of fix(timeout,nohup,nice): execvp-form child resolution for non-PE targets (#1587) #1588, run 43245017935) and on main tip (c74112c, run 43286004339). Base red ⇒ inherited.
  2. main's own runs: main has been red since the wiring wave3a: touch/ln/stat/seq/tee/paste/fold/fmt -> rust2 dispatch (#1488) #1570 wave3a wiring merge (5b22542, 2026-11-12T01:22, 21 of the 23); seq.seq_precision_ignores_last_operand joined at the #1488 borrow uutils algorithms #1575 borrow-algo merge (6f3146e); head.head_fifo_operand_all_but_last_line at #1488 wave4a #1576 (e30adb3). Last fully green main run: 1c407e1 (2026-11-11T18:13).
  3. fix(timeout,nohup,nice): execvp-form child resolution for non-PE targets (#1587) #1588 touch surface: git diff 6fc5ebf7..b6ee44d0 = childproc.rs / nohup.rs / timeout.rs / nice.rs / lib.rs + gate cases only — no overlap with ln, stat, seq, tac, head, mkfifo, tee, paste. No causal chain; no PR regression.
  4. seq: confirmed the #1488 borrow uutils algorithms #1575 regression hypothesis (joined exactly at the #1488 borrow uutils algorithms #1575 merge; GATE-REPORT's 33 seq cases never covered the t>prec shape and the C++ unit test was not re-run).

Families and root causes (GNU 9.4 probed via WSL for every change)

family verdict root cause → fix
seq_precision ×1 inherited (#1575) exact-decimal run rendered 10^-t mantissas on the 10^-prec grid when last is finer than max(first,step): seq 0.5 1.55 printed 5.0\n15.0 vs GNU 0.5\n1.5. Fix drops first/step onto the prec grid and scales bound comparisons by 10^(t-prec). Gate rows sq61/sq62 added.
head FIFO ×6 inherited (#1570) rust2 tee opened/truncated the !<fifo> marker instead of joining the pipe bridge, so every C++ FIFO reader blocked to the ctest timeout. Ported the bridge into fs_win (fifo_pipe_name is byte-parallel to native_path.cppm's FNV-1a so C++ readers and rust2 writers rendezvous).
mkfifo bridge ×12 inherited (#1570) same writer root cause; paste_joins_two_fifos also needed the reader side (paste now creates the endpoint and blocks like the C++ readers). mkfifo_marker_is_seen_as_fifo is stat %F (below).
ln issue1367 ×2 inherited (#1570) create_symlink api_path-ed the link TARGET, storing \\?\C:\... instead of the operand text ("t"). GNU symlink(2) stores the text verbatim; only the link path is an operand.
stat ×2 inherited (#1570) %c/%S are not GNU directives (probed: ? rc 0; port printed 255/4096); --cached=WHEN is an accepted no-op (port usage-died rc 1); invalid values now report GNU's argmatch_invalid shape; %F classifies the fifo marker as fifo (named pipe).
tac issue1368 ×1 inherited (#1570) test pinned the interim "host drains silently" contract that wave3a's own bridge commit b1cf94c superseded (probed tac file >&- → rc 1 "write error: Bad file descriptor"). Test synced to the GNU shape, mirroring the cat issue1368 test.

Verification

  • The 23-case CI slice green locally (36 tests incl. neighbors, 100%); tee/seq/paste/ln/stat/tac/readlink/realpath/head/mktemp slices 149 green; cargo test 548 green.
  • Full local suite's remaining 20 failures reproduce on the un-patched baseline build (shell-root + child-PATH local-env artifacts — green on CI), so they are environment noise, not part of this change.

Refs #1488, #1575, #1588, #1587.

… triage)

Triage of the 23 red ctest cases on the #1588 CI run (build-windows x64
default): all 23 are INHERITED from main, none caused by the PR's
childproc/nohup/timeout/nice diff. The failing set is byte-identical on
the pre-merge main run (6fc5ebf, run 43245017935) and on main tip
(c74112c, run 43286004339); the streak starts at the #1570 wave3a
wiring merge (5b22542, 21 cases), +seq at the #1575 borrow-algo merge
(6f3146e), +one head timeout at the #1576 wave4a merge (e30adb3).
Fixes per family, GNU 9.4 probed:

- seq (#1575 531189b exact-decimal path): try_exact_run rendered the
  common-scale mantissas on the 10^-prec rendering grid. When the last
  operand carries finer fraction digits than max(first, step)
  precision (t > prec), every printed value was 10^(t-prec) times its
  real size: `seq 0.5 1.55` printed "5.0\n15.0" where GNU prints
  "0.5\n1.5". first/step stay exactly on the 10^-prec grid (their
  widen only appended zeros) — drop them onto it and scale the bound
  comparisons against last by 10^(t-prec) (saturating, so an
  unrepresentable product resolves the bound the way the real value
  would). Gate rows sq61/sq62 pin the shape.

- tee/paste FIFO operands (wave3a wiring): the rust2 port opened the
  #1038 fifo marker file directly (tee truncating the "!<fifo>"
  header), so the C++ FIFO bridge's named-pipe rendezvous never
  happened and every C++ FIFO reader hung to the ctest timeout (head
  issue1442 family; the mkfifo od/wc/md5sum/cksum/comm/nl/hexdump/
  uniq bridges). Port the bridge into fs_win — is_winux_fifo,
  fifo_pipe_name (FNV-1a over the canonical path's UTF-16LE bytes,
  byte-parallel to native_path.cppm:1112 winux_fifo_pipe_name_w so
  the C++ and rust2 sides rendezvous), open_fifo_read (server +
  ConnectNamedPipe), open_fifo_write (client poll loop) and FifoFile,
  whose read maps the ERROR_BROKEN_PIPE/NO_DATA/HANDLE_EOF set to a
  POSIX-style 0 like file_io.cppm read_handle_to_string. tee and
  paste route fifo operands through it and never touch the marker.

- tee broken-pipe status (wave3a port): tee.c marks the run failed on
  EVERY write error; the output-error modes differ only in loudness
  and immediacy (GNU's default sigpipe mode dies by signal — the
  Windows emulation reports that as a silent rc 1, warn-nopipe/
  exit-nopipe mark EPIPE silently). The port treated epipe-like
  errors in sigpipe/warn-nopipe/exit-nopipe modes as non-failures
  (rc 0), so a writer whose reader closed early exited clean; head's
  stops_at_delimiter FIFO test pins the writer break.

- ln -s (wave3a fs_win port): create_symlink ran api_path over the
  link TARGET, absolutizing relative targets onto the \\?\ cwd
  spelling; GNU symlink(2) stores the operand text verbatim (the ln
  issue1367 tests read back "t", got \\?\C:\...). Only the LINK path
  is an operand; the target goes to CreateSymbolicLinkW untouched.

- stat (wave3a port): %c and %S are not GNU directives — probed
  coreutils 9.4, both print '?' rc 0 like any unknown sequence (the
  port rendered 255/4096); --cached=WHEN is an accepted argmatch
  no-op (probed rc 0; the port usage-died rc 1 on every --cached=
  form) and invalid values report GNU's argmatch_invalid + usage
  shape rc 1; %F classifies the #1038 fifo marker as
  "fifo (named pipe)" like the 1.x file/stat layer (mkfifo's
  marker-classification test).

- tac test sync: the issue1368 unit test pinned the interim "host
  drains silently, rc 0" contract that wave3a's own bridge commit
  b1cf94c superseded with GNU's close_stdout shape (probed: `tac
  file >&-` -> rc 1, "tac: write error: Bad file descriptor");
  align the test with the cat issue1368 test that already pins the
  GNU shape (renamed to issue1368_closed_stdout_reports_write_error).

Verification: the 23-case CI slice is green locally (36 tests with
neighbors), the tee/seq/paste/ln/stat/tac/readlink/realpath/head/
mktemp slices 149 green, cargo test 548 green; the full local run's
remaining 20 failures reproduce on the un-patched baseline build
(shell-root and child-PATH local-env artifacts, green on CI).

Refs #1488 (wave3a/wave4a wiring), #1575, #1588, #1587.
…mlink

The wave3a CI triage commit (3d1739a) fixed the issue1367 readbacks by
stopping the api_path absolutize on the symlink TARGET, but it dropped
the whole target pipeline with it: run 43342952034 regressed 3 ln unit
tests that main tip passes —

  ln.ln_symlink_dot_slash_target_resolves_natively
  ln.ln_symlink_forward_slash_path_target_resolves_natively
  ln.ln_symlink_drive_dialect_lands_on_operand_drive

CI (privileged, so the skip branch does not mask these) stored the raw
operand text "./original.txt" in the reparse point: the '/'-free assert
failed and the Win32 path parser refuses forward-slash reparse text with
ERROR_INVALID_NAME, so the read through the link came back empty.

GNU symlink(2) takes the operand verbatim, but this boundary is a pinned
[DIFFERS]: the 1.x ln.cpp:733 contract folds BOTH operands through
normalize_api_operand (drive dialect "/e/..." -> "E:\...", #1234) and
then runs win32_normalize_symlink_target (win32.cppm:112, '/' -> '\',
#1101) on the text that reaches CreateSymbolicLinkW. Neither step
absolutizes, so the issue1367 verbatim-relative fix keeps standing.

Restore exactly that contract: symlink_target_text() = normalize_operand
fold chain + separator replace (relative and already-native operands pass
through unchanged), feed it to CreateSymbolicLinkW; the LINK operand
keeps api_path. New unit pin symlink_target_text_pins holds all five
shapes (relative plain, dot-slash, forward-slash path, already-native,
/cygdrive and /d/ dialect folds).

Local: cargo test 549 green; ln 29, head/mkfifo/seq/tac/stat/tee/paste 59
and readlink/realpath/stat-symlink 120 unit tests green. The symlink
creation asserts themselves still skip on this host (no
SeCreateSymbolicLinkPrivilege, no Developer Mode) — the pin test carries
the verification the CI run confirms.

Refs #1488, #1588, #1600.
@caomengxuan666

Copy link
Copy Markdown
Member Author

复核结论:PASS(1 个文档引文小毛病,不拦合入;另有 1 个机器能力缺口披露)

本 PR 修的正是它宣称的东西:wave3a/4a 继承的 CI 回归 + #1575 seq 网格 bug,无回归。终头 9f51646e 的 14 个 CI 检查全部 success/skipped、零失败;同一 job 在两个基底头上是唯一失败腿(基底红 → 本头绿的双边信号)。X299 双边重跑:head 546/3、base 544/4——ln::tests::symlink_mode 由本 PR 修好,其余 3 个红双侧同为既有失败。

腿

  • L1 cargo test 双边(X299):head 546 passed / 3 failed,base 544 / 4 failed。3 个 head 红(canon dangling_tests、chown from_filter、stat symlink_lstat)与 base 完全相同,皆既有;base 多的 1 个正是本 PR 修的 ln。新增单测 symlink_target_text_pins 通过;11 个 seq 单测全绿;nice 格在 head 上通过(CI-master 的第 5 个失败是 master-only 环境差异)。
  • L2 终头 CI:14 检查全绿(x64-default 30 分钟 ctest 腿在内),基底两代均为仅该 job 红。
  • L3 fmt:5 个改动 Rust 文件 rustfmt --check rc=0。
  • L4 -D warnings:head 与 base 同为 77 个 errors,逐位置对照完全相同(仅行号随插入平移),全是树上既有 hygiene 债;本 PR 引入 0 个新 error。
  • L5 diff 通读:FNV-1a 管道名已对 C++ native_path.cppm 验过(常量、字节序、名字格式一致,18 个 head/mkfifo 用例在 CI 里已 rendezvous);seq bound_mul 推理已核;tee 写错模式表与 stat argmatch 形与 GNU 一致;tac 改动仅测试同步。
  • L6 fix(timeout,nohup,nice): execvp-form child resolution for non-PE targets (#1587) #1588 接触面:已核,6fc5ebf7...b6ee44d0 两提交的改动文件与正文宣称完全一致。

N1(nit,不拦合入)

symlink_target_text 的 doc 引文 ln.cpp:733 是错的——src/commands/ln.cpp 只有 119 行、无 fold 逻辑(实现在 rust2 桥里),win32_normalize_symlink_target 由 cp/mv 调用。行为已被单测钉死,纯文档问题;作者可自行修正或删掉该引文。

披露:CMake 腿未跑(机器缺口,非 PR 缺陷)

X299 上未装 cmake/ninja/ctest,CMake 配置 + 构建 + ctest 切片 + 直接二进制探针均未跑成。ctest 面由终头 CI 全绿覆盖(基底红 → 本头绿);seq sq61/sq62 直接探针由 CI 里 seq.seq_precision_ignores_last_operand 间接覆盖。X299 装 cmake 是后续复核能力的事项,另行决定。

其它

完整卷宗:~/workspace/review-winx-1600/CAPTAIN-VERIFY.md

@caomengxuan666

Copy link
Copy Markdown
Member Author

The wave3a/4a CI regressions were triaged and fixed on main; current x64/default is green apart from the known FIFO flake bounded by #1679.

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