From bb71c2bd9e438c605bd0cf48ce09ae06177665b1 Mon Sep 17 00:00:00 2001 From: Antonio Leblanc Date: Tue, 27 Oct 2026 13:34:11 -0300 Subject: [PATCH 1/2] ci(docker): skip unit tests in the builder stage, tests/ is not copied --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7bc291ec..06226c8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,13 +31,13 @@ COPY --link tools/ ./tools/ COPY --link src/ ./src/ # -march=native is off: this image is published and has to run on CPUs other -# than the builder's. The LFS check is off too: tests/ is not copied into this -# stage, so it could only fail. +# than the builder's. The LFS check and the unit tests are off too: tests/ is +# not copied into this stage, so they could only fail. # # Only libforefireL.so is carried into the runtime stage, and the wheel build # below compiles the core again on its own terms, so building the `forefire` # and ANN_test executables here as well would just be a wasted compile. -RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DFOREFIRE_NATIVE_ARCH=OFF -DFOREFIRE_CHECK_LFS=OFF \ +RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DFOREFIRE_NATIVE_ARCH=OFF -DFOREFIRE_CHECK_LFS=OFF -DFOREFIRE_BUILD_TESTS=OFF \ && cmake --build build -j"$(nproc)" --target forefireL COPY --link bindings/ ./bindings/ From 39727fddf7d7bf008953a7c462899725b4f085f6 Mon Sep 17 00:00:00 2001 From: Antonio Leblanc Date: Tue, 27 Oct 2026 14:23:44 -0300 Subject: [PATCH 2/2] ci(docker): copy third_party/ into the builder stage --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 06226c8c..8858f716 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,7 @@ COPY --link app/ ./app/ # tools/check_all_lfs.bash and references tools/runANN/ANNTest.cpp. COPY --link tools/ ./tools/ COPY --link src/ ./src/ +COPY --link third_party/ ./third_party/ # -march=native is off: this image is published and has to run on CPUs other # than the builder's. The LFS check and the unit tests are off too: tests/ is