Skip to content

MathOpt: python_math_opt_solver_test timeout on macOSย #4209

Closed

Description

@Mizux

Branches/Version

On main or v99bugfix (v9.10 branch)

OS

  • Mac Intel/M1,
  • Python [3.8,3.12]

Protocol:

git checkout main
git pull -r
cmake -S. -Bbuild -DBUILD_PYTHON=ON
cmake --build build -j
(cd build && ctest -R "python_math_opt_solver_test")

Expected:

Like on Linux

Test project /usr/local/google/home/corentinl/work/main/build
    Start 20: python_math_opt_solver_test
1/1 Test #20: python_math_opt_solver_test ......   Passed    0.47 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.51 sec

Observed:

Test project /usr/local/google/home/corentinl/work/main/build
    Start 20: python_math_opt_solver_test
# blocking...

Hypotheses

The GIL management is not done correctly (contrary to MPSolver or CP-SAT) making the callback test hang forever...

Activity

  1. added this to the v9.10 milestone on Apr 29, 2024
  2. rma350 commented on Apr 29, 2024

    @rma350

    this is on linux or mac?

  3. arnabanimesh commented on May 3, 2024

    @arnabanimesh
    Contributor
  4. changed the title [-][python ]MathOpt solver_test timeout[/-] [+][python ]MathOpt solver_test timeout on macOS[/+] on May 6, 2024
  5. modified the milestones: v9.10, v9.11 on Jun 3, 2024
  6. modified the milestones: v9.11, v10.0 on Aug 28, 2024
  7. assigned and unassigned on Oct 22, 2024
  8. modified the milestones: v10.0, v9.12 on Dec 2, 2024
  9. Mizux commented on Dec 2, 2024

    @Mizux
    CollaboratorAuthor

    seems fixed on main and v99bugfix

  10. rma350 commented on Dec 2, 2024

    @rma350

    Do we have any idea what changed? I did not change the code. Is the change caused by a different version of pybind11/absl/python/proto? Or just unknown?

  11. changed the title [-][python ]MathOpt solver_test timeout on macOS[/-] [+]MathOpt: python_math_opt_solver_test timeout on macOS[/+] on Dec 2, 2024
  12. Mizux commented on Dec 2, 2024

    @Mizux
    CollaboratorAuthor

    Do we have any idea what changed? I did not change the code. Is the change caused by a different version of pybind11/absl/python/proto? Or just unknown?

    a little bit of all of this + MathOpt do change since v9.10

    git diff --shortstat v9.10..main ortools/math_opt/ 
     151 files changed, 5394 insertions(+), 1000 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions