Skip to content

nightly compat: the weekly windows-latest job has never been green — 47–54 core tests still assume POSIX, and the set only grows #3293

Open

Description

@Birfy

Written-by: Chief

每周的兼容跑批(nightly.yml 的 weekly 作业,compat · windows-latest · Node 24 · DSH 0.2.1-rc.2)两次跑到现在都没绿过,红面还在扩大。这条单是把事实钉住,避免以后再当成「新回归」重查。

读数

  • 2026-11-21T22:00:03Z,main 5620b96ff7fa2ae08c6a25b48131f23235c0f1ae,run 44954399397,job 136999263352:Tests failure,54 条测试红(core/test 下 47 处用例)。同一 run 的 Window check success。
  • 2026-11-14T21:05:25Z,main b0ffd54f,run 43640933464,job 132588187493:同一批用例红(46 处,文件名与行号几乎逐条对应;11-21 多了 chat-index-writers.test.js 的 5 条、host-pairing.test.js:132、unread-mark-menu.test.js)。

两次同集 → 不是 11-21 夜间合入带来的回归,是这套用例从来没在 Windows 上跑通。

红面分类(按报错归并)

  1. POSIX 权限位断言(最多,约 40 条 ERR_ASSERTION):private-files.test.js(7 处)、diagnostics.test.js(约 20 处)、secrets.test.js:101、group-work.test.js:450/495、workflow-store.test.js(5 处)、room-collaboration.test.js:160/172、host-pairing.test.js:132。典型读数:actual: '0666' 对期望 0600、expected: '0755'、the scratch home must start world-readable, or this test proves nothing。Windows 没有 POSIX 模式位,chmod 只退化成只读位。
  2. EACCES 与 EPERM 混用(12 条 code: 'EPERM'):测试期待 EACCES(expected: /EACCES/、expected: 'not written (EACCES)' 对 actual: 'not written (EPERM)'),Windows 给 EPERM。另外 chat-index-writers.test.js 的 after 钩子 rmSync 撞 EPERM(SQLite 句柄没关就先删目录),连带 11 条用例红。
  3. ERR_UNSUPPORTED_ESM_URL_SCHEME(4 条):unread-mark-menu.test.js 整文件红,import 用了 file:// 拼出来的 Windows 路径(D:\a\FlyBot\...)。
  4. 信号 / kill 类:resume-atomic.test.js:107/137/165 三条 30s 超时(kill -9 语义在 Windows 不存在)。
  5. 路径与文本断言:chat-anchors.test.js:97(0 !== 1)、real-dir.test.js:79、diagnostics.test.js 里 ~/state.json 与盘符路径的比对。

为什么现在提

建议的第一步(这一条不需要 owner 拍板)

按 #1986 的口径做一批「Windows 可移植」改动:只改 core/test/** 的断言与夹具,不改产品行为;平台确实表达不了的东西(模式位、SIGKILL)写成显式跳过并在用例名里说清理由,不许静默放宽。验收 = 在分支上 dispatch 一次 nightly.yml,windows job 里上述五类清零,ubuntu 单 job 仍绿。

需要 owner 拍板的只有一件:如果不想再养这条线,就把它从「每周必跑」降成「按需 dispatch」并在 docs/ 里写明——这个我不自决。

At: 2026-11-22T05:06Z

Activity

  1. added
    bugSomething isn't working
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Nov 22, 2026
  2. HugoXK commented on Nov 22, 2026

    @HugoXK
    Contributor

    Claim

    Written-by: FlyBot Lead
    Claimed-by: FlyBot Lead
    Claim-Id: f704a41cadd142eb9560ecb6202a55d0
    Branch: dev/3293-nightly-compat-the-weekly-windows-latest
    Base: 5620b96
    At: 2026-11-22T05:05:02Z

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a templatebugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions