Skip to content

Fix lifted linear expression expectation on Julia 1.13 - #261

Merged
odow merged 1 commit into
lanl-ansi:masterfrom
blegat:fix-expr
Nov 19, 2026
Merged

odow merged 1 commit into
lanl-ansi:masterfrom
blegat:fix-expr

Conversation

@blegat

@blegat blegat commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Match the Float64 coefficient emitted by the nonlinear evaluator when checking the lifted constraint. Julia 1.13 distinguishes integer and floating-point literals in Expr equality.

Fixes the Alpine solver-test failure in MathOptInterface CI: https://github.com/jump-dev/MathOptInterface.jl/actions/runs/43738445024/job/133995220267

Match the Float64 coefficient emitted by the nonlinear evaluator when
checking the lifted constraint. Julia 1.13 distinguishes integer and
floating-point literals in Expr equality.

Fixes the Alpine solver-test failure in MathOptInterface CI:
https://github.com/jump-dev/MathOptInterface.jl/actions/runs/43738445024/job/133995220267

Validation: reproduced the original failure, ran test/test_expression.jl
with the test environment, confirmed the changed assertion executes with
temporary line markers, and checked CI's JuliaFormatter 1.x directories.
@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 87.92%. Comparing base (a1849dd) to head (c8d8d37).
⚠️ Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #261      +/-   ##
==========================================
- Coverage   88.84%   87.92%   -0.92%     
==========================================
  Files          16       15       -1     
  Lines        2975     2966       -9     
==========================================
- Hits         2643     2608      -35     
- Misses        332      358      +26     

☔ 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.

@odow
odow merged commit 4af2625 into lanl-ansi:master Nov 19, 2026
6 of 7 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