Repository navigation
fix(ci): wave3a/4a inherited CI regressions + #1575 seq grid bug - #1600
caomengxuan666 wants to merge 2 commits into
Conversation
… 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.
复核结论:PASS(1 个文档引文小毛病,不拦合入;另有 1 个机器能力缺口披露)本 PR 修的正是它宣称的东西:wave3a/4a 继承的 CI 回归 + #1575 seq 网格 bug,无回归。终头 腿
N1(nit,不拦合入)
披露:CMake 腿未跑(机器缺口,非 PR 缺陷)X299 上未装 cmake/ninja/ctest,CMake 配置 + 构建 + ctest 切片 + 直接二进制探针均未跑成。ctest 面由终头 CI 全绿覆盖(基底红 → 本头绿);seq sq61/sq62 直接探针由 CI 里 其它
完整卷宗: |
|
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. |
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)
seq.seq_precision_ignores_last_operandjoined at the #1488 borrow uutils algorithms #1575 borrow-algo merge (6f3146e);head.head_fifo_operand_all_but_last_lineat #1488 wave4a #1576 (e30adb3). Last fully green main run: 1c407e1 (2026-11-11T18:13).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.Families and root causes (GNU 9.4 probed via WSL for every change)
seq 0.5 1.55printed5.0\n15.0vs GNU0.5\n1.5. Fix drops first/step onto the prec grid and scales bound comparisons by 10^(t-prec). Gate rows sq61/sq62 added.!<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_nameis byte-parallel to native_path.cppm's FNV-1a so C++ readers and rust2 writers rendezvous).paste_joins_two_fifosalso needed the reader side (paste now creates the endpoint and blocks like the C++ readers).mkfifo_marker_is_seen_as_fifois stat %F (below).\\?\C:\...instead of the operand text ("t"). GNU symlink(2) stores the text verbatim; only the link path is an operand.%c/%Sare not GNU directives (probed:?rc 0; port printed 255/4096);--cached=WHENis an accepted no-op (port usage-died rc 1); invalid values now report GNU's argmatch_invalid shape;%Fclassifies the fifo marker asfifo (named pipe).tac file >&-→ rc 1 "write error: Bad file descriptor"). Test synced to the GNU shape, mirroring the cat issue1368 test.Verification
cargo test548 green.Refs #1488, #1575, #1588, #1587.