Repository navigation
fix(ci): run cargo test in CI (Refs #1604) - #1605
Merged
Merged
Conversation
This was referenced Nov 13, 2026
Member
Author
复核结论:PASS(合入后立 5 个跟进单;rust-tests 红是信号,不是合入 blocker)本 PR 正是 #1604 要的东西:Rust 单测第一次在 CI 里跑起来,并报出真实状态(572/5)。diff 干净(单文件 +51/−0 纯插入)、YAML 合法、job 已执行;5 个失败全是树上既有属性(钉子侧 3 个、产品侧 2 个,无一由本 PR 引起);x64-default 红是基线簇、oracle 红是外部 savannah 故障;run-gate 不接 CI 的理由成立; 改动(已逐字节核)
rust-tests:572 passed / 5 failed(run 43363770325,job 47s,首次执行)5 个失败逐个定性(源码已在 head
其余 CI 腿
run-gate.sh 不接 CI:成立GNU 面要 WSL(托管 runner 无),CPP 面要 Debug 版 合入后(队长执行)
完整卷宗: |
caomengxuan666
marked this pull request as ready for review
November 13, 2026 06:03
This was referenced Nov 13, 2026
caomengxuan666
added a commit
that referenced
this pull request
Nov 13, 2026
Re-add the 3 `short_h_is_rejected_like_gnu` unit tests (csplit/pathchk/ptx) and the 3 matching `//!` doc bullets that were held back when #1597 was closed as superseded by #1593. What was re-added - `rust2/crates/winux-cmds/src/csplit.rs`: 1 test + 1 doc bullet (2 `//!` lines) - `rust2/crates/winux-cmds/src/pathchk.rs`: 1 test + 1 doc bullet - `rust2/crates/winux-cmds/src/ptx.rs`: 1 test + 1 doc bullet - 42 insertions, 0 deletions, 3 files. No product-code change, no workflow change. Why now - The product fix (argopt `H_REJECT_SPEC` + `rejected_short_h`) already landed on master via #1593 (bb489e0); only the tests + doc bullets were missing. - PR #1605 (d2ee03f) put `cargo test -p winux-cmds` into CI (rust-tests job), so these tests will actually execute now. They were held back pending exactly that. Evidence (X299-2607, Windows) - Head (4bcbaf7): `cargo test -p winux-cmds short_h_is_rejected_like_gnu` -> `test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 577 filtered out` - Base fail-first (6fc5ebf + re-add patch topped up; pre-#1593 tree without the product fix): `test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 533 filtered out` - Fresh builds proven: distinct `Compiling winux-cmds` paths per tree, distinct test-binary sha256 (head 40cbdb41…, base 62197a84…). - `rustfmt --check` rc=0 on all three touched files (head + base). Notes - The gate TSV rows + gen-cases.py rows from the original #1591 commit were deliberately NOT re-added: they belong to run-gate.sh, which is not wired into CI. - #1597 itself stays closed (superseded); this PR only re-adds its tests/bullets. 本 PR 删除了什么 - Nothing was deleted. 42 insertions, 0 deletions. UNVERIFIED-BY-CAPTAIN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(ci): run cargo test in CI (Refs #1604)
根因
全仓没有任何 workflow 步骤运行 Rust 单测。
cargo test -p winux-cmds在树内存在且可跑(X299 实测 529 个单测),但 CI 从不跑它:x64-default 腿的 3840 个测试名全是 C++ gtest(ctest),Rust 单测 0 次。gate 行同样从不执行。后果是已验证的单测无 CI 守护——#1597 的三枚short_h_is_rejected_like_gnu单测在 X299 上已验证(头 3/3、基底 fail-first 0/3),但合入后未被吸收;吸收了也不会在 CI 跑,形同死代码。证据
benchmark-speed-matrix.yml、build-winuxcmd.yml、gnu-master-differential.yml)中无任何cargo test步骤;build-windowsjob 只在 x64 + default 腿跑 ctest。build-windows已有 pinned Rust 工具链(RUST2_TOOLCHAIN: "1.99.1")的 cache + 安装步骤,只是缺测试调用。rust2/Cargo.lock与 workspace 同步,--locked安全;suite 为 X299 已验证的 529 测。本 PR 做的事
在
build-winuxcmd.yml中新增rust-testsjob(windows-2025,与 ctest 腿并列、失败名集单独裁断):checkout → cache pinned toolchain → rustup 安装 1.99.1 → cache cargo registry →cargo test --locked --no-fail-fast -p winux-cmds(rust2/目录)。只跑-p winux-cmds这一已验证的集合;其余 crate 的 suite 待同样验证后再扩。run-gate.sh本次不接进 CI:它的 GNU 面要 WSL、CPP 面要 Debug 版build-vs/树,两者托管 runner 上都没有(详见 REPORT §3);现有的bash -n语法检查保留。本 PR 删除了什么
什么也没删除。纯新增一个 CI job;未动产品代码,未动其余 job(含
release的needs:未改,是否让 release 门控rust-tests请复核时定)。#1597 的 3 枚单测 + 3 枚 doc bullet 本次不加回,待本步骤在 master 变绿后再另起 PR。UNVERIFIED-BY-CAPTAIN