Skip to content

Skip machine-dependent Brown almost linear bad_broyden test (#1096) - #1125

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/skip-brown-bad-broyden
Jul 28, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/skip-brown-bad-broyden

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore this PR until it has been reviewed by @ChrisRackauckas.

Summary

One-line test-expectation change: add problem #8 to the existing skip_tests entry for Broyden(; init_jacobian = Val(:true_jacobian), update_rule = Val(:bad_broyden)) in test/Core/23_test_problems_tests__item7.jl.

-skip_tests[alg_ops[4]] = [1]
+skip_tests[alg_ops[4]] = [1, 8]

No source change.

Why

Problem #8 (Brown almost linear) on algorithm #4 is the same knife-edge case as problem #1 (Generalized Rosenbrock), which #1108 already moved from broken_tests into skip_tests for this exact algorithm. Problem #8 was never moved.

74405d3 (#1051) removed 8 from that algorithm's broken list ([5, 6, 8, 11] → [1, 5, 6, 11]), validated in an environment 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.

Per #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 #8 was still marked broken. So neither an expected pass nor @test_broken is a stable expectation across the runner pool, which is precisely the case the harness's skip_tests mechanism exists for.

Relationship to #1101

This supersedes #1101, which is now closed. That PR attempted a solver-side fix: a displacement limiter in lib/NonlinearSolveQuasiNewton/src/broyden.jl armed by the heuristic norm(du) > 10 * max(norm(u), 1). That changes unglobalized bad-Broyden trajectories for every user whose first step trips the threshold, in order to push one marginal robustness-matrix entry onto the convergent side on one class of hardware — and it does not address the underlying machine dependence, so the next BLAS change can move a different problem across the same cliff. Unglobalized bad Broyden is genuinely unstable on this problem; recording that in the test matrix is the honest expectation.

Local validation

Julia 1.12.6, test/Core/23_test_problems_tests__item7.jl run directly:

Tree Result
master (81450a1c8) 95 pass / 20 broken / 115 total
this branch 94 pass / 21 broken / 115 total

This machine is one where #8 converges (as recorded in #1096), so exactly one test moves from pass to skip; nothing else changes. (@test_skip is reported in the Broken column.)

Runic 1.7.0 --check on the modified file and git diff --check both exit 0.

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 SciML#1108 already moved into
skip_tests. SciML#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 SciML#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: Chris Rackauckas <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 28, 2026 08:38
@ChrisRackauckas
ChrisRackauckas merged commit cb25573 into SciML:master Jul 28, 2026
67 of 71 checks passed
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.

2 participants