Repository navigation
fix(ci): Pages 发布不再因取消 / 超时 / artifact 查询延迟留红叉 - #446
Merged
Merged
Conversation
Environments 页面里一串 github-pages 部署失败,实查有三种原因: - E2E 超时:近几次耗时 21~29 分钟,#445 撞上 30 分钟上限 → 放到 40 - 连着合 PR 时 concurrency 取消前一个 main 运行,pages job 因 always() 照跑,没有 E2E 报告就在下载那步报错 → 改 !cancelled(),整个 run 被取消时跳过; E2E 自己超时不算 run 被取消,文档站照发 - upload-pages-artifact 刚 finalized,deploy-pages 约 1 秒后查 artifact 列表, 偶发 Found 0/1 → `No artifacts named "github-pages"`(#1033、#1053) → 部署前先轮询列表,最多等 60 秒,等不到仍交给 deploy-pages Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现象
Environments → github-pages 里一串部署失败(#418 / #420 / #424 / #436 / #438 / #445)。这个 job 只管文档站和 E2E 报告,不影响产品,但线上文档停在 #443,后面的都没发出去。
实查的原因
playwright-report→ Pages 下载那步报错,deploy-pages报Found 0 artifact(s)Deploy to GitHub Pages报Found 1 artifact(s)→No artifacts named "github-pages"upload-pages-artifact刚 finalized 约 1 秒,artifact 列表还查不到。成功的 #1050 同一时刻查到的是Found 2concurrency取消前一个 main 运行,而 pages job 写的是always(),照跑改动(只动
.github/workflows/ci.yml)timeout-minutes30 → 40always()→!cancelled():整个 run 被取消时跳过;E2E 自己超时不算 run 被取消,文档站照发deploy-pages之前加一步,轮询 artifact 列表直到出现github-pages(最多 60 秒);等不到只打 warning,仍交给deploy-pages验证了什么、没验证什么
pages;轮询用的gh api查询在 #1053 上实跑,返回github-pages数量!cancelled()对「被 concurrency 取消」为假是按 GitHub 的语义推的;artifact 列表有延迟是从两次失败的时序推断的,没法直接复现。合并后看 Environments 页面是否还有红叉才算数🤖 Generated with Claude Code