Repository navigation
Preserve package coverage across filtered CI runs - #1584
Open
skylartaylor wants to merge 1 commit into
Open
skylartaylor wants to merge 1 commit into
skylartaylor wants to merge 1 commit into
Conversation
9 of 10 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1584 +/- ##
=======================================
Coverage 89.84% 89.84%
=======================================
Files 7 7
Lines 128 128
=======================================
Hits 115 115
Misses 13 13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Codecov project check compares incomplete reports on package-only pull requests. On #1546, CI correctly skipped the unchanged platform-interface package, but both packages upload under the shared
unittestsflag. With one upload instead of two, Codecov reported 71.42% instead of 89.84%, although none of the measured Dart files changed.Upload coverage under each package's name and configure carryforward for the two tested packages. Restrict each flag to its package and each upload to its explicit LCOV file. Changes to the Codecov configuration run both suites so a full baseline is established before later partial runs carry coverage forward. Existing project and patch thresholds are unchanged.
Reproduction: #1546 (comment). No separate issue tracks this CI bug.
Validation:
actionlintpasses for both edited workflows.git diff --checkpasses.This is a CI-only change, so it needs no package version bump, changelog entry or product test. Native example builds, Dart formatting and static analysis were not rerun locally; the PR's CI will run the existing package jobs. Repository-wide actionlint also reports an existing obsolete
actions/stale@v8warning in the unchanged no-response workflow; the two edited workflows are clean. Hosted carryforward behavior still needs confirmation after publishing, merging and establishing the new flags on main. Rebase #1546 onto that main to pick up the fix.Pre-launch Checklist
pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.mdto add a description of the change.///).main.dart format .and committed any changes.flutter analyzeand fixed any errors.