Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Flags partition coverage by test suite. carryforward ensures that if GPU tests are skipped
# on a PR (no relevant file changes), their coverage from the last nightly run is reused so
# the comparison is not penalized for the missing upload.
# Flags partition coverage by test suite, and the example lanes carry one flag each
# (examples-<name>) since they are gated independently. carryforward reuses the last run's
# coverage for any flag with no upload on this commit, so a PR that skips a suite or a single
# example lane is not penalized for the missing upload. A flag shared across independently
# gated jobs would defeat this: the flag would be present but partial, and carryforward only
# applies when a flag is absent.
flag_management:
default_rules:
carryforward: true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/_example_tests_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: examples
# One flag per example, not a shared `examples`: carryforward only applies to a flag
# with no upload, so a shared flag would replace every lane's coverage with the subset
# that ran once lanes are gated independently.
flags: examples-${{ inputs.example }}
fail_ci_if_error: false # test may be skipped if relevant file changes are not detected
verbose: true
Loading