Repository navigation
CI: make coverage upload and cache save non-fatal - #599
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Almost every red check on recent runs was infrastructure, not a test failure:
- `codecov/codecov-action@v6` ran with `fail_ci_if_error: true` in Tests.yml and
Downstream.yml, so a coverage-upload failure (token, rate limit, codecov
outage, or the empty CODECOV_TOKEN on fork PRs) failed the whole job even
though `julia-runtest` had already passed. Verified on master `72fa309`:
SciMLBase.jl/Core, DiffEqBase.jl/Core, OrdinaryDiffEq.jl/Core and
DiffEqBase.jl/Downstream2 all failed only on the codecov step.
- `julia-actions/cache@v3`'s save (post) step fails to authenticate with the
cache backend on some self-hosted runners ("Server failed to authenticate the
request" / "ENOENT: cache.tzst"), failing the job after the tests passed.
Coverage upload and cache save are reporting/infrastructure steps; a failure in
either must not turn a green test run red. This sets `fail_ci_if_error: false`
and adds `continue-on-error: true` to the codecov steps (mirroring the existing
GPU.yml setting, and guarding the residual non-zero exit the action returns with
an empty token), and `continue-on-error: true` to the cache step. Test steps are
unchanged, so a real test failure still fails CI.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
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.
Problem
Recent CI runs are broadly red, but the failures are almost entirely infrastructure, not test failures. Investigated by inspecting per-step conclusions on master
72fa309:julia-runtestSciMLBase.jl/Corecodecov/codecov-action@v6DiffEqBase.jl/Corecodecov/codecov-action@v6OrdinaryDiffEq.jl/Corecodecov/codecov-action@v6DiffEqBase.jl/Downstream2codecov/codecov-action@v6GPU Testscodecov/codecov-action@v6Tests - nopre - Julia 1Post Run julia-actions/cache@v3Two root causes:
codecov/codecov-action@v6ran withfail_ci_if_error: trueinTests.ymlandDownstream.yml, so any upload failure (token issues, rate limits, a codecov outage, or the emptyCODECOV_TOKENon fork PRs) failed the whole job after tests had already passed.GPU.ymlalready usedfail_ci_if_error: false— this brings the others in line.julia-actions/cache@v3's save (post) step fails to authenticate with the cache backend on some self-hosted runners (Server failed to authenticate the request/ENOENT: …/cache.tzst), failing the job after tests passed.Fix
Coverage upload and cache save are reporting/infrastructure steps; neither should turn a green test run red.
Tests.yml,Downstream.yml: codecov →fail_ci_if_error: false+continue-on-error: true.GPU.yml: codecov → addcontinue-on-error: true(fail_ci_if_error: falsealone is insufficient — the action still exits non-zero with an empty token, as seen on fork PRs).Tests.yml:julia-actions/cache@v3→continue-on-error: true.Test steps are untouched — a real test failure still fails CI. This only stops infra/reporting steps from masquerading as test failures.
Scope / not covered here
SciMLSensitivity.jl/Core6fails in the actual test step (Load this and run the downstream tests), not codecov/cache — a genuine downstream failure that is independent of this change and needs separate triage.Documentationjob's coverage step lives in the reusableSciML/.github/.github/workflows/documentation.yml@v1, not this repo, so it is out of scope here.YAML validated locally (parses;
continue-on-error/fail_ci_if_errorsettings confirmed on every codecov/cache step). Cannot run GitHub Actions locally — the next CI run on this PR will confirm the infra steps no longer fail jobs.🤖 Generated with Claude Code