Repository navigation
fix(ci): require every file format in the release wheels and drop the dead Boost download - #543
Conversation
vjaganat90
left a comment
There was a problem hiding this comment.
Blocking
- The conda-forge Windows packages of 0.12.1 are Debug builds too, but the docs name only 0.11.0 and 0.12.0 (README.md:37, installation.rst:94).
- conda-forge published 0.12.1 for win-64 on 2026-11-10, with the same build hashes as 0.12.0. The
backend.cp312-win_amd64.pydofnyxus-0.12.1-py312h06d9d7a_0(CPU) importsMSVCP140D.dll,VCRUNTIME140D.dll,VCRUNTIME140_1D.dllanducrtbased.dll, the same set as 0.12.0's. - As written, a Windows user on 0.12.1, the current release, reads that their package needs no Visual Studio.
- Fix: "0.11.0, 0.12.0 and 0.12.1" in both places, and in item 2 of "What the maintainers need to do".
- conda-forge published 0.12.1 for win-64 on 2026-11-10, with the same build hashes as 0.12.0. The
The rest matches the 0.12.1 packages. Its PyPI Windows wheel bundles blosc, zlib, Arrow, Parquet and DCMTK, so "the nyxus Windows wheels of 0.12.0 and later read both" holds.
| On Windows, the PyPI wheels do not read OME-Zarr or compressed NIfTI (`.nii.gz`), and the | ||
| conda-forge packages of 0.11.0 need Visual Studio installed (they were built in Debug mode). | ||
| On Windows, the PyPI wheels older than 0.12.0 do not read OME-Zarr or compressed NIfTI | ||
| (`.nii.gz`), and the conda-forge packages of 0.11.0 and 0.12.0 need Visual Studio installed (they |
There was a problem hiding this comment.
Blocking (1 in the review): the conda-forge Windows packages of 0.12.1 import the debug runtime too (MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, ucrtbased.dll). Please name 0.12.1 here as well.
There was a problem hiding this comment.
Fixed The README now names 0.11.0, 0.12.0 and 0.12.1 as the conda-forge Windows packages that need Visual Studio. Done in 2951353.
|
|
||
| The conda-forge Windows packages of 0.11.0 were built in Debug mode: their extension module | ||
| imports the Visual Studio debug runtime (``MSVCP140D.dll``, ``VCRUNTIME140D.dll``, | ||
| The conda-forge Windows packages of 0.11.0 and 0.12.0 were built in Debug mode: their extension |
There was a problem hiding this comment.
Blocking (1 in the review): the conda-forge Windows packages of 0.12.1 import the debug runtime too (MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, ucrtbased.dll). Please name 0.12.1 here as well.
There was a problem hiding this comment.
Fixed README.md, installation.rst and item 2 of "What the maintainers need to do" now name 0.11.0, 0.12.0 and 0.12.1. I checked the 0.12.1 win-64 packages first: py312h06d9d7a_0 (CPU) and py312h44715ad_0 (CUDA) both import MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll and ucrtbased.dll. Done in 2951353.
|
Fixed README.md, installation.rst and item 2 of "What the maintainers need to do" now name 0.11.0, 0.12.0 and 0.12.1. I checked the 0.12.1 win-64 packages first: |
vjaganat90
left a comment
There was a problem hiding this comment.
LGTM. 2951353 settles my blocking item: README.md:37, docs/source/installation.rst:94 and item 2 of the maintainer list now name 0.12.1. The 0.12.1 win-64 CPU, CUDA 12 and CUDA 13 packages (py312h06d9d7a_0, py312h44715ad_0, py312h93cbb70_0) all import MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll and ucrtbased.dll, as the commit says.
A single-configuration generator now builds Release when no build type is given. The default is set before project(), where MSVC would otherwise preset the cache entry to Debug. The Windows CI checks it with a Ninja configure. publish_pypi.yml builds a source distribution, installs it in the manylinux image and uploads it after the wheels. install_prereq_win.bat no longer downloads Boost. The URL returned 404 and the 0.12.0 Windows wheels were built without it, with OME-Zarr, Arrow and DICOM present.
The wheel jobs are continue-on-error, so the sdist job ran and uploaded whatever they produced. Since pip prefers a new version's sdist over an older wheel, a missing wheel would have turned into a source build. ci-utils/check_wheel_grid.py now compares PyPI's files with the 20-wheel grid and stops the upload when a cell is absent. The release and PR wheel builds pass the new REQUIRE_ALLEXTRAS option, which fails the configure when OME-Zarr, Arrow or DICOM support would be dropped. The Release default also applies on CMake 3.20 and 3.21 when CMAKE_BUILD_TYPE is set in the environment, since those versions ignore that variable. The Windows CI checks this and the REQUIRE_ALLEXTRAS refusal with real configures.
…extras A release publishes its source distribution only once all its wheels are on PyPI, so a release with a missing wheel has none. REQUIRE_ALLEXTRAS is passed by the nyxus wheel builds, not by the nyxus-cuda11x and nyxus-cuda12x ones.
The PyPI Windows wheels read OME-Zarr and .nii.gz since 0.12.0, the conda-forge Windows packages of 0.12.0 are Debug builds like those of 0.11.0, and 0.12.1 was published without a source distribution.
A Read the Docs build of a release tag says it describes that release. Every other build says it describes the development version on main, newer than the latest release that CITATION.cff records.
The conda-forge win-64 packages of 0.12.1, CPU and CUDA, import the Visual Studio debug runtime (MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, ucrtbased.dll), as those of 0.11.0 and 0.12.0 do.
2951353 to
c9d085e
Compare
| popd | ||
|
|
||
| if "%BUILD_Z5_DEP%" == "1" ( | ||
| for /l %%x in (1, 1, 5) do ( |
There was a problem hiding this comment.
why are we dropping these instead of updating the URL?
There was a problem hiding this comment.
Answered The URL mixes two versions (release/1.79.0/source/boost_1_88_0.zip) and returns 404, so the 0.12.0 and 0.12.1 Windows wheels were already built without Boost, and they read OME-Zarr and .nii.gz. z5 3.0.1 and Arrow 20 build without it, so a corrected URL would add a full Boost build for no change in the wheels.
| @@ -0,0 +1,129 @@ | |||
| """A release's source distribution reaches PyPI only beside its full wheel grid. | |||
There was a problem hiding this comment.
I do not think this kind of testing is necessary ... this is over-eager testing of the CI code not the actual nyxus testing.
There was a problem hiding this comment.
Fixed Removed the test file and its check_test_names.py entry in 7809265. The grid check was run against PyPI by hand instead: 0.12.1 passes, and 0.12.0 fails naming its four macOS arm64 wheels.
| - name: Check that a Ninja configure defaults to Release | ||
| shell: bash -l {0} | ||
| run: | | ||
| set -e | ||
| cmake -S . -B build-default-type -G Ninja -DCMAKE_CXX_COMPILER=cl -DCMAKE_PREFIX_PATH=$CONDA_PREFIX/Library | ||
| grep '^CMAKE_BUILD_TYPE:STRING=Release$' build-default-type/CMakeCache.txt | ||
|
|
||
| - name: Check that CMake older than 3.22 ignores a build type in the environment | ||
| shell: bash -l {0} | ||
| run: | | ||
| set -e | ||
| python -m pip install --target "$RUNNER_TEMP/cmake-3.21" cmake==3.21.4 | ||
| CMAKE_BUILD_TYPE=RelWithDebInfo "$RUNNER_TEMP/cmake-3.21/cmake/data/bin/cmake" -S . -B build-old-cmake -G Ninja -DCMAKE_CXX_COMPILER=cl -DCMAKE_PREFIX_PATH=$CONDA_PREFIX/Library | ||
| grep '^CMAKE_BUILD_TYPE:STRING=Release$' build-old-cmake/CMakeCache.txt | ||
|
|
||
| - name: Check that REQUIRE_ALLEXTRAS refuses a dropped part | ||
| shell: bash -l {0} | ||
| run: | | ||
| set -e | ||
| if cmake -S . -B build-required-extras -G Ninja -DCMAKE_CXX_COMPILER=cl -DCMAKE_PREFIX_PATH=$CONDA_PREFIX/Library -DALLEXTRAS=ON -DREQUIRE_ALLEXTRAS=ON -DCMAKE_DISABLE_FIND_PACKAGE_Arrow=ON > required-extras.log 2>&1; then | ||
| cat required-extras.log | ||
| exit 1 | ||
| fi | ||
| cat required-extras.log | ||
| grep 'these parts are off: USE_ARROW' required-extras.log | ||
|
|
There was a problem hiding this comment.
I don't think by default we are using Ninja as a genetor, can you please verify? This seems moot here.
There was a problem hiding this comment.
Fixed You're right: setup.py passes -A x64, so the wheels use the Visual Studio generator, and only explicit Ninja or NMake builds such as the feedstock come out Debug. 7809265 drops the two build-type checks and the CMakeLists change, so the build type is as on main, and the docs again say to pass -DCMAKE_BUILD_TYPE=Release with Ninja.
The release no longer builds or uploads a source distribution. The wheel-grid check stays as its own wheel_grid job in publish_pypi.yml: it runs after every wheel job, checks the version the wheels were built as, and turns the run red with the missing wheels named. It publishes nothing. check_wheel_grid.py takes the version as its argument and refuses an empty one. The installation page states again that PyPI has no source distribution.
The wheels on Windows build with the Visual Studio generator, which the build-type default never touched; only explicit Ninja or NMake builds, such as the conda-forge feedstock, come out Debug, and the feedstock is fixed there. CMakeLists.txt keeps main's build-type fallback, and the Windows workflow no longer checks the Ninja default. CLAUDE.md, CONTRIBUTING.md and the CMake options table again say to pass -DCMAKE_BUILD_TYPE=Release with Ninja. test_release_wheel_grid_mechanics.py tested the release workflows rather than Nyxus, so it is removed with its check_test_names.py entry.
| conda install mamba | ||
| mamba install --file ${{github.workspace}}/ci-utils/envs/conda_cpp.txt | ||
|
|
||
| - name: Check that REQUIRE_ALLEXTRAS refuses a dropped part |
There was a problem hiding this comment.
I do not think this is also necessary here. Since this workflow exercises tests cases with various input types, they will fail if Z5 / Tiff / Arrow is missing. If you check the log you will see that even when boost was not installed, Arrow installation step installed boost and the tests ran fine.
There was a problem hiding this comment.
Fixed Dropped the step in 9d63924. I kept -DREQUIRE_ALLEXTRAS=ON in the release wheel jobs, because no test in tests/python reads OME-Zarr or .nii.gz, so a wheel without Z5 would still pass its test run, as the 0.9.3 and 0.11.0 Windows wheels did.
| @@ -0,0 +1,77 @@ | |||
| #!/usr/bin/env python3 | |||
There was a problem hiding this comment.
I would insist on dropping this test. This is just exercising CI code testing,
There was a problem hiding this comment.
Fixed Removed check_wheel_grid.py and the wheel_grid job from publish_pypi.yml in 9d63924. The PR no longer adds anything that checks the CI itself.
The wheel_grid job of publish_pypi.yml and ci-utils/check_wheel_grid.py are removed. The Windows test workflow no longer configures a build with Arrow disabled to see REQUIRE_ALLEXTRAS refuse it; the release wheel jobs still pass -DREQUIRE_ALLEXTRAS=ON.
Summary
Fixes the release problems that still hold on 0.12.1 and current
main. No change to the C++ or Python sources of the library.Closes #527.
Changes
Dropped formats. CMake drops OME-Zarr, Arrow or DICOM with a warning when their libraries are missing. A new
REQUIRE_ALLEXTRASoption turns that into a configure error. The CPU wheel jobs ofpublish_pypi.ymlandbuild_wheels.ymlpass it. The wheel jobs' own test run does not catch a dropped part: no test intests/pythonreads OME-Zarr or.nii.gz, which is how the 0.9.3 and 0.11.0 Windows wheels shipped without them.Windows prerequisites.
install_prereq_win.batno longer downloads Boost. The URL returns 404. In the 0.12.0 release run the download failed, everyvalidate_prereqs.shcheck passed, and the wheels built with no Boost download. The 0.12.0 Windows wheel reads OME-Zarr and.nii.gzcorrectly. Correcting the URL would add a full Boost build to a configuration that already works.Build type. Unchanged. The Windows wheels build with the Visual Studio generator (
setup.pypasses-A x64), which has no build-type default to get wrong. Only explicit Ninja or NMake configures come outDebug, the conda-forge feedstock among them, and that is fixed in the feedstock by conda-forge/nyxus-feedstock#86. #524 stays open.Docs. The installation, supported formats and troubleshooting pages and
README.mdnow match the above and the packages of 0.12.0 and 0.12.1. The index page states the version it describes: a Read the Docs build of a release tag describes that release, and every other build the development version newer than the release inCITATION.cff.Findings that need no change here
3MEAN51.750977,3MAX99).nyxus-cuda12xWindows jobs of the 0.12.0 run built their wheels and failed only at upload, with the 403 that fix(ci): name the CUDA wheels nyxus-cuda11x / nyxus-cuda12x again #540 addresses.continue-on-error, so a release can lack wheels with its run green: 0.11.0 lacks the cp313 Linux x86_64 wheel and 0.12.0 the four macOS arm64 wheels. 0.12.1 has all 20. Nothing in this PR checks for it.Testing
pytest tests/python/349 passed, 1 skipped, on the branch rebased onto currentmain.-DALLEXTRAS=ON -DREQUIRE_ALLEXTRAS=ON: all parts present succeeds; Arrow disabled stops withthese parts are off: USE_ARROW, and without the option configures with Arrow off.sphinx -Wbuilds the docs both as a tag build and as a branch build, each with its own version sentence.workflow_dispatchon 4e350e5: inpublish_pypi.ymlthe Linux x86_64, Linux aarch64, Windows and macOS x86_64 prereqs and wheels build withREQUIRE_ALLEXTRAS, and each wheel job stops only at the upload, since a fork has no PyPI credentials. On the dispatch of 8b78fbf the arm64 prereqs and three of the four arm64 wheels built; hosted macOS arm64 runners were not always available.What the maintainers need to do
nyxus-cuda12xWindows wheels since 0.9.3.recipe/bld.batkeeps conda-build'sCMAKE_ARGSand passes-DCMAKE_BUILD_TYPE=Release) and bumps the build number to rebuild 0.12.1. The conda-forge Windows packages of 0.11.0, 0.12.0 and 0.12.1, CPU and CUDA alike, still import the debug runtime (MSVCP140D.dll,VCRUNTIME140D.dll,ucrtbased.dll). The recipe'ssetup.pyand CUDA 13 patches need refreshing when it moves to a newer release.