Repository navigation
macOS CI: Intel publish compiles against the deps' turbojpeg.h; recipe lanes retry like package lanes - #893
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.continue-on-error, so every run still shows green.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.cppcompiled against thatturbojpeg.h. In 3.2,tj3Initis a macro fortj3InitVersion.tj3InitVersion./opt/homebrew, which clang does not search, so arm64 links fine.Fix.
brew unlink jpeg-turbobefore Configure./usr/local/include/turbojpeg.his 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.hlinks to Homebrew'sCellar/jpeg-turbo/3.2.0and has#define tj3Init(initType) tj3InitVersion(...).-Honmedia_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.nm -ulists_tj3Initand 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/includethe 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:
AsyncCalls.AS1_OtherProcessesStepWhileOneIsParked(Debug)TfOverlayTasks.CooperativeTaskSlicesAcrossFramesAndMatchesCompute(Debug)AppTest.ThreadPoolStateConsistencyStateTransportIpcTest.ThreeEndpointFanOutChange.
CVC_CTEST_REPEAT, a ctest--repeatmode, the same way they takeCVC_CTEST_EXCLUDE.until-pass:3.A test that fails 3 times in a row still fails the lane.
Testing.
bash -n build.sh.--repeat until-pass:3.