Skip to content

chore: Sync upstream 0.18.2 - #11

Merged
erickreutz merged 21 commits into
masterfrom
eric/sync-upstream-0.18.2
Nov 18, 2026
Merged

erickreutz merged 21 commits into
masterfrom
eric/sync-upstream-0.18.2

Conversation

@erickreutz

@erickreutz erickreutz commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Bring the Lugg fork current with upstream 0.18.2 (02e60cd). Upstream's 20 commits since the last sync (#9) add CP-SAT methods, release tooling and one install-time change. None of them touch the routing code that the dispatch planner uses.

  • 0.18.2 adds add_at_most_one, add_exactly_one, objective? and clear_objective to CpModel, plus more CpSolver and CpSolverSolutionCallback methods.
  • vendor.rb now passes exception: true to tar, so a failed extraction of the downloaded OR-Tools archive raises instead of letting the build continue.
  • The rest is CI and release tooling. The gem version moves from 0.18.0 to 0.18.2. The native library stays at OR-Tools 9.15.6755.

The merge had no conflicts. Upstream changed no file that carries the Lugg routing extensions (ext/or-tools/routing.cpp, lib/or_tools/routing_model.rb). Solution tracing, piecewise cumul costs, callback-aware GVL release, restoration time limits and check_limit are unchanged.

CHANGELOG.md now matches upstream exactly. The merge had kept the fork's set_cumul_var_piecewise_linear_cost entry under upstream's released 0.18.1 heading, but upstream shipped 0.18.1 without it (ankane#84 was declined). The README still documents the method, as it does the other fork extensions. A changelog identical to upstream keeps future syncs free of conflicts in that file.

The full native suite passes locally on macOS with Ruby 3.4.12 and Rice 4.12.0, including the fork's routing regressions. Merge this PR with a merge commit so upstream ancestry stays intact. Do not squash or rebase it. The API pin changes separately in https://github.com/lugg/api/pull/4662, which pins this branch's head commit.

@erickreutz
erickreutz marked this pull request as ready for review November 18, 2026 16:24
@erickreutz
erickreutz merged commit c137d52 into master Nov 18, 2026
6 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.

3 participants