From 91df377d6a1319b4b6f13b14d731496004840b58 Mon Sep 17 00:00:00 2001 From: Sam Isaacson Date: Fri, 6 Nov 2026 19:25:34 -0500 Subject: [PATCH] Disable code coverage in CI; benchmark with default bounds checking Nothing uses the coverage reports: Codecov has processed none for master since January 2025, PR comments are off and the README badge is commented out. Collecting it instruments JumpProcesses' code, which made the SSA loops 1.8-4.7x slower and test files 1.4-2.8x slower locally. So the test and documentation workflows now pass `coverage: false` to the shared SciML workflows, the GPU job turns it off in julia-runtest, and the ThreadSafety job drops `--code-coverage=user` (Pkg.test() overrode it anyway) and the coverage steps. .codecov.yml goes too. Bounds checking stays on in the tests. The benchmarks already ran with Julia's default bounds checking (AirspeedVelocity passes no flags); `exeflags: "--check-bounds=auto"` makes that explicit. The Downgrade job still collects coverage: the shared downgrade workflow has no input for it. Co-Authored-By: Claude Opus 5.5 --- .codecov.yml | 1 - .github/workflows/Documentation.yml | 2 ++ .github/workflows/GPU.yml | 8 ++------ .github/workflows/Tests.yml | 4 ++++ .github/workflows/ThreadSafety.yml | 13 +------------ .github/workflows/benchmark.yml | 3 +++ 6 files changed, 12 insertions(+), 19 deletions(-) delete mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 69cb76019..000000000 --- a/.codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: false diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index fb51f43a6..e7955e9c1 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -11,4 +11,6 @@ jobs: build: name: "Documentation" uses: "SciML/.github/.github/workflows/documentation.yml@v1" + with: + coverage: false secrets: "inherit" diff --git a/.github/workflows/GPU.yml b/.github/workflows/GPU.yml index 363e5c701..add9c0bfd 100644 --- a/.github/workflows/GPU.yml +++ b/.github/workflows/GPU.yml @@ -28,11 +28,7 @@ jobs: version: "1" - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + with: + coverage: false env: GROUP: "CUDA" - - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v7 - with: - files: lcov.info - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: false diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 45dc20491..007142bec 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -19,4 +19,8 @@ concurrency: jobs: tests: uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1" + with: + # Nothing uses the coverage reports, and instrumenting JumpProcesses' code slows it + # 2-5x in the tests. Bounds checking stays on (the default) to catch @inbounds errors. + coverage: false secrets: "inherit" diff --git a/.github/workflows/ThreadSafety.yml b/.github/workflows/ThreadSafety.yml index 45939c730..c6689ee27 100644 --- a/.github/workflows/ThreadSafety.yml +++ b/.github/workflows/ThreadSafety.yml @@ -45,21 +45,10 @@ jobs: - name: "Run thread safety tests (4 threads)" run: | - julia --threads=4 --code-coverage=user --check-bounds=yes --compiled-modules=yes \ + julia --threads=4 --check-bounds=yes --compiled-modules=yes \ --project=@. --color=yes -e ' using Pkg Pkg.test() ' env: GROUP: ThreadSafety - - - name: "Process Coverage" - uses: julia-actions/julia-processcoverage@v1 - - - name: "Report Coverage" - uses: codecov/codecov-action@v7 - if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} - with: - files: lcov.info - token: "${{ secrets.CODECOV_TOKEN }}" - fail_ci_if_error: false diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 33e57452f..e7d5d0442 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -26,6 +26,9 @@ jobs: script: "benchmark/benchmarks.jl" extra-pkgs: "StableRNGs,OrdinaryDiffEqTsit5,StochasticDiffEqHighOrder" job-summary: true + # Time with Julia's default bounds checking, as users run it (@inbounds respected), + # never with the tests' --check-bounds=yes + exeflags: "--check-bounds=auto" # This workflow can't comment on pull requests from forks, which get a read-only token. # Benchmark Comment renders the comment from the results files the action wrote. - uses: actions/upload-artifact@v7