Skip to content

[CI] tests/ 树无 Windows 编译门 + cli_tests 静默 lane——补 check-only Windows lane 与失败预算 #2176

Closed

Description

@caomengxuan666

背景

#2163 的编译面(6 个集成测试目标在 Windows 编译失败)之所以长期不可见,是结构性的:没有任何一条 CI lane 为 Windows 目标编译整个 tests/ 树——Windows 作业只跑 --lib、--test regression 与单个钉目标;跨目标 lane 覆盖 linux/android/darwin/musl/ohos,独缺 Windows。同样地,cli_tests 全目标只在 ubuntu 的 continue-on-error lane 里跑,#2163 分诊发现的 9 条全平台恒红测试(-- -c 调用缺陷)就因此长期隐形。

提议

  1. 新增 check-only Windows lane:cargo check --tests --target x86_64-pc-windows-msvc(只编译不执行,便宜)。把「tests/ 树在 Windows 编不过」这一类问题永久关进门内。
  2. cli_tests 脱离静默:或改为 gating,或建一条带失败预算台账的定期全量 lane(Windows 优先——[CI][Windows] master 尖端 25039770 红灯:6 个集成测试目标编译失败(unix-only 导入未门控)+ 149 个存量运行失败 #2163 的 149 存量失败正是这条线要消化的)。预算台账与 [CI][Windows] master 尖端 25039770 红灯:6 个集成测试目标编译失败(unix-only 导入未门控)+ 149 个存量运行失败 #2163 的 Windows 全量复跑衔接:复跑后的存活失败数即预算起点,只许降不许升。

归宿

发布前 CI 批次(全仓审计阶段一并落地);与 #2163 的关系:本单关的是「以后不再攒出下一个 #2163」的门,#2163 本体仍以 Windows 全量复跑收尾。

Activity

  1. added this to the 1.5.0 milestone on Oct 30, 2026
  2. added
    enhancement
    tests
    on Oct 30, 2026
  3. added a commit that references this issue on Oct 30, 2026
  4. caomengxuan666 commented on Oct 30, 2026

    @caomengxuan666
    MemberAuthor

    已交付,PR #2186 合入 master(merge bb059f5),只动 .github/workflows/ci.yml(+74/−5),零测试/产品字节。

    Lane 1 — Windows tests compile check(新 job windows-tests-check):cargo check --tests --target x86_64-pc-windows-msvc 只编译不运行,PR 与 master push 都跑。在 #2186 上实测通过(check 本体 55s,零错误)——#2163 的 cfg 门控在整棵 tests 树上成立、无漏网目标;#2163 类「Windows 编译早就坏了却没人知道」的洞从此有每-PR 门。

    Lane 2 — Compatibility CLI tests(新 job cli-tests):cli_tests 从 rust job 里那个 continue-on-error 的步骤搬出为独立 job,无任何 continue-on-error,失败以具名红勾出现在每个 PR 的检查列表。刻意改了一处调用:--no-fail-fast,让每次运行产出完整普查而非首败即停(普查就是失败预算账本的输入)。

    门控裁定:可见、暂不设 required——cli_tests 在 master 上本就是红的(master run 41023415034 的隐藏步骤日志实证:fail-fast 在 27/472 处以 exit 100 取消其余 445,而 jobs API 全绿——这正是不可见性 bug 本身)。#2186 上的完整普查:472 run / 464 passed / 8 failed / 3 skipped,8 红逐条归属:bashdb_compat 夹具路径失败 ×3(同一夹具点,其中 1 条是 fail-fast 从未跑到过的)、#2175 在案的 history 错钉 ×2(补钉批次处理中)、存量产品分歧 ×3(已分别立案,见下)。本 PR 不引入其中任何一条。

    后续(不在本单):普查归零后把该 job 提为 branch-protection required(仓库设置动作);release.yml:46 亦有一处 cli_tests 的 continue-on-error(发布流、非 PR 门),已在簇 REPORT 标注、留待发布流整顿时一并处理。

    普查 8 红的立案去向:bashdb_compat 夹具 ×3 → 新 issue(test-harness);fd_redirects::c_exec_keeps_stdout_redirect_after_invalid_expanded_option → 新 issue(bug);time_uses_timeformat_variable + timeformat_supports_precision_and_long_modifiers → 新 issue(bug,与 #1939/#268/#1212 同族不同面)。簇报告 ~/workspace/fix-2176-ci-lanes/REPORT.md。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementtests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions