-
Notifications
You must be signed in to change notification settings - Fork 43
Fix premature Codecov status checks #3069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
13a86c3 to
bb1da4b
Compare
0865e3a to
382cb7d
Compare
8623936 to
a6b1056
Compare
1b01ee3 to
3119e28
Compare
51f9eee to
473a364
Compare
The Checks pipeline has 2 separate jobs that upload codecov results - Test and Acceptance. Test job always finishes first, so Codecov calculates status before Acceptance finishes, showing a red status (i.e. reduced coverage) that later turns green. To fix that, upload all coverage together after both Test and Acceptance jobs complete. Ref: https://issues.redhat.com/browse/EC-1591 Assisted-by: Claude
9baeb52 to
3f15f98
Compare
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
st3penta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm


User description
Restructure the workflow so that Test and Acceptance jobs save coverage as artifacts, then a new Upload job waits for both to complete before uploading all reports together, ensuring Codecov receives complete data in a single batch instead of calculating status prematurely.
PR Type
Enhancement
Description
Restructure workflow to defer Codecov uploads until both jobs complete
Test and Acceptance jobs now save coverage as artifacts instead of uploading
New Upload job waits for both jobs, downloads artifacts, and uploads together
Prevents premature Codecov status calculation with incomplete coverage data
Diagram Walkthrough
File Walkthrough
checks-codecov.yaml
Restructure workflow for batched Codecov uploads.github/workflows/checks-codecov.yaml
upload for all three coverage files
artifact upload
proper file paths