Skip to content

ci(publish): restore the windows-debug exclusion -- the bundle links Release CRT deps - #586

Merged
transfix merged 1 commit into
masterfrom
fix/publish-windows-debug-crt
Oct 8, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/publish-windows-debug-crt

Conversation

@transfix

@transfix transfix commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Problem

f37762a (2026-09-03) removed the windows-debug exclusion from publish-cvcpkg.yml's build matrix. Its premise was that the ten missing windows-debug dep bundles were being published. Two things went wrong:

  1. Those deps never landed. In catalog rev 5186, windows/x86_64/debug/shared covers 15 of libcvc's 34 windows deps. Missing: assimp, boost, cgal, freetype, gmp, grpc, gsl, hdf5, imagemagick, levmar, libiimod, libpng, libxml2, mpfr, protobuf, tiff, yaml, yaml-cpp, zlib. gmp and libiimod have no windows debug bundle at all, yanked or not.
  2. The Fetch step asked for build_type: Release on every row anyway, so even complete debug deps would not have been used.

Since then the lane has published 22 windows/x86_64/debug libcvc bundles (3.3.0+cvc.4 … 3.5.0+cvc.2), each a Debug (/MDd) libcvc linked against Release (/MD) DLLs.

Evidence

  • Publish run 37711516439, job build (debug, 311, windows-2022, windows, x86_64): it ran cvcpkg install-deps ... --config release --link shared (resolving for windows/x86_64/release/shared), configured with CMAKE_BUILD_TYPE=Debug and no CMAKE_MSVC_RUNTIME_LIBRARY (so /MDd), then packed and published libcvc-3.5.0+cvc.2-windows-x86_64-debug-shared.
  • That bundle, downloaded from the catalog (sha256 verified): bin/cvc.dll imports the debug CRT (MSVCP140D.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, ucrtbased.dll). It also imports boost_filesystem.dll, hdf5.dll, yaml-cpp.dll and assimp-vc143-mt.dll, which are the release names; the debug ones would be -gd, _D, d and -mtd.
  • The catalog's windows release boost_filesystem.dll, yaml-cpp.dll and hdf5.dll import MSVCP140.dll / VCRUNTIME140.dll.
  • cvc.dll imports 7 yaml-cpp entry points that take or return std::string, including YAML::Load(const std::string&), YAML::LoadFile, Node::Scalar() and node_data::set_scalar. std::string's layout differs between _ITERATOR_DEBUG_LEVEL 2 and 0, so .ari loading in a Windows Debug consumer is undefined behavior.

Fix

  • Restore the exclude: entry for config: debug on windows-2022. The comment records what went wrong and the exact condition for removing the exclusion. This also makes the existing comments at the CUDA jobs (build-cuda-windows, its fetch step) and in ci.yml's package-windows true again.
  • The Fetch step now asks for Debug deps on a windows debug row (Release elsewhere, unchanged). The row is excluded, so this changes nothing today. If the row is re-enabled before the deps exist, install-deps fails and Configure stops at find_package(libiimod), instead of silently shipping the mismatch again, which is what happened after f37762a.

Matrix expansion, simulated locally from the YAML: 10 → 9 build rows plus the 2 pycvc includes. Only debug × windows-2022 is dropped.

Validation

Dry run passed. publish-cvcpkg dry run (dry_run=true) on this branch, run 37832725777, took 52 min and concluded success.

Matrix. The build jobs are 11: 9 base rows plus 2 pycvc includes. Windows appears only as build (release, 311, windows-2022, …). The build (debug, 311, windows-2022, …) job from 37711516439 is gone.

Fetch expression. The Windows Release row logged cvcpkg install-deps … --platform windows --arch x86_64 --config release --link shared, so it still resolves Release deps.

Job results:

  • 7 non-experimental builds passed: linux release cp311/cp312/cp313, linux debug, macos-14 release, macos-14 debug and windows release.
  • 4 experimental continue-on-error lanes failed, the same as baseline. These are ubuntu-22.04-arm ×2 and macos-15-intel ×2, which fail the same way in 37711516439 and 37099666638, both of which concluded success.

Nothing was published:

  • push-recipes was skipped and every pack step logged dry-run: skipping … publish.
  • The catalog is still at rev 5186; the newest libcvc bundle is the 01:46Z one from 37711516439.

Follow-ups

  • Done after merge: the 22 mismatched windows/x86_64/debug/shared libcvc bundles (3.3.0+cvc.4 … 3.5.0+cvc.2) are yanked. Each yank was scoped with --platform windows --arch x86_64 --config debug --link shared and run with the cvc-org publisher token. A canary went first, and the catalog was checked before and after: every other libcvc variant is unchanged. Any of them can be restored with cvcpkg unyank and the same scope flags.
  • Proper windows-debug support means publishing the 19 missing windows-debug dep bundles on cy-pca/cvcpkg's build fleet, then removing the exclusion.

…Release CRT deps

f37762a (2026-09-03) removed the windows-debug exclusion from the
`build` matrix on the premise that the ten missing windows-debug dep
bundles were being published. They never landed, and the Fetch step
asked for build_type: Release on every row anyway, so the lane has
published a Debug libcvc linked against Release MSVC deps ever since:
libcvc 3.3.0+cvc.4 .. 3.5.0+cvc.2 (22 windows/x86_64/debug bundles).

Evidence:
- publish run 37711516439, job "build (debug, 311, windows-2022, ...)":
  install-deps ... --config release --link shared, then
  CMAKE_BUILD_TYPE=Debug (default /MDd), then packed + published
  libcvc-3.5.0+cvc.2-windows-x86_64-debug-shared.
- that bundle's bin/cvc.dll imports MSVCP140D.dll, VCRUNTIME140D.dll,
  ucrtbased.dll, and boost_filesystem.dll, hdf5.dll, yaml-cpp.dll; the
  catalog's windows release boost_filesystem.dll / yaml-cpp.dll import
  MSVCP140.dll. cvc.dll imports 7 yaml-cpp entry points taking or
  returning std::string (YAML::Load, Node::Scalar, ...), whose layout
  differs between _ITERATOR_DEBUG_LEVEL 2 and 0.
- catalog rev 5186: windows/x86_64/debug/shared covers 15 of libcvc's
  34 windows deps; gmp and libiimod have no windows debug bundle at all.

Restore the exclusion (making the comments at the CUDA jobs and in
ci.yml true again), and have the Fetch step ask for Debug deps on a
windows debug row, so re-enabling the row before those deps exist fails
at Configure instead of silently shipping the mismatch again. Linux and
macOS debug rows still fetch Release deps, which is sound there.
@transfix
transfix merged commit 481a83d into master Oct 8, 2026
27 of 31 checks passed
transfix added a commit that referenced this pull request Oct 9, 2026
Patch release carrying the fixes since 3.5.0: the cvcGL M_PI build fix
(#582), CameraController Map mode holding its pose (#584), the tag-release /
publish workflow fixes (#585, #586), macro-safe public headers after
<signal.h> / <sys/param.h> (#588), and the X11 `None` renames (#589:
ariadne::BorderShow::None -> Off, gl::Switch::None -> Off). Bumps
project(VERSION) 3.5.0 -> 3.5.1 and every cvcpkg recipe's upstream_version to
match (cvc_revision stays 1, per the recipe-version gate).
@transfix
transfix deleted the fix/publish-windows-debug-crt branch October 10, 2026 03:37
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.

1 participant