Skip to content

build(cef): pin macOS to the 8078 archives (#2418) - #2994

Merged
zackees merged 2 commits into
masterfrom
infra/2418-cef8078-macos-pin
Oct 30, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2418-cef8078-macos-pin

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

Moves the two macOS CEF targets from 7871 (Chromium 150, end of extended support) to 8078 (Chromium 156), the archives obs-rust/cef publishes on the mirror. Closes the pin half of #2418; the build half landed earlier.

RED

fcd0945cc — ci/test_cef_pin.py holds the macOS targets to the same 8078 floor and mirror URL the Linux pin already meets, and asserts cmake/common/buildspec_common.cmake honours the per-platform versions / releases overrides:

uv run --no-project python -m unittest ci.test_cef_pin
FAILED (failures=3)
  macos-arm64: 7871 not greater than or equal to 8078
  macos-x86_64: 7871 not greater than or equal to 8078
  'versions ${platform}' not found in cmake/common/buildspec_common.cmake

GREEN

2649a8fcd:

  • cmake/common/buildspec_common.cmake reads versions.<platform> and releases.<platform> with a fallback to version / baseUrl — the same overrides .github/scripts/utils.zsh/setup_ubuntu already applies for Linux. The release tag replaces baseUrl's last segment, so a target can name a newer branch than version does.
  • CMakePresets.json pins macos-arm64 and macos-x86_64 to 8078 with the 8078 release's digests.
cd ci && uv run --no-project python -m unittest test_cef_pin test_cef_support
Ran 11 tests ... OK

https://github.com/obs-rust/cef/releases/download/8078/cef_binary_8078_macos_arm64.tar.xz  -> 200
https://github.com/obs-rust/cef/releases/download/8078/cef_binary_8078_macos_x86_64.tar.xz -> 200

The hashes are the digests GitHub reports for those assets (gh api repos/obs-rust/cef/releases/tags/8078): 2ddd78dd…f95cb (arm64), 75281c86…539d0 (x86_64) — the same values @nathan-v posted with the archives.

What this does not cover

Windows x64/arm64 and ubuntu-aarch64 keep 7871, so ci/cef_support.py still fails on those three pins. That is #2417 and the Linux aarch64 slice (#1864), not a regression here — the scheduled CEF Chromium Support 🌐 job goes from five stale pins to three.

Validation note

Local ./lint cannot pass on this host for an unrelated reason: ci/test_check_changes.py fails with git: command not found inside its sandboxed PATH on a clean tree too (I re-ran it with this PR's changes stashed: same failure). PR CI is the gate. The macOS build lane runs with ENABLE_BROWSER=true, so it downloads and extracts these archives — that is the end-to-end check for the pin.

Refs #2418, #1864, #1092

RED: the macOS targets still resolve to 7871 in CMakePresets.json, and
cmake/common/buildspec_common.cmake ignores the per-platform "versions" /
"releases" overrides that setup_ubuntu already honours, so macOS could not
move to the 8078 archives obs-rust publishes on the mirror.

    uv run --no-project python -m unittest ci.test_cef_pin
    FAILED (failures=3)

Refs #2418
The 8078 macOS archives are on the obs-rust/cef mirror (built by @nathan-v,
their SHA-256s re-checked against the release digests), so the two macOS
targets can leave 7871:

- buildspec_common.cmake reads versions.<platform> / releases.<platform>
  with a fallback to version / baseUrl, the same overrides setup_ubuntu
  already applies for Linux. The release tag replaces baseUrl's last
  segment, so a target can name a newer branch than version does.
- CMakePresets.json pins macos-arm64 and macos-x86_64 to 8078 with the
  release's digests:
  arm64   2ddd78dd796af956728984747aaba4d859658354f00c6035be975b9f322f95cb
  x86_64  75281c862a59321bf83735926efeafed20e816cfa07fcccdf20a2d1748c539d0

GREEN: uv run --no-project python -m unittest ci.test_cef_pin (from ci/)
passes 11 tests, and both asset URLs answer 200.

Windows x64/arm64 and ubuntu-aarch64 keep 7871, so ci/cef_support.py still
fails on those three pins — that is #2417 and the Linux aarch64 slice, not
this change.

Refs #2418
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Validation run: scheduled.yaml dispatch 41004532761 on this branch (the same acceptance path #2938 used). PR scope deliberately does not build the OBS macOS app — ci_scope.py says macos=true, but Build 🧱 / macOS 🍏 runs only on schedule, dispatch, tags and the release gate (#436) — so the dispatch is what exercises the pin: ENABLE_BROWSER=true makes that lane download cef_binary_8078_macos_<arch>.tar.xz from the mirror and build against it.

Watching that lane; the PR stays out of the queue until it is green.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review: LGTM. RED→GREEN shown (ci/test_cef_pin.py 3 failures → OK); the CMake reader falls back to version/baseUrl when versions/releases lack the platform, so Windows/aarch64 paths are unchanged; hashes match the 8078 release digests. Pin-only change, no ledger line needed. The macOS app lane (schedule) is the end-to-end proof; queue on green.

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Coordinator: the scheduled.yaml dispatch on this branch (run 41004532761) fails both macOS builds and the analyze lane at configure, and it is this PR's change:

-- Downloading https://github.com/obs-rust/cef/releases/download/8078/cef_binary_8078_macos_arm64.tar.xz - done
Failed to find Chromium Embedded Framework version.
CMake Error ... Could NOT find CEF: Found unsuitable version "0.0.0", but required is at least "95" (found CEF_LIBRARY_RELEASE-NOTFOUND)

Likely cause: the obs-rust 8078 archive has a top-level directory (cef_binary_8078_macos_arm64/CMakeLists.txt, .../Release/), and buildspec_common.cmake extracts non-obs-studio deps into ${dependencies_dir}/${destination} (cef_destination = cef_binary_VERSION_macos_ARCH). That nests it as cef_binary_8078_macos_arm64/cef_binary_8078_macos_arm64/, so CEF_ROOT_DIR is one level too high. Either extract CEF into ${dependencies_dir} like obs-studio (when the archive carries its own top dir), or publish the macOS archives flat. A ci/ test asserting the extracted layout would catch it on PR CI, since PR lanes never build the macOS app. Not queuing until a dispatch shows the macOS lanes green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant