Skip to content

ci: roll out run-with-stall-guard beyond Test Core (#4314) - #4316

Merged
os-zhuang merged 1 commit into
mainfrom
claude/test-core-mid-suite-stalls-unjeh9
Jul 31, 2026
Merged

ci: roll out run-with-stall-guard beyond Test Core (#4314)#4316
os-zhuang merged 1 commit into
mainfrom
claude/test-core-mid-suite-stalls-unjeh9

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

#4314 的清单,把 #4309 的输出静默看门狗铺到其余所有跑测试套件的 job —— 此前同样的 #4250 型停摆在这些地方仍是"挂到兜底超时"。

改动(纯搬运,guard 本体零改动)

ci.yml — Dogfood 两个 shard

rerun-safety-nightly.yml — 两遍全量

coverage-nightly.yml

  • 覆盖率跑一行接入,--stall-minutes 10,顺手成本。

验收对照(#4314)

  • ✅ 跑套件的 workflow 中不再有 … | tee + set -o pipefail 组合(ci.yml No compiled test files in any dist 的 pipefail 是 find 检查,按 issue 排除);
  • ✅ 每个跑套件的 job:停摆阈值(10/15 分钟)≪ job timeout(30/120/30),停摆以带判词的红呈现。

验证

  • 三个 YAML 解析通过;
  • guard 对 dogfood 命令里嵌套 --(-- pnpm turbo run test --filter=… -- --shard=1/2)的透传实测正确;
  • pass 2 的 || status=$? 分流在 bash -e 下对 exit 0 / 75 / 1 三种情况实测:0 → 静默通过,75 → 停摆文案 + exit 75,1 → rerun-unsafe 文案 + exit 1。

Closes #4314;ref #4250#4309

🤖 Generated with Claude Code

https://claude.ai/code/session_014NNaWXVEyG6Pv4EFRfYGg6


Generated by Claude Code

#4309 gave Test Core the output stall guard; the same #4250 failure
mode elsewhere still presented as hang-until-timeout. Extend the guard
to every remaining suite-running job:

- Dogfood shards (ci.yml): the guard replaces the `| tee dogfood.log`
  + pipefail idiom (log path unchanged, so the completeness guard needs
  no edit) and declares a stall at 10 min of silence. Job timeout drops
  45 -> 30 as a pure backstop, mirroring Test Core. Dogfood boots real
  engines in-process -- exactly the population #4250's stalls came from.
- rerun-safety-nightly: both full passes run under the guard at 15 min
  (a nightly nobody watches previously hung until the 120-min timeout).
  Pass 2 now tells the two reds apart: guard exit 75 gets a stall
  verdict pointing at #4250, everything else keeps the #4065
  rerun-unsafe text -- a stall says nothing about working-tree
  pollution, and the old copy would have sent triage hunting for state
  leaks that aren't there.
- coverage-nightly: wrapped at 10 min; trivial cost.

No `... | tee` + pipefail combination remains in suite-running
workflows (the `find`-based dist check in ci.yml keeps its pipefail;
it is not this pattern).

Closes #4314

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014NNaWXVEyG6Pv4EFRfYGg6
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectstack Ignored Ignored Jul 31, 2026 5:44am

Request Review

@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation ci/cd tooling labels Jul 31, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review July 31, 2026 06:17
@os-zhuang
os-zhuang merged commit 07d812f into main Jul 31, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the claude/test-core-mid-suite-stalls-unjeh9 branch July 31, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd documentation Improvements or additions to documentation size/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Dogfood shards and rerun-safety-nightly still present a #4250-style stall as hang-until-timeout — roll out run-with-stall-guard

2 participants