Skip to content

CI: no Homebrew in the macOS libcvc builds (publish-cvcpkg, ci-recipe) - #1054

Merged
transfix merged 3 commits into
masterfrom
ci/publish-no-homebrew
Nov 8, 2026
Merged

transfix merged 3 commits into
masterfrom
ci/publish-no-homebrew

Conversation

@transfix

@transfix transfix commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Homebrew is banned: no brew, and no tools, headers or libraries from /usr/local or /opt/homebrew. This takes it out of the two places libcvc's workflows still used it: publish-cvcpkg.yml's macOS libcvc build and ci-recipe.yml's recipe lanes. ci.yml's package-macos and release.yml already build with cvcpkg's tools.

What changed in the build job

  • Build tools.
    • Before: the macOS configure and build ran the runner image's cmake and ninja, which are Homebrew's.
    • Now: ./.github/actions/cvcpkg-build-tools puts cvcpkg's cmake, ninja and pkg-config first on PATH before the macOS configure, and fails if one resolves anywhere else. The ari and ari-media steps use them too, so the late tools step now runs on Windows only.
  • No brew unlink jpeg-turbo. The step that unlinked Homebrew's jpeg-turbo on macOS Intel is gone, replaced by two guards:
    • The macOS configure passes -DCMAKE_IGNORE_PREFIX_PATH=/usr/local;/opt/homebrew, so no find_* call can resolve a Homebrew package.
    • The deps prefix's include dir is on the compile line and outranks clang's built-in /usr/local/include. Homebrew's 3.2 turbojpeg.h could only win when /usr/local itself reached the compile line, through Homebrew's pkg-config or CMake's default /usr/local search, and both are gone now.
  • A check after the build (Check the build used nothing from Homebrew [macOS]):
    • It fails if any header in ninja's deps log, or any library a staged dylib loads (otool -L), comes from a Homebrew prefix.
    • It prints which cmake, ninja, pkg-config and bash ran.

What changed in ci-recipe.yml

Verifying

A workflow_dispatch dry run (dry_run=true: build and pack, no publish, no artifact uploads) on this branch. What to look for:

  • macOS Intel: the row links without the unlink, i.e. no _tj3InitVersion undefined.
  • Both macOS rows: the new check passes and shows cvcpkg's tools.
  • Linux and Windows: unchanged.
  • ci-recipe.yml: the PR's own recipe lanes run the new step.

Dry run 42451044846 (on 26bb5e6, before the ci-recipe.yml commit):

  • Intel debug links: no _tj3InitVersion.
  • Every macOS row: the check passes. Its output: no header or library from /usr/local or /opt/homebrew; cmake, ninja and pkg-config from _temp/cvcpkg-tools/bin; bash is /bin/bash (3.2.57(1)-release).
  • Linux and Windows rows pass.
  • Intel release: passes as well. The run is green: 14 jobs passed, 4 skipped.

Not changed

  • bash. shell: bash ran the system /bin/bash 3.2 in the dry run, not Homebrew's bash 5, so no pin is needed.
  • git. actions/checkout runs the runner image's git, which on macOS is /opt/homebrew/bin/git. It only checks out the source and doesn't take part in the build.

Homebrew is not used at all. The publish job's macOS libcvc build used it in
two ways:

- it configured and built with the runner image's cmake and ninja, which on
  macOS are Homebrew's (cvcpkg's tools were installed only for the late ari
  steps);
- on macOS Intel it ran `brew unlink jpeg-turbo` to keep Homebrew's 3.2
  turbojpeg.h from shadowing the deps prefix's 3.1.0 (diagnostic run
  41007705020).

Now:

- cvcpkg's cmake, ninja and pkg-config go first on PATH before the macOS
  configure (./.github/actions/cvcpkg-build-tools), and the ari steps use them
  too. The late tools step is Windows-only.
- The macOS configure passes CMAKE_IGNORE_PREFIX_PATH=/usr/local;/opt/homebrew,
  so no find_* call can resolve a Homebrew package. The prefix's include dir
  outranks clang's built-in /usr/local/include, so with Homebrew's pkg-config
  and CMake searches gone, nothing can put a Homebrew header ahead of it.
- A step after the build fails on anything that still came from a Homebrew
  prefix: a header in ninja's deps log, or a library a staged dylib loads
  (otool -L). It also prints which cmake, ninja, pkg-config and bash ran.
transfix added a commit that referenced this pull request Nov 8, 2026
#1050 made the same two fixes this branch carried for the macOS recipe
lane (b5597c7, dfd8d0e, 7791c2e), and it is on master now. The merge
takes master's side of each, so this branch no longer changes CI:

- .github/workflows/ci-recipe.yml is master's: the packaged cvcpkg 2.5.12
  from cvcpkg.org's install.sh / install.ps1. The cvcpkg build-tools step
  (no Homebrew cmake) and the --fallback-to-source move to install-deps go
  to #1054, the PR that takes Homebrew out of CI.
- src/cvc/tests/ipc_socket_path.h and the five IPC tests are master's.
The recipe lanes took cmake and ninja from the runner image, which on
macOS is Homebrew's. They now run ./.github/actions/cvcpkg-build-tools
after installing cvcpkg, as the package and release jobs do, so cvcpkg's
cmake, ninja and pkg-config come first on PATH for the recipe's build
script and the job fails if one resolves anywhere else.

