Skip to content

macOS CI: Intel publish compiles against the deps' turbojpeg.h; recipe lanes retry like package lanes - #893

Merged
transfix merged 3 commits into
masterfrom
ci/macos-lanes
Oct 31, 2026
Merged

transfix merged 3 commits into
masterfrom
ci/macos-lanes

Conversation

@transfix

@transfix transfix commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Two of libcvc's recurring macOS-only CI failures. The contour-tree one is #886 and #891.

1. macOS Intel libcvc has not published since 3.7.1 (publish-cvcpkg)

Every build (…, macos-15-intel, macos, x86_64, true) row fails at link: "_tj3InitVersion", referenced from: cvc::jpeg_downscale(...) in media_rungs.cpp.o.

  • How often: 12 of 12 jobs, release and debug, on tags v3.7.1 to v3.7.4 and the 10-27 dispatch. v3.7.4 is run 40973574949, jobs 123799054549 and 123799054806.
  • Why nobody saw it: the rows are continue-on-error, so every run still shows green.
  • Since when: Admission hold: a late joiner's admit snapshot goes through its filter #796 linked turbojpeg into cvc. Before 3.7.0 the lane always failed at configure, because the catalog had no macos/x86_64 deps. So the newest Intel libcvc on cvcpkg.org is 3.7.0+cvc.2.

Cause. The image's Java and PHP tooling (openjdk, php/gd, libtiff, webp) pulls in Homebrew's jpeg-turbo 3.2.0. Homebrew links its headers into /usr/local/include, which Apple clang searches.

  • media_rungs.cpp compiled against that turbojpeg.h. In 3.2, tj3Init is a macro for tj3InitVersion.
  • It then linked the deps prefix's libjpeg-turbo 3.1.0+cvc.3, which has no tj3InitVersion.
  • I downloaded the catalog's macos x86_64 and arm64 libjpeg-turbo bundles. Both carry a matching 3.1.0 header and dylib.
  • arm64's Homebrew lives in /opt/homebrew, which clang does not search, so arm64 links fine.

Fix.

  • The Intel rows run brew unlink jpeg-turbo before Configure.
  • They fail if /usr/local/include/turbojpeg.h is still there.

Checked on the image (a throwaway workflow on branch debug/macos-intel-turbojpeg, run 41007705020; I'll delete the branch):

  • /usr/local/include/turbojpeg.h links to Homebrew's Cellar/jpeg-turbo/3.2.0 and has #define tj3Init(initType) tj3InitVersion(...).
  • -H on media_rungs.cpp, with the publish job's own compile command, shows /usr/local/include/turbojpeg.h. After the unlink it shows /Users/runner/libcvc-deps/include/turbojpeg.h.
  • libcvc 3.7.5 then links; nm -u lists _tj3Init and no _tj3InitVersion.

Not covered by this PR's CI. publish-cvcpkg runs only on tags and dispatches, so this PR's checks don't exercise it. The next tag or dispatch is the test.

Still possible. Homebrew's libtiff and webp are linked into /usr/local/include the same way. The prefix has its own tiff 4.7.0 and libwebp, so they could shadow those headers. Nothing has broken from it, because the versions are close.

2. Recipe lanes retry a failing test up to 3 times, as the package jobs do

recipe / <os> / <config> (ci-recipe.yml) runs the suite through the recipe's own ctest (cvcpkg/recipes/libcvc/build.sh, build.ps1) with no retry. ci.yml's package jobs pass --repeat until-pass:3, so one timing miss on a loaded hosted runner failed a recipe lane that the package lanes would have absorbed.

These macOS-only flakes turned the recipe lanes red; the Linux and Windows lanes were green in the same runs:

Test macOS recipe failures
AsyncCalls.AS1_OtherProcessesStepWhileOneIsParked (Debug) 2: runs 40223948695, 40591503057
TfOverlayTasks.CooperativeTaskSlicesAcrossFramesAndMatchesCompute (Debug) 3, before #871 fixed it
AppTest.ThreadPoolStateConsistency 1: run 38935714788
StateTransportIpcTest.ThreeEndpointFanOut 1: run 39066118329

Change.

  • Both recipe scripts take CVC_CTEST_REPEAT, a ctest --repeat mode, the same way they take CVC_CTEST_EXCLUDE.
  • ci-recipe.yml sets it to until-pass:3.
  • Unset (cvcpkg fleet builds, hand builds), ctest runs exactly as before.

A test that fails 3 times in a row still fails the lane.

Testing.

  • bash -n build.sh.
  • Ran both scripts' ctest argument building with a stub ctest: unset gives the same arguments as before; set adds --repeat until-pass:3.
  • This PR's recipe lanes run the change on all three platforms.

The recipe lanes ran ctest once (cvcpkg/recipes/libcvc/build.sh and
build.ps1), so one timing miss on a loaded hosted runner failed the lane,
while ci.yml's package jobs pass --repeat until-pass:3 and absorb it.
Since 10-16 that reddened recipe / macos-latest on AsyncCalls.AS1 (twice),
TfOverlayTasks (3 times, before #871), AppTest.ThreadPoolStateConsistency
and StateTransportIpcTest.ThreeEndpointFanOut, none of them failing on
Linux or Windows in the same runs.

Both recipe scripts take CVC_CTEST_REPEAT (a ctest --repeat mode) the
way they take CVC_CTEST_EXCLUDE, and ci-recipe.yml sets it to
until-pass:3. Unset, the recipes run ctest as before.
…peg.h

Every macos-15-intel row has failed to link since 3.7.1 (#796 linked
turbojpeg into cvc): "_tj3InitVersion", referenced from
cvc::jpeg_downscale in media_rungs.cpp.o. Tags v3.7.1 to v3.7.4 and the
10-27 dispatch failed, 12 of 12 jobs. The rows are continue-on-error, so
every run still showed green.

The image links Homebrew's jpeg-turbo 3.2.0 (pulled in by its openjdk,
php/gd, libtiff and webp) into /usr/local/include, which Apple clang
searches. media_rungs.cpp compiled against that turbojpeg.h, where 3.2
makes tj3Init a macro for tj3InitVersion. It then linked the deps
prefix's libjpeg-turbo 3.1.0+cvc.3, which has no tj3InitVersion. The
catalog's macos x86_64 and arm64 bundles both carry a matching 3.1.0
header and dylib.

The Intel rows now unlink Homebrew's jpeg-turbo before Configure, and
fail if /usr/local/include/turbojpeg.h is still there. Checked on the
image (diagnostic run 41007705020): `-H` showed media_rungs.cpp
including /usr/local/include/turbojpeg.h, then the deps prefix's after
the unlink, and libcvc 3.7.5 then linked, importing tj3Init.
@transfix transfix changed the title ci-recipe: a failing test runs up to 3 times, as in the package jobs macOS CI: Intel publish compiles against the deps' turbojpeg.h; recipe lanes retry like package lanes Oct 30, 2026
@transfix
transfix merged commit e781628 into master Oct 31, 2026
26 checks passed
@transfix
transfix deleted the ci/macos-lanes branch October 31, 2026 15:22
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