Skip to content

Skip flaky bad_broyden Generalized Rosenbrock test (#1083) - #1108

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:skip-flaky-bad-broyden-rosenbrock-1083
Jul 23, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:skip-flaky-bad-broyden-rosenbrock-1083

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Fixes #1083.

Problem

test/Core/23_test_problems_tests__item7.jl, problem #1 (Generalized Rosenbrock) solved with

Broyden(; init_jacobian = Val(:true_jacobian), update_rule = Val(:bad_broyden))

(alg #4) sits on a knife-edge. As noted in the issue, #1039 changed the quasi-Newton Jacobian-inverse initialization from inv!(lu(A)) to linsolve_identity!! (solving A·X = I). The resulting ulp-level difference (~1e-13) flips this problem between converging and not converging, so it randomly passes and fails.

Marking it broken isn't sufficient: when it happens to converge, @test ... broken=true errors as an unexpected pass. So neither broken=true nor broken=false gives a stable result.

Fix

Use the harness's existing skip_tests mechanism (already supported by test_on_library in setup_robustnesstesting.jl) to skip this single case, and remove problem #1 from broken_tests[alg_ops[4]] so it isn't double-counted.

Verification

Ran the file locally (Julia 1.12):

Test Summary: | Pass  Broken  Total   Time
Broyden item7 |   95      20    115  29.6s

0 failures, 0 errors.

Problem #1 (Generalized Rosenbrock) solved with
Broyden(; init_jacobian = Val(:true_jacobian), update_rule = Val(:bad_broyden))
sits on a knife-edge. After SciML#1039 changed the Jacobian inverse initialization
from inv!(lu(A)) to linsolve_identity!!, the ulp-level difference (~1e-13) flips
this problem between converging and not, so it randomly passes and fails.

Marking it `broken` is not enough: when it happens to converge it errors as an
unexpected pass. Use the harness's existing skip_tests mechanism instead so the
case is skipped in both directions.

Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 23, 2026 16:00
@ChrisRackauckas
ChrisRackauckas merged commit b0e82e9 into SciML:master Jul 23, 2026
23 of 25 checks passed
ChrisRackauckas added a commit that referenced this pull request Jul 28, 2026
…1125)

Problem #8 (Brown almost linear) solved with
Broyden(; init_jacobian = Val(:true_jacobian), update_rule = Val(:bad_broyden))
is the same knife-edge case as problem #1, which #1108 already moved into
skip_tests. #1051 removed 8 from that algorithm's broken list
([5, 6, 8, 11] -> [1, 5, 6, 11]) after validating on a machine where it
converges; it does not converge on the SciML self-hosted pool or on current
GitHub-hosted runners, where it returns the initial best residual 5.5.

As documented in #1096, the outcome is deterministic per machine but flips with
the BLAS kernel, and it has failed in both directions: the 2026-07-15 Downgrade
run errored with "Unexpected Pass" while it was still marked broken. Neither
pass nor @test_broken is a stable expectation, which is exactly what the
harness's skip_tests mechanism is for.

Local verification on Julia 1.12.6, test/Core/23_test_problems_tests__item7.jl:
this machine is one where #8 converges, so the run goes from 95 pass / 20 broken
on master to 94 pass / 21 broken with this change - one test moved from pass to
skip, nothing else changed.

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
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.

Master CI red since 2026-07-12: "23 Test Problems: Broyden" alg #4 broken-list mismatch, bisected to #1039 (merged via cancelled CI run)

2 participants