Skip to content

Add a coverage input to downgrade.yml - #148

Open
isaacsas wants to merge 1 commit into
SciML:masterfrom
isaacsas:downgrade-coverage-input
Open

isaacsas wants to merge 1 commit into
SciML:masterfrom
isaacsas:downgrade-coverage-input

Conversation

@isaacsas

@isaacsas isaacsas commented Nov 7, 2026

Copy link
Copy Markdown
Member

Motivation

downgrade.yml's julia-runtest step doesn't set coverage, so julia-runtest's default (true) applies and the downgrade tests always run with code coverage. Nothing in this workflow processes or uploads that coverage, but collecting it instruments the package's code, which slows its tests: on JumpProcesses.jl, two test files took 2.8x and 1.4x as long with coverage as with bounds checking alone. tests.yml, grouped-tests.yml and documentation.yml all have a coverage input; downgrade.yml has none, so a caller can't turn it off. JumpProcesses.jl is turning coverage off in the rest of its CI (SciML/JumpProcesses.jl#708) and would like to do the same for its downgrade job.

Change

Input Type Default Description
coverage boolean true Run the tests with code coverage (julia-runtest's coverage). Nothing here processes or uploads it; false saves test time.

The input is passed to the julia-runtest step as coverage: "${{ inputs.coverage }}", as tests.yml does. The default keeps the current behavior, so existing callers are unaffected. The README's downgrade.yml input table gets the new row.

Usage

jobs:
  downgrade:
    uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
    secrets: "inherit"
    with:
      coverage: false

Testing

actionlint 1.7.12 (the version this repository's CI uses), with shellcheck, reports no errors for the repository's workflows. It checks inputs.* references against the declared inputs: a copy with the reference misspelled was flagged. The change hasn't been exercised in a live run yet.

sublibrary-downgrade.yml has the same julia-runtest step without coverage. It could get the same input if wanted; this PR leaves it alone.

Callers on @v1 will pick this up once a new v1.x release is tagged.

🤖 Generated with Claude Code 2.1.319 (model: claude-opus-5-5)

The downgrade workflow's julia-runtest step sets no `coverage`, so julia-runtest's default
(true) applies: the tests run with code coverage, which instruments the package's code and
slows its tests (2-3x on JumpProcesses' test files), while nothing in this workflow processes
or uploads the coverage. Unlike tests.yml, grouped-tests.yml and documentation.yml, it has no
input to turn coverage off.

Add a `coverage` input (boolean, default true, so existing callers are unaffected) and pass it
to julia-runtest. Add it to the README's input table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isaacsas added a commit to SciML/JumpProcesses.jl that referenced this pull request Nov 17, 2026
SciML/.github's shared downgrade.yml@v1 has no input for coverage, so julia-runtest's default
(on) applied; SciML/.github#148 adds the input but isn't merged. Run the shared workflow's steps
here instead, for this repository's settings, with `coverage: false`, until it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant