Skip to content

Update Mosek to 11.0.24 #23151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mwoehlke-kitware
Copy link
Contributor

@mwoehlke-kitware mwoehlke-kitware commented Jun 30, 2025

In order to allow wheels to use Mosek provided from PyPI without version support regressions, we need to use a newer version of Mosek (in particular, 11.x). Therefore, update Mosek to the latest version currently available.

Also remove support for x86 macOS, which is not supported by Mosek 11.

Toward #20296.


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added the release notes: fix This pull request contains fixes (no new features) label Jun 30, 2025
@rpoyner-tri
Copy link
Contributor

Assigning @jwnimmer-tri for first look or delegation.

Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 unresolved discussion, LGTM missing from assignee jwnimmer-tri(platform), needs at least two assigned reviewers


a discussion (no related file):
Working

@hongkai-dai and I will need to check whether TRI can use Mosek 11 yet.

@jwnimmer-tri
Copy link
Collaborator

@drake-jenkins-bot linux-jammy-clang-bazel-experimental-everything-release please
@drake-jenkins-bot linux-jammy-gcc-bazel-experimental-everything-debug please
@drake-jenkins-bot linux-jammy-gcc-cmake-experimental-everything-release please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-address-sanitizer please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-debug please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-leak-sanitizer please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-release please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-thread-sanitizer please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-undefined-behavior-sanitizer please
@drake-jenkins-bot linux-noble-clang-bazel-experimental-everything-valgrind-memcheck please
@drake-jenkins-bot linux-noble-gcc-bazel-experimental-everything-debug please
@drake-jenkins-bot linux-noble-gcc-bazel-experimental-everything-release please
@drake-jenkins-bot linux-noble-gcc-cmake-experimental-everything-debug please
@drake-jenkins-bot linux-noble-gcc-cmake-experimental-everything-release please

@drake-jenkins-bot linux-jammy-unprovisioned-gcc-cmake-experimental-packaging please
@drake-jenkins-bot linux-noble-unprovisioned-clang-bazel-experimental-everything-debug please
@drake-jenkins-bot linux-noble-unprovisioned-clang-bazel-experimental-everything-release please
@drake-jenkins-bot linux-noble-unprovisioned-gcc-bazel-experimental-everything-debug please
@drake-jenkins-bot linux-noble-unprovisioned-gcc-bazel-experimental-everything-release please
@drake-jenkins-bot linux-noble-unprovisioned-gcc-cmake-experimental-everything-debug please
@drake-jenkins-bot linux-noble-unprovisioned-gcc-cmake-experimental-everything-release please
@drake-jenkins-bot linux-noble-unprovisioned-gcc-cmake-experimental-packaging please
@drake-jenkins-bot linux-noble-unprovisioned-gcc-wheel-experimental-release please

@drake-jenkins-bot mac-arm-sequoia-clang-bazel-experimental-everything-release please
@drake-jenkins-bot mac-arm-sequoia-clang-cmake-experimental-everything-release please
@drake-jenkins-bot mac-arm-sonoma-clang-bazel-experimental-everything-release please
@drake-jenkins-bot mac-arm-sonoma-clang-cmake-experimental-everything-release please
@drake-jenkins-bot mac-arm-sonoma-clang-cmake-experimental-packaging please
@drake-jenkins-bot mac-arm-sonoma-clang-wheel-experimental-release please

Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: feature, pending CI and open discussions.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 3 unresolved discussions, needs at least two assigned reviewers


a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

Working

@hongkai-dai and I will need to check whether TRI can use Mosek 11 yet.

TRI's internal license server only offers v10 right now. We'll need to request an upgrade to v11.

@hongkai-dai should be hold this PR aside until TRI is upgraded, or should be temporarily drop support for MOSEK within TRI until we can upgrade?


a discussion (no related file):
See #20634 for a recent MOSEK upgrade. You'll note that we need to perl pie a bunch of MOSEK urls to point to a new versioned docs base url. Please make that change here, and also improve the upgrade instructions checklist (in repository.bzl) to have a item that mentions this.


tools/workspace/mosek/repository.bzl line 10 at r1 (raw file):

        # When the version is updated:
        # - tools/dynamic_analysis/tsan.supp may also need updating
        # - LICENSE.third_party may also need updating to match

@mwoehlke-kitware please compare LICENSE.third_party in this directory vs the website URL below, and update our copy if necessary (or just report back here if they are the same).

Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 4 unresolved discussions, needs at least two assigned reviewers


a discussion (no related file):
In mac-arm-sequoia-clang-bazel-experimental-everything-release, the following failures seem real:

[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/0, where GetParam() = (3, 4)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/1, where GetParam() = (4, 3)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/2, where GetParam() = (5, 5)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/7, where GetParam() = (1, 4)

In order to allow wheels to use Mosek provided from PyPI without version
support regressions, we need to use a newer version of Mosek (in
particular, 11.x). Therefore, update Mosek to the latest version
currently available.

Also remove support for x86 macOS, which is not supported by Mosek 11.
Copy link
Contributor Author

@mwoehlke-kitware mwoehlke-kitware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 4 unresolved discussions, needs at least two assigned reviewers


a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

See #20634 for a recent MOSEK upgrade. You'll note that we need to perl pie a bunch of MOSEK urls to point to a new versioned docs base url. Please make that change here, and also improve the upgrade instructions checklist (in repository.bzl) to have a item that mentions this.

(Perl? Why is Perl necessary?)

Done, partly.

Several links are to 'latest'. Should they be?


tools/workspace/mosek/repository.bzl line 10 at r1 (raw file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

@mwoehlke-kitware please compare LICENSE.third_party in this directory vs the website URL below, and update our copy if necessary (or just report back here if they are the same).

Done.

However... I notice that we aren't making any effort to preserve formatting from that page.

Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 11 of 11 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: 3 unresolved discussions, LGTM missing from assignee hongkai-dai


a discussion (no related file):

Previously, mwoehlke-kitware (Matthew Woehlke) wrote…

(Perl? Why is Perl necessary?)

Done, partly.

Several links are to 'latest'. Should they be?

I'll need to defer to +@hongkai-dai for whether those should remain "latest" or change to "11.0".

Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 3 unresolved discussions, LGTM missing from assignee hongkai-dai


a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

In mac-arm-sequoia-clang-bazel-experimental-everything-release, the following failures seem real:

[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/0, where GetParam() = (3, 4)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/1, where GetParam() = (4, 3)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/2, where GetParam() = (5, 5)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/7, where GetParam() = (1, 4)

In mac-arm-sonoma-clang-bazel-experimental-everything-release, a subset of those same failures occur:

[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/0, where GetParam() = (3, 4)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/1, where GetParam() = (4, 3)
[  FAILED  ] test/LorentzByLorentzSeparabilityTest.AddMatrixIsLorentzByLorentzSeparableConstraintExpressionChangeSize/7, where GetParam() = (1, 4)

@jwnimmer-tri
Copy link
Collaborator

(FYI all of my original jenkins bot suite has finally finished running now, and the only failures were the single test program that I previously noted in a review discussion.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: fix This pull request contains fixes (no new features)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants