Skip to content

fix(ci): require every file format in the release wheels and drop the dead Boost download - #543

Merged
sameeul merged 9 commits into
PolusAI:mainfrom
darkclad:main-release-ci
Nov 17, 2026
Merged

sameeul merged 9 commits into
PolusAI:mainfrom
darkclad:main-release-ci

Conversation

@darkclad

@darkclad darkclad commented Nov 9, 2026 •

Copy link
Copy Markdown

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_ALLEXTRAS option turns that into a configure error. The CPU wheel jobs of publish_pypi.yml and build_wheels.yml pass it. The wheel jobs' own test run does not catch a dropped part: no test in tests/python reads 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.bat no longer downloads Boost. The URL returns 404. In the 0.12.0 release run the download failed, every validate_prereqs.sh check passed, and the wheels built with no Boost download. The 0.12.0 Windows wheel reads OME-Zarr and .nii.gz correctly. 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.py passes -A x64), which has no build-type default to get wrong. Only explicit Ninja or NMake configures come out Debug, 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.md now 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 in CITATION.cff.

Findings that need no change here

  • The README 3D quick start passes three runs out of three on the 0.12.0 Windows wheel (3MEAN 51.750977, 3MAX 99).
  • The nyxus-cuda12x Windows 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.
  • The wheel jobs are 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

  • Windows: pytest tests/python/ 349 passed, 1 skipped, on the branch rebased onto current main.
  • Real configures with -DALLEXTRAS=ON -DREQUIRE_ALLEXTRAS=ON: all parts present succeeds; Arrow disabled stops with these parts are off: USE_ARROW, and without the option configures with Arrow off.
  • sphinx -W builds the docs both as a tag build and as a branch build, each with its own version sentence.
  • Fork workflow_dispatch on 4e350e5: in publish_pypi.yml the Linux x86_64, Linux aarch64, Windows and macOS x86_64 prereqs and wheels build with REQUIRE_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

  1. Cut the next release, and with fix(ci): name the CUDA wheels nyxus-cuda11x / nyxus-cuda12x again #540 merged it is the first with nyxus-cuda12x Windows wheels since 0.9.3.
  2. Merge Windows: build as Release (keep conda-build CMAKE_ARGS) conda-forge/nyxus-feedstock#86, which builds the Windows packages as Release (recipe/bld.bat keeps conda-build's CMAKE_ARGS and 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's setup.py and CUDA 13 patches need refreshing when it moves to a newer release.

@vjaganat90 vjaganat90 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking

  1. 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.pyd of nyxus-0.12.1-py312h06d9d7a_0 (CPU) imports MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll and ucrtbased.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".

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.

Comment thread README.md Outdated
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/source/installation.rst Outdated

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@darkclad

Copy link
Copy Markdown
Author

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.

@vjaganat90 vjaganat90 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Demian Vladi added 6 commits November 16, 2026 08:35
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.
popd

if "%BUILD_Z5_DEP%" == "1" (
for /l %%x in (1, 1, 5) do (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we dropping these instead of updating the URL?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think this kind of testing is necessary ... this is over-eager testing of the CI code not the actual nyxus testing.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +43 to +68
- 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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think by default we are using Ninja as a genetor, can you please verify? This seems moot here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@darkclad darkclad changed the title fix(build): default MSVC Ninja builds to Release and publish an sdist fix(build): default MSVC Ninja builds to Release and report missing release wheels Nov 16, 2026
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.
@darkclad darkclad changed the title fix(build): default MSVC Ninja builds to Release and report missing release wheels fix(ci): require every file format in the release wheels and report missing wheels Nov 16, 2026
conda install mamba
mamba install --file ${{github.workspace}}/ci-utils/envs/conda_cpp.txt

- name: Check that REQUIRE_ALLEXTRAS refuses a dropped part

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ci-utils/check_wheel_grid.py Outdated
@@ -0,0 +1,77 @@
#!/usr/bin/env python3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would insist on dropping this test. This is just exercising CI code testing,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@darkclad darkclad changed the title fix(ci): require every file format in the release wheels and report missing wheels fix(ci): require every file format in the release wheels and drop the dead Boost download Nov 17, 2026
@sameeul
sameeul merged commit 1900837 into PolusAI:main Nov 17, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): Windows wheels are built without OME-Zarr because the Boost URL returns 404

3 participants