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

Đang mở Phù hợp với người mới
#3,069 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, rust
Lĩnh vực
ci-cd

Hướng nghiên cứu

Đọc .github/workflows/upload_coverage_pr.yaml và .github/workflows/generate_coverage_pr.yaml. Cập nhật tên workflow_run và chú thích của nó để khớp với trường name: của workflow tạo, sau đó kiểm tra xem job tải lên có xử lý các artifact coverage hiện tại như được nêu trong issue hay không. Hoàn tất khi workflow tải lên được kích hoạt cho workflow tạo đã đổi tên và tải lên các artifact của nó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
532
Fork
56
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
282

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của torrust/torrust-tracker

Tất cả issue của torrust/torrust-tracker

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.