Skip to content

build(cef): strip the top-level directory from the 8078 macOS archives (#2418) - #3016

Merged
zackees merged 2 commits into
masterfrom
fix/2418-cef-archive-root
Oct 30, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2418-cef-archive-root

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

The CEF 8078 macOS archives keep a top-level cef_binary_8078_macos_arm64/ directory at the archive root; the 7871 archives and obs-deps are flat. buildspec_common.cmake extracted every CEF archive with DESTINATION .deps/<destination>, so after the #2994 pin macOS got

.deps/cef_binary_8078_macos_arm64/cef_binary_8078_macos_arm64/include/cef_version.h

and FindCEF reported CEF_LIBRARY_RELEASE-NOTFOUND / Found unsuitable version "0.0.0". Every macOS lane on master is red for this: Scheduled 41010694789 fails Analyze 🔬 / macOS 🍏, Build 🧱 / macOS 🍏 (arm64) and (x86_64), and the branch validation run on #2994 (41004532761) had already shown it.

RED

4f067ea11 adds ci/test_cef_archive_root.py, which extracts a synthetic nested archive and a synthetic flat one through buildspec_common.cmake and requires include/cef_version.h, the framework and .bazelversion under .deps/<destination>:

uv run --no-project python -m unittest test_cef_archive_root -v
FAILED (failures=3)
  CMake Error ... Unknown CMake command "_obs_extract_dependency".

GREEN

186f63cd4 adds _obs_extract_dependency: extract into .extract-<destination>, and when the staging directory holds exactly one entry and that entry is a directory, treat it as the payload wrapper and move its contents up. Flat archives keep their current layout; dotfiles (.bazelversion, .ninja_deps) are counted and moved. CEF goes through it; the obs-deps/Qt6 paths are unchanged.

uv run --no-project python -m unittest test_cef_archive_root -v
Ran 3 tests ... OK

Checked against the real archive, not only the fixture:

curl -sSLo cef878.tar.xz https://github.com/obs-rust/cef/releases/download/8078/cef_binary_8078_macos_arm64.tar.xz
sha256 2ddd78dd...f95cb  (the CMakePresets.json pin)
cmake -P  # _obs_extract_dependency cef878.tar.xz <dir> cef_binary_8078_macos_arm64
#include CEF_VERSION_MAJOR 156
Release/Chromium Embedded Framework.framework

./lint passes gersemi on the changed CMake file and test_cef_archive_root.py; its only failure is the pre-existing test_check_changes.py (git: command not found in its subprocess environment) that also fails on master in this checkout.

Validation

PR CI does not build the macOS app (schedule/dispatch only), so I am dispatching scheduled.yaml on this branch. Refs #2418 until that macOS lane is green.

Not covered here: the three remaining stale CEF pins (ubuntu-aarch64, windows-x64, windows-arm64 stay on 7871) are #2417 and the aarch64 slice of #1864, unchanged by this PR.

check_cef_archive_root extracts a nested CEF archive through
buildspec_common.cmake and expects include/cef_version.h under the
destination. RED: _obs_extract_dependency does not exist yet, so all three
cases fail with 'Unknown CMake command'.
The CEF 8078 macOS archives keep cef_binary_8078_macos_<arch>/ at the
root, unlike 7871 and the obs-deps archives. Extracting into
.deps/<destination> left CEF_ROOT_DIR without include/cef_version.h, and
every macOS configure failed with CEF_LIBRARY_RELEASE-NOTFOUND (Scheduled
run 41010694789). Extract into a staging directory and move the payload
up, keeping dotfiles and flat archives unchanged.
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

macOS validation dispatched on this branch: Scheduled 41016847416. The PR waits on its Build 🧱 / macOS 🍏 and Analyze 🔬 / macOS 🍏 jobs before it is queued.

@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, and it fixes master. Every macOS lane has been red since the #2994 pin landed; this is the cause I commented on #2994.

  • RED → GREEN with a cmake -P test covering the nested layout, the flat layout and a stale destination, plus a check against the real 8078 arm64 archive (pinned SHA, CEF_VERSION_MAJOR 156, framework present).
  • Moving a lone top-level directory up is safe for CEF: the flat 7871 archives have many root entries, so they never match. obs-deps and Qt6 still take the old path.
  • Dotfiles are moved too (.bazelversion is asserted).

The Scheduled dispatch on this branch is the end-to-end proof. Queuing on green PR CI, because it can only improve master's macOS lanes.

@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

macOS is green with this change: the dispatched Scheduled 41016847416 passed Analyze 🔬 / macOS 🍏 (clang-analyze), Build 🧱 / macOS 🍏 (arm64) and Build 🧱 / macOS 🍏 (x86_64) — the same three jobs that fail on master with CEF_LIBRARY_RELEASE-NOTFOUND.

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