cvcpkg 2.5's `build` has no --fallback-to-source (it is an install and
install-deps flag; `build --no-deps` has no deps to build), so the
workflow_dispatch input now goes to install-deps.

This was on #1049 until #1050 fixed the rest of the macOS recipe lane on
master.
@transfix transfix changed the title publish-cvcpkg: no Homebrew in the macOS libcvc build CI: no Homebrew in the macOS libcvc builds (publish-cvcpkg, ci-recipe) Nov 8, 2026
transfix added a commit that referenced this pull request Nov 8, 2026
…1049)

WD0 and WD1 of ARIADNE_WORLDS.md: every room's world, and its look, now comes from a world
document.

- WD1: arisrv runs cvc://worlds/default.ari (the 20 m room), or cvc://worlds/large.ari with
  --scene large. Both live in the new src/cvc/ariadne/worlds/, installed beside components/.
  A --doc whose document has a scene: with nodes or lights is the world instead; --scene with
  such a --doc exits 2.
- The relay publishes the world as one revision (conference::write_room_world): every field and
  the soft removals first, scene.rev once and last. conference::room_world_from_scene turns a
  document's scene into what the room's wire holds: background, chrome, shadows, every light
  (rigs included), and each top-level plane, box, sphere or mesh-by-URI node with its fit:,
  transform and plain material. What it leaves out is warned about at start-up. Every body is
  published as a static (server-dynamic entities are WD3's); physics: waits for the headless
  world runtime (L0, section 14).
- The look is the world's (Q1). The three_point rig and its shadows move from
  conference_roster.ari into the world document. The wire gains the rig's tuning knobs (stage,
  key, fill, back, warmth, environment, ambient, wash, and #1047's sun) under
  scene.env.lights.<id>, and scene.env.shadows.interval.
- default_world() and large_world() are C++ twins of the two documents, seeded when the world
  file can't be found; StockWorldsMatchTheirTwins pins each pair to the same leaves.
- ServerDocument::read() keeps the parsed scene, so the world is published before the
  document's init: runs.
- WD0: --set comes after the world and the room's policies, so it overrides them, but before a
  server document's init:, so ariadne.limits.* still bound init:.
- Tests: RoomSceneTest.RigKnobsRoundTrip, RoomWorldIsOneRevision,
  RoomWorldFromSceneCarriesWhatTheWireHolds, StockWorldsMatchTheirTwins; ServerDocumentTest
  checks read() keeps the scene; ctests arisrv_world_from_doc, arisrv_world_doc_and_scene,
  arisrv_set_after_world.
- No CI change: #1050 fixed the macOS recipe lane on master, and the merge of master takes its
  side. The recipe lanes' Homebrew-free build tools are #1054's.
@transfix
transfix merged commit 04b72a3 into master Nov 8, 2026
52 of 57 checks passed
@transfix
transfix deleted the ci/publish-no-homebrew branch November 8, 2026 19:16
transfix added a commit that referenced this pull request Nov 9, 2026
encode() named its temp file from std::hash<std::thread::id> of the
calling thread alone. ctest runs each case in its own process, several
at once under -j, and on macOS the main thread's pthread_t lives in the
dyld shared cache at the same address in every process for a boot, so
every test process picked the same file. Concurrent cases wrote, read
and removed each other's file and decoding saw "png: no image data"
(MediaDecode.* on #1054's macOS Release recipe job).

Name the file from the process id plus a per-process atomic call
counter, with the CVC_GETPID() macro the hdf5/utility/volume_io tests
already use. The file is still closed before the remove for Windows.
transfix added a commit to cy-pca/cvcpkg that referenced this pull request Nov 9, 2026
…rm (#589)

Cutting a release ended at the recipes/cvcpkg bump. The releases since
2.5.2 then populated the package for linux, freebsd and windows x86_64
only: macOS (arm64, x86_64) and linux/arm64 have no builders and only
build through macos-build.yml / linux-arm-build.yml, which nobody
dispatched, so the registry still serves cvcpkg 2.5.1+cvc.3 there.

A pinned install.sh on those platforms (libcvc's CI pins 2.5.12) falls
back to the GitHub release's binary, and GitHub Releases' 504s have
failed libcvc's macOS jobs (transfix/libcvc#1054, #1090).

Step 7 gives the two dispatches that cover every platform the installers
serve, and a loop that checks each platform's lookup. macos-recipe-check
and linux-arm-recipe-check built and packed cvcpkg 2.5.12 on macos-latest,
macos-15-intel and ubuntu-22.04-arm from master (runs 42667712224,
42667723009, 42667730689).
transfix added a commit that referenced this pull request Nov 9, 2026
macOS jobs install the cvcpkg CLI from the cvcpkg-v2.5.12 GitHub release,
because the registry's newest macOS (and linux/arm64) cvcpkg package is
2.5.1+cvc.3. GitHub Releases answers 504 for minutes at a time, and the
installers do not retry, so #1090 lost recipe / macos-latest / Release and
package-macos / libcvc-release-grpc-static to one download, and #1054 lost
jobs the same way.

The action now downloads install.sh / install.ps1 to a file and runs it up
to five times, waiting 20, 40, 60 and 90 s between attempts (3.5 minutes).
On Windows the script runs as a child pwsh, since install.ps1 ends a failure
with `exit 1`, which under `irm | iex` ends the step instead of the attempt.

The description now says which platforms the registry covers at 2.5.12.
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