Skip to content

Fix solver integration tests on Julia 1.13 - #737

Merged
blegat merged 3 commits into
masterfrom
bl/fix-solver-tests
Nov 17, 2026
Merged

blegat merged 3 commits into
masterfrom
bl/fix-solver-tests

Conversation

@blegat

@blegat blegat commented Nov 17, 2026

Copy link
Copy Markdown
Member

Clarabel has compatibility issues so let's use Hypatia

Compare reformulated constraints and objectives numerically instead of comparing
printed models, so matrix square-root rounding does not break quadform tests.
Use exact expected coefficients and request SCS tolerances tighter than the
assertions in the rotated SOC and exponential cone tests.

Update the test solver to Clarabel 0.11. Clarabel 0.10 reuses Cholesky storage
that aliases its factors on Julia 1.13 and consequently returns incorrect SDP
solutions. Clarabel 0.11 uses separate workspace for this computation.

Validation on Julia 1.13.3:
- test/test_atoms.jl: 2,229 assertions pass.
- test/test_constraints.jl: 135 assertions pass.
- SDP problem-depot cases: 357 assertions pass, with and without warm starts.
- JuliaFormatter 1.0.62 leaves no unstaged changes.

SDP validation uses local Clarabel commit 559e155, which replaces removed
OrderedSet indexing with first during PSD completion. That upstream fix needs
a release for fresh CI environments resolving OrderedCollections 2.
Replace Clarabel with released Hypatia 0.11 so the solver integration tests do not depend on an unmerged Clarabel compatibility fix. Restore the low-rank quantum-relative-entropy case previously excluded for Clarabel and remove the obsolete commented Clarabel BigFloat test.

Validation on Julia 1.13.3 with Hypatia 0.11.1: test/test_problem_depot.jl passes all 3,534 assertions (747 ordinary solves, 1,027 warm-start-path and printing assertions, 20 GLPK assertions, and 870 model-loading assertions for each of Float64 and BigFloat). Temporary line markers confirm both modified solver test functions execute. JuliaFormatter 1.0.62 leaves no unstaged diff.
@blegat blegat mentioned this pull request Nov 17, 2026
12 of 15 tasks
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.09%. Comparing base (92a0a0b) to head (d0f9a28).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #737      +/-   ##
==========================================
+ Coverage   98.05%   98.09%   +0.03%     
==========================================
  Files          88       88              
  Lines        5237     5240       +3     
==========================================
+ Hits         5135     5140       +5     
+ Misses        102      100       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blegat
blegat merged commit fc5c0b1 into master Nov 17, 2026
7 of 8 checks passed
@blegat
blegat deleted the bl/fix-solver-tests branch November 17, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant