ci: the PR coverage upload has not run since the generating workflow was renamed

未关闭 适合新手
#3,069 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, rust
领域
ci-cd

调研方向

阅读 .github/workflows/upload_coverage_pr.yaml 和 .github/workflows/generate_coverage_pr.yaml。更新 workflow_run 的名称及其注释,使其与生成器 workflow 的 name: 字段一致,然后检查上传 job 是否按 issue 中所述处理当前的 coverage artifacts。上传 workflow 能因重命名后的生成器而触发,并上传其 artifacts,即为完成。

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

描述

The pull-request coverage upload workflow has not run since 2026-09-22, because its trigger names a workflow that no longer exists under that name.

What the tree says (at develop faf291a82)

  • .github/workflows/upload_coverage_pr.yaml:10 triggers on workflow_run of "Generate Coverage Report (PR)".
  • .github/workflows/generate_coverage_pr.yaml:1 is named Generate Coverage Reports (PR) (plural).

A workflow_run trigger matches the other workflow by its name:, so the upload workflow is never started.

When it changed

198c0ba57 ("ci(coverage): rename PR coverage workflow"), merged with #2293 on 2026-09-22 (bbcb34ffa), renamed the generating workflow and updated the #2222 spec, but not the trigger in upload_coverage_pr.yaml.

What the run records say

  • Upload Coverage Report (PR): 1198 runs in total; the newest is from 2026-09-22T11:22:33Z, about an hour before that merge.
  • Generate Coverage Reports (PR): still runs on every pull request that touches code (the newest today, 2026-11-26).

So for about two months pull requests have produced coverage artifacts that nothing uploads, and no check reports the gap, because a workflow that is never triggered leaves no failed run.

Smallest fix

Change the trigger at .github/workflows/upload_coverage_pr.yaml:10 to "Generate Coverage Reports (PR)", and the comment above it to match.

To keep it from recurring

A lint step that resolves every workflow_run.workflows entry to an existing name: under .github/workflows/ would fail on this kind of rename. This is the entry implement-workflow-workflow-run-name-unchecked in the friction register on #2003.

One thing worth checking when the trigger is fixed: the upload job runs in the coverage environment with write permissions, and its steps have not run against the current shape of the generating workflow's artifacts since the package-coverage change in #2293.

主要语言
Rust
星标
532
派生
56
平均合并
11 小时 20 分钟
30 天内合并 PR
282

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

torrust/torrust-tracker 的其他 Issue

查看 torrust/torrust-tracker 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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