Skip to content

ci(mutation): 改为 main 推送与手动触发 - #230

Merged
yourtion merged 1 commit into
mainfrom
ci/mutation-main-only
Oct 30, 2026
Merged

yourtion merged 1 commit into
mainfrom
ci/mutation-main-only

Conversation

@yourtion

@yourtion yourtion commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

每次面向 main 的 PR 都自动运行 mutation,完整变异检查会延长反馈时间。改为 main push 自动运行,并保留 workflow_dispatch 手动检查;PR 继续执行现有普通测试、覆盖率和合约检查。

改动:

  • 移除 mutation 的 pull_request 触发,保留 push main、手动触发及 full 输入。
  • 对保留的触发显式设置 cancel-in-progress: false,沿用按 workflow/ref 分组,保护正在执行的任务。
  • 保留全部 mutation job、兼容性校验、基线及伴随元数据、成功 main 的缓存保存条件和报告上传。
  • 更新贡献指南,说明运行方式、PR 检查及必需检查门禁的处理。

普通 Test 工作流、缓存实现、Stryker 配置及测试断言均未修改。若合并门禁要求 mutation 检查,维护者需另行从 PR 必需检查中移除该项并保留普通 Test;此 PR 不修改后台设置。

验证:

  • YAML 解析与语义对比通过:事件仅为 push main 和 workflow_dispatch;除触发与对应取消策略外字段完全一致。
  • 三个相关脚本 node --check、基线输入清单 CLI、pnpm run check、git diff --check 通过。
  • 20 个文档本地路径检查通过。
  • 本次没有运行 Stryker 或手动触发全量 mutation。本 PR 实际仅触发 Test 和 CodeQL,没有创建 Mutation Testing run。
  • Test(Node 20/22/24,含覆盖率、合约及发布消费检查) 成功。
  • CodeQL 成功。

@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.66%. Comparing base (0cb0c41) to head (c7aa435).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #230   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files          31       31           
  Lines        3306     3306           
  Branches     1086     1085    -1     
=======================================
  Hits         3295     3295           
  Misses         11       11           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yourtion
yourtion marked this pull request as ready for review October 30, 2026 02:17
@yourtion
yourtion merged commit 465b11a into main Oct 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant