Skip to content

ci: PR 检查不跑 Windows 后端测试,Windows 专属失败要到发布时才发现 #25

Done

Description

@1lck

现象

.github/workflows/ci.yml 只在 Ubuntu 上运行 cargo test --workspace,macOS 任务只打包;Windows 后端的 cargo test 只在 release.yml 的 Build Windows x64 backend 任务中运行。

v3.0.1 首次打 tag 时(run 44024508226),两条 project_model 测试因为路径分隔符在 Windows 上失败,发布被中止,只能修复(#24)后重新打 tag。PR #22 的全部 CI 检查都是绿的,没能发现这个问题。

期望

在 PR 的 CI 中加入 Windows 后端测试(windows-latest,cargo test --workspace --locked --target x86_64-pc-windows-msvc,并启用 rust-cache)。和 macOS 任务一样,只在非 Draft 时运行,以控制 Actions 用量。这样 Windows 专属的失败能在合并前发现。

相关

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Nov 17, 2026
  2. devin-ai-integration commented on Nov 27, 2026

    @devin-ai-integration
    Contributor

    我来处理这个问题。

    已在 main 的 2e0871874a3991810907620a5cd70d6f4a20fc31 复现。可在该提交上运行以下命令,对照两个工作流的触发条件、runner 和测试步骤。

    git grep -nE 'pull_request:|tags:|runs-on:|os: ubuntu|cargo test' 2e087187 -- .github/workflows/{ci,release}.yml

    PR 工作流的两处 cargo test --workspace --locked 都在 Ubuntu 上运行,macOS 任务负责打包和集成验证。发布工作流只在推送 v* 标签时触发,才会在 windows-latest 上执行 cargo test --workspace --locked --target x86_64-pc-windows-msvc。因此 ready PR 当前无法在合并前检出 Windows 后端测试失败。接下来会补上相同目标的 PR 测试,并沿用 macOS 任务的 Draft 跳过条件。

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions