From b5fe302548a602afcc46448fe51536c7555e2203 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Thu, 23 Apr 2026 00:13:29 -0400 Subject: [PATCH] Tests.yml: disable force_latest_compatible_version on LTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `julia-actions/julia-runtest`'s default `force_latest_compatible_version: auto` fires for bot-authored PRs (CompatHelper, Dependabot), pinning each dep to the upper end of its declared compat so the bump is actually exercised. Without it, a CompatHelper PR would resolve to the old dep version and pass tests vacuously. That's the right behavior on current Julia, but on LTS it produces spurious failures whenever a transitive dep pins the newer version out of reach (e.g. JuliaFormatter 2.3 pins JuliaSyntax to 0.4.10, but the compat bump widens to "0.4.10, 1" — forcing "1" on LTS makes it unsatisfiable). Accepting such bumps as aspirational-on-LTS-while- working-on-current is a common, reasonable policy. Disable the force on the LTS leg specifically; keep `auto` on current. --- .github/workflows/Tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index b7674a8..9b57f4b 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -153,6 +153,13 @@ jobs: depwarn: "${{ inputs.julia-runtest-depwarn }}" coverage: "${{ inputs.coverage }}" prefix: "${{ inputs.test-prefix }}" + # On LTS, accept that newer dep versions may not be reachable — + # let Pkg resolve to whatever satisfies both the workspace compat + # and transitive constraints. `auto` (the default) would otherwise + # treat bot-authored bump PRs as failing whenever LTS can't reach + # the upper-end compat, even when we are fine with the bump being + # aspirational on LTS while working on current Julia. + force_latest_compatible_version: "${{ inputs.julia-version == 'lts' && 'false' || 'auto' }}" env: GROUP: "${{ inputs.group }}" JULIA_NUM_THREADS: "${{ inputs.nthreads }}"