inconsistent coverage reports after migrating repos to new GitHub and codecov orgs
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
Hướng nghiên cứu
The report is about the hosted Codecov service's per-organization behaviour, so the repo's own code is only the upload side: start with the global YAML in the issue body and the codecov/project and PR-comment outputs it is supposed to produce. The linked codecov/worker writers.py lines show the comment conditional the reporter suspects. Done would mean a maintainer confirming the cause, since the fix probably lives in the Codecov service rather than in this action.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
After transferring public repositories from LizardByte to other GitHub organizations, Codecov behaves differently despite the same global YAML configuration.
All three destination organizations are using the Free plan.
| Organization | Repository | codecov/project |
PR report |
|---|---|---|---|
| Themerr | Themerr | Missing | Short, patch-only report |
| KokoStreamTV | Koko | Missing | Short, patch-only report |
| SunshineStream | Sunshine | Present | Full coverage comparison |
One potentially relevant difference: SunshineStream has existed for a long time but was unused until these migrations. Themerr and KokoStreamTV are newly created organizations.
To Reproduce
-
Transfer public repositories from LizardByte to the destination organizations.
-
Configure each destination Codecov organization with the same global YAML:
--- codecov: max_report_age: off coverage: status: project: default: target: auto threshold: 10% comment: layout: "header, reach, diff, flags, files, footer" behavior: default require_changes: false ignore: - "tests" - "third-party" -
Run GitHub Actions to upload coverage for the default branch and a pull request.
-
Compare the resulting checks and comments:
- Themerr, affected: https://github.com/Themerr/Themerr/pull/722#issuecomment-6834790035
- Koko, affected: https://github.com/KokoStreamTV/Koko/pull/371#issuecomment-6820446349
- Sunshine, working: https://github.com/SunshineStream/Sunshine/pull/6089#issuecomment-6821119882
The commit-level resolved YAML includes the configured project status and comment layout in all three repositories. No repository Codecov YAML files override the global configuration. Base and head coverage reports are available.
Expected behavior
Each public repository should receive:
- A
codecov/projectcheck using the configured target and threshold. - A full PR report containing the project coverage comparison and configured layout.
Regression
The affected repositories received project coverage checks and full reports under LizardByte. The discrepancy appeared after transferring them to the newly created organizations.
Sunshine continues working after transfer to the older SunshineStream organization.
Screenshots
The linked GitHub comments show the affected and working reports.
Product Area
Coverage: GitHub status checks and pull request comments.
Versions
- Git Host: GitHub.com
- CI/CD: GitHub Actions
- Codecov: Hosted service
- Plan: Free in all three destination organizations
Commit and CI link
Affected example: Themerr PR #724
- Commit:
3e2f386f2f5ffbd31f487cd5b0962bc5c37c0450 - CI checks: https://github.com/Themerr/Themerr/pull/724/checks
- Codecov comment: https://github.com/Themerr/Themerr/pull/724#issuecomment-6845946711
- Base and head coverage: 89.29%
codecov/patch: Passedcodecov/project: Missing
Additional context
I also tried explicitly adding this under comment:
hide_project_coverage: false
The resolved YAML confirms that this setting was applied.
On Themerr, it removed the “All tests successful. No failed tests found.” message without restoring project coverage details or the missing project check. On Sunshine, it produced no visible change; the full report already worked.
The disappearing test-success message appears consistent with this conditional in Codecov's published comment renderer:
https://github.com/codecov/worker/blob/main/services/notification/notifiers/mixins/message/writers.py#L53-L61
However, all three organizations show Free, so I am not assuming this indicates a Team subscription.
Could different defaults or internal reporting state for older versus newly created organizations explain this behavior? Is there anything that needs to be reset or corrected after the repository transfers?
Potentially related: https://github.com/codecov/codecov-action/issues/1979
That issue reports successful coverage uploads and an available codecov/patch result, while codecov/project remains running.
My situation differs: codecov/project is absent entirely, and the PR comment also omits the project coverage comparison. I’m unsure whether these share an underlying cause, but wanted to mention the similar recent report.
- Ngôn ngữ chính
- Python
- Star
- 1.7k
- Fork
- 260
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codecov/codecov-action
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
codecov/codecov-action#1952 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
codecov/codecov-action#1979 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
codecov/codecov-action#1978 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
codecov/codecov-action#1977 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
codecov/codecov-action#1974 ·
Tất cả issue của codecov/codecov-action
Issue tương tự
-
A new VOLTTRON_HOME starts with agent isolation mode on (string comparison of a boolean default)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
llm translation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FAIRmat-NFDI/sand#239 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
coco-research/coco#539 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
JustBeanie/hass-volcano-hybrid#34 ·
Maintainer thường phản hồi trong vòng 1 ngày