Skip to content

Commit

Permalink
Merge branch 'v99bugfix' of github.com:google/or-tools into v99bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jul 18, 2024
2 parents 8ad1700 + 25016e3 commit 5b05c69
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/amd64_linux_cmake_coinor_off.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: swig -version
# Install .NET SDKs
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Check dotnet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amd64_linux_cmake_dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
sudo apt install -y swig
swig -version
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Check dotnet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amd64_linux_cmake_scip_off.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: swig -version
# Install .NET SDKs
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Check dotnet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amd64_macos_cmake_dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
brew install swig
swig -version
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Check dotnet
Expand Down
2 changes: 1 addition & 1 deletion bazel/docker/almalinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-openjdk

# Install Python
RUN dnf -y update \
&& dnf -y install python3-devel python3-pip \
&& dnf -y install python3-devel python3-pip python3-numpy \
&& dnf clean all \
&& rm -rf /var/cache/dnf

Expand Down
3 changes: 2 additions & 1 deletion bazel/docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV PATH=/usr/local/bin:$PATH
RUN pacman -Syu --noconfirm git base-devel bazel

# Install Python
RUN pacman -Syu --noconfirm python python-pip python-setuptools
RUN pacman -Syu --noconfirm python python-pip python-setuptools \
python-numpy python-pandas

FROM env AS devel
WORKDIR /home/project
Expand Down
2 changes: 2 additions & 0 deletions bazel/docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ FROM debian:latest AS env
RUN apt-get update -qq \
&& apt-get install -yq git wget curl libssl-dev build-essential \
&& apt-get install -yq python3-dev python3-pip python3-venv \
python3-numpy python3-pandas \
&& apt-get install -yq default-jdk \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install Bazel
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
ARG TARGETARCH=amd64
Expand Down
2 changes: 1 addition & 1 deletion bazel/docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-openjdk

# Install Python
RUN dnf -y update \
&& dnf -y install python3 python3-devel python3-pip \
&& dnf -y install python3 python3-devel python3-pip python3-numpy \
&& dnf clean all

FROM env AS devel
Expand Down
2 changes: 1 addition & 1 deletion bazel/docker/rockylinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-openjdk

# Install Python
RUN dnf -y update \
&& dnf -y install python3-devel python3-pip \
&& dnf -y install python3-devel python3-pip python3-numpy \
&& dnf clean all \
&& rm -rf /var/cache/dnf

Expand Down
1 change: 1 addition & 0 deletions bazel/docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -qq \
&& apt-get install -yq git wget curl libssl-dev build-essential \
&& apt-get install -yq python3-dev python3-pip python3-venv \
python3-numpy python3-pandas \
&& apt-get install -yq default-jdk \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down
6 changes: 6 additions & 0 deletions ortools/math_opt/solver_tests/ip_parameter_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ TEST_P(LargeInstanceIpParameterTest, IterationLimit) {
}

TEST_P(LargeInstanceIpParameterTest, NodeLimit) {
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns unimplemented";
}
ASSERT_OK_AND_ASSIGN(std::unique_ptr<Model> model, Load23588());
SolveParameters params = GetParam().base_parameters;
params.node_limit = 1;
Expand Down Expand Up @@ -1219,6 +1222,9 @@ TEST_P(LargeInstanceIpParameterTest, BestBoundLimit) {
}

TEST_P(LargeInstanceIpParameterTest, SolutionLimit) {
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns unimplemented";
}
ASSERT_OK_AND_ASSIGN(std::unique_ptr<Model> model, Load23588());
SolveParameters params = GetParam().base_parameters;
params.solution_limit = 1;
Expand Down
6 changes: 6 additions & 0 deletions ortools/math_opt/solver_tests/status_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ TEST_P(StatusTest, PrimalAndDualInfeasible) {
<< "Ignoring this test as GLPK gets stuck in presolve for IP's "
"with a primal-dual infeasible LP relaxation.";
}
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns error.";
}

Model model;
const Variable x1 =
Expand Down Expand Up @@ -373,6 +376,9 @@ TEST_P(StatusTest, IncompleteIpSolve) {
GTEST_SKIP() << "Ignoring this test as it is an IP-only test and requires "
"support for node_limit.";
}
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns MODEL_INVALID";
}
ASSERT_OK_AND_ASSIGN(const std::unique_ptr<const Model> model, Load23588());
SolveArguments args = {
.parameters = {.enable_output = true, .node_limit = 1}};
Expand Down
4 changes: 2 additions & 2 deletions ortools/math_opt/solver_tests/testdata/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
# limitations under the License.

exports_files([
"23588.mps",
"beavma.mps",
"23588.mps",
"beavma.mps",
])
1 change: 1 addition & 0 deletions ortools/math_opt/solvers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ cc_test(
name = "cp_sat_solver_test",
srcs = ["cp_sat_solver_test.cc"],
shard_count = 10,
timeout = "eternal",
deps = [
":cp_sat_solver",
"//ortools/base:gmock_main",
Expand Down

0 comments on commit 5b05c69

Please sign in to comment.