-
Notifications
You must be signed in to change notification settings - Fork 1k
Update build.yml and build-PR.yml to use default value to failIfCoverageEmpty for task PublishCodeCoverageResults@2 #13481
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
base: main
Are you sure you want to change the base?
Conversation
…ageEmpty for task PublishCodeCoverageResults@2
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13481 +/- ##
=============================================
Coverage 76.59683% 76.59683%
=============================================
Files 3230 3230
Lines 639157 639157
Branches 47295 47295
=============================================
Hits 489574 489574
+ Misses 146007 146006 -1
- Partials 3576 3577 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This PR removes the explicit failIfCoverageEmpty: true
setting from the PublishCodeCoverageResults@2 tasks, allowing the pipeline to use the default behavior and avoid failures when coverage data is missing.
- Removed
failIfCoverageEmpty
flag frombuild.yml
andbuild-PR.yml
- Prevents pipeline errors when no coverage report is generated
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
eng/pipelines/build.yml | Removed explicit failIfCoverageEmpty: true input |
eng/pipelines/build-PR.yml | Removed explicit failIfCoverageEmpty: true input |
@LeafShi1 Would you know why it fails only in |
Because the filter condition of this task is match Debug|X64 winforms/eng/pipelines/build-PR.yml Line 147 in 94e240e
This was the judgment when the file was first added, but the code coverage result was never published successfully in the internal pipeline, you can refer to the result of the release/8.0. Later, due to issue #12634, we changed |
Fixes #13535
Proposed changes
Microsoft Reviewers: Open in CodeFlow