google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
10.77k stars 2.09k forks source link

[python ]MathOpt solver_test timeout on macOS #4209

Open Mizux opened 2 months ago

Mizux commented 2 months ago

Branches/Version

On main or v99bugfix (v9.10 branch)

OS

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

rma350 commented 2 months ago

this is on linux or mac?

arnabanimesh commented 2 months ago

@rma350 mac