Skip to content

Add a coverage input to downgrade.yml - #148

Merged
ChrisRackauckas merged 3 commits into
SciML:masterfrom
isaacsas:downgrade-coverage-input
Nov 30, 2026
Merged

ChrisRackauckas merged 3 commits 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>
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #148

Reviewed head: 6804c13
Raw SHA-256: a21b5596f2a57f84682253b09cd4874f0f317a3aeed9029ccfdd16eff8b1ae14
Source SHA-256: 1bafc13184cbba86e51d512fe46d0cf3dbf682cd5217b9a210563c02568318cd
Source: standard-review-v1 (harness-log)
Reviewer session: 01a2131d-53b8-7981-bbb2-15f67907bb01
Slot: 2
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: high (H5)
  • Verdict: CHANGES
  • Reviewed head: 6804c13

Review report

VERDICT: CHANGES
Round: 1
Head: 6804c13
Slot: 2
CI: green
Session: 01a2131d-53b8-7981-bbb2-15f67907bb01
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

high (H5: .github/workflows/downgrade.yml adds a caller-facing input to an org-wide reusable CI workflow)

Blocking findings

  • Blocking priorities: P2

  • [P2] .github/workflows/downgrade.yml:197 — The new opt-out has no regression test. I deleted the coverage forwarding line in a scratch copy and all 124 existing Julia assertions still passed. Workflow lint also accepts a reusable workflow that declares the input and leaves it unused. Losing this line would silently discard callers’ explicit coverage: false.

    Implementation fix

    Add a testset in test/runtests.jl alongside the reusable workflow checks. Read .github/workflows/downgrade.yml and scope the assertions to on.workflow_call.inputs.coverage and the julia-actions/julia-runtest@v1 step’s with block. Assert that the input is an optional boolean with default true and that the step forwards ${{ inputs.coverage }} directly. Show that the test fails when the default flips or the forwarding is dropped or forced to true. This covers the caller contract documented at README.md:265.

Non-blocking findings

None.

What I ran

  • julia --version reported 1.12.4. julia --color=no test/runtests.jl passed 124 assertions across 21 testsets. Removing the forwarding line in a scratch copy still passed all 124 assertions.
  • actionlint and actionlint .github/workflows/downgrade.yml exited 0 with actionlint 1.7.7. A scratch caller with omitted, explicit false, and explicit true inputs passed lint against the reviewed workflow. With forwarding removed, lint still exited 0. Against the base workflow, lint rejected the two explicit inputs with input "coverage" is not defined.
  • A Ruby YAML probe resolved the declared default and direct forwarding to true, false, and true for the same three cases. It rejected the base workflow, an inverted default, an || true fallback, and missing forwarding. The probe checked the workflow configuration locally.
  • uv run --locked python --version reported Python 3.13.13. uv reported that --locked had no effect because the checkout has no Python project. The affected suite uses Julia.
  • git diff --check origin/master...HEAD and typos - on the added lines exited 0.

What I did not verify

GitHub-hosted execution of the reusable workflow and external julia-runtest@v1 action, the test-time savings, or the remote CI runs. The installed linter also accepted a quoted "false" in the scratch caller, so the lint result establishes only that the boolean cases are accepted.

AUTHOR_GRADE: {"task":"ci","score":4,"difficulty":1,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"The workflow and README agree, and local probes confirm the declared default and direct forwarding. The existing suite passes with forwarding removed."}

Head link: 6804c13


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2131d-53b8-7981-bbb2-15f67907bb01 (no session URL)

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex desktop 0.171.0-alpha.13.2
Agent-Model: unknown (GPT-6 family)
Agent-Session: local session 01a22257-20a4-7960-91bd-006b2ea596b6 (no session URL)
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Added a regression test for the optional boolean input, its true default, and direct forwarding to julia-runtest. This addresses the missing-test finding on the prior head.

Validation on the updated branch:

  • julia +1.12 --compiled-modules=existing --startup-file=no --color=no test/runtests.jl passed; the new testset passed 7/7.
  • With the same test in scratch copies, changing the default to false, removing forwarding, and forcing it to true each exited 1 with 6 passes and 1 failure; the unmodified case exited 0 with 7 passes.
  • Runic 1.9.0, actionlint 1.7.12 with ShellCheck, typos, git diff --check, and the nine Python resolver tests passed.
  • GROUP=QA and a docs build do not apply: this repository has no root Julia package project or docs build script. The reusable workflow was not run on a GitHub-hosted runner in this verification.

The added commit is 2c77893. New-head CI is pending.


🤖 Posted by an AI agent — harness: Codex desktop 0.171.0-alpha.13.2 · model: GPT-6 (exact model ID unknown)
Conversation: local session 01a22257-20a4-7960-91bd-006b2ea596b6 (no session URL)

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex desktop 0.171.0-alpha.13.2
Agent-Model: unknown (GPT-6 family)
Agent-Session: local session 01a22257-20a4-7960-91bd-006b2ea596b6 (no session URL)
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Merged current master into this branch without conflicts: 74fcdd6. The combined tree passed 146/146 Julia assertions, including the seven coverage-contract assertions; the nine Python resolver tests, Runic, actionlint with ShellCheck, typos, and the diff check also passed. Fresh GitHub Actions checks are running on the new head.


🤖 Posted by an AI agent — harness: Codex desktop 0.171.0-alpha.13.2 · model: GPT-6 (exact model ID unknown)
Conversation: local session 01a22257-20a4-7960-91bd-006b2ea596b6 (no session URL)

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #148

Reviewed head: 74fcdd6
Raw SHA-256: f58c925d5f704f1180a51d96244e1e1d86548c22097eab11c457a6294f4ec496
Source SHA-256: e150cd1c127d640cea171d6a67c9f3044fb2384553a9323c816349f65b3fb8d5
Source: standard-review-v1 (harness-log)
Reviewer session: 01a222f2-7006-7b31-b022-394733dcd611
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: high (H6)
  • Verdict: MERGE
  • Reviewed head: 74fcdd6

Review report

VERDICT: MERGE
Round: 2
Head: 74fcdd6
Slot: 1
CI: green
Session: 01a222f2-7006-7b31-b022-394733dcd611
Reviewer: codex-cli 0.172.0; model: gpt-6.2-sol

Risk

high (H6: the round delta changes caller token permissions guidance for the auto-merge executor in .github/workflows/dependabot-automerge.yml, README.md, and Monorepo.md. Those changes are already in the base. H5: .github/workflows/downgrade.yml changes a shared CI interface. Owner decision required.)

Blocking findings

  • Blocking priorities: none

The prior blocker is resolved. The regression test at test/runtests.jl:650 catches a flipped default, dropped forwarding, and forwarding hardcoded to true.

Non-blocking findings

None.

What I ran

  • Compared git diff origin/master...HEAD with the supplied round delta, which matched git diff 6804c134cedf2462c8df1a59002a73d5a8489377 HEAD. The merge diff contains the coverage input, its README entry, and its test. Neither diff contains renames.
  • julia --startup-file=no --color=no test/runtests.jl on Julia 1.12.4 passed 146/146 assertions across 23 testsets, including all seven coverage input assertions.
  • Ran the new testset against scratch copies of the workflow. The reviewed workflow passed 7/7. The base workflow exited 1 with two failed assertions. Dropping the forwarding line, replacing it with literal true, and setting the default to false each exited 1 with one failed assertion.
  • actionlint 1.7.7 with ShellCheck 0.10.0 exited 0 on the checkout. It also accepted scratch reusable callers that omitted coverage, passed false, and passed true.
  • Runic check mode on test/runtests.jl, typos on added lines, and git diff --check origin/master...HEAD each exited 0. The checkout was clean afterward.
  • uv run --locked python --version printed Python 3.13.13. The checkout has no Python project or lockfile, and uv reported that --locked had no effect. uv run --no-cache --locked python -m unittest discover -s test -p 'test_resolve_monorepo_tagbot.py' -v ran 9 tests and reported OK.

What I did not verify

  • Live GitHub Actions execution, the CI status supplied in the header, and the downstream action's actual coverage instrumentation on a hosted runner. The self-test workflow uses actionlint 1.7.12.
  • The session line records the ID reported by the running Codex CLI. This run exposed no Devin session name.

AUTHOR_GRADE: {"task":"ci","score":5,"difficulty":2,"rounds":2,"author_harness":"Codex desktop 0.171.0-alpha.13.2","author_model":"unknown (GPT-6 family)","note":"The full local suite passed, and the new test caught each downgrade coverage wiring regression raised in the prior round."}

Head link: 74fcdd6


🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol
Conversation: local session 01a222f2-7006-7b31-b022-394733dcd611 (no session URL)

@ChrisRackauckas
ChrisRackauckas merged commit 9c258b7 into SciML:master Nov 30, 2026
3 checks passed
@isaacsas
isaacsas deleted the downgrade-coverage-input branch November 30, 2026 10:23
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.

3 participants