CI infra flake: git-lfs download failure in verify:coverage-cache-inputs reddens platform-unit-test (ubuntu) after the suite is green

未关闭
#2,714 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
git, github-actions, typescript
领域
ci-cd

调研方向

The failing step is pnpm --dir src run verify:coverage-cache-inputs, the probe whose single test 'coverage cache input contract' dies while checking out src/assets/docs/demo.gif in a detached worktree during the ubuntu platform-unit-test job. Start by reading the job log lines 531-581 and the probe script it runs, then check whether the workflow's checkout step with 'lfs: false' is the cause. Done means the probe no longer fails on LFS fetch errors in CI, either by fetching LFS objects, skipping LFS for files it never reads, or treating the fetch failure as a retried warning, with the suite still passing.

由索引模型根据 Issue 内容生成。

描述

The ubuntu platform-unit-test job turned red on PR #2707 (job 139560936721, run 45715662470) while the test suite itself passed: 'Test Files 4 passed (4) / Tests 317 passed (317)'. The red came from the step after it - pnpm --dir src run verify:coverage-cache-inputs - whose single test 'coverage cache input contract' died inside git-lfs: the probe creates a worktree (detached HEAD at the merge preview) and the checkout of src/assets/docs/demo.gif fails with 'external filter git-lfs filter-process failed' / 'smudge filter lfs failed'. The job's own checkout step runs with 'lfs: false', so the probe's later LFS need is not served.

Impact: any PR whose ubuntu unit job runs this probe can go red on infrastructure, not code - we hit it on bbfb09e08ac4 while the identical suite was fully green; a re-run (admin rights required) is currently the only author-side option.

Failure address: log lines 531-581 of the job log (55,528 B after ANSI strip, sha256-16 fe8f4cf03fcd9945); the failure point is the probe, the death cause is the LFS external filter, the trigger is the worktree checkout of preview HEAD.

Possible fixes to consider: serve LFS objects for the probe (or pre-fetch demo.gif), treat probe-level LFS fetch failures as warnings with a retry, or pin the probe's worktree checkout to skip LFS for files it never reads. Not a code defect in our branches - registering so the red is not misattributed to PRs.
[Filed by the issue-1410 split lane; a second specimen exists on our earlier head a87406978cc4, same job name.]

主要语言
TypeScript
星标
2k
派生
301
平均合并
3 天 14 小时
30 天内合并 PR
103

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。