Repository navigation
recipe(cef): add the arm64 bosn tasks (#3062) - #27
Merged
Merged
Conversation
obs-rust/obs-studio#3062. The recipe's architecture is a positional argument, and `bosn run --task` runs a task's cmd as written, so bosn.toml's three cef-linux tasks can only ever launch the x86_64 default. The test asserts an arm64 task per step; it fails on the current manifest with KeyError: 'cef-linux-sync-arm64'.
`bosn run --task` runs a task's cmd as written and takes no arguments, so
the merged arm64 half of the recipe could not be launched: the three
cef-linux tasks always call build.sh without an architecture and therefore
build x86_64, which is why ubuntu-aarch64 still pins CEF 7871.
Adds cef-linux-{sync,build,pack}-arm64 with `build.sh <step> arm64` on the
same cef-linux stack, so sync/build resume the existing out/cef checkout.
The RED test is restated as text assertions: the repo's
test_no_dict_access forbids JSON/TOML dict subscripts outside model.py.
obs-rust/obs-studio#3062. `cef/tools/gn_args.py` only generates a cpu's configuration when build/linux/debian_bullseye_<cpu>-sysroot exists, and the gclient hook installs only the architecture it synced. The arm64 build therefore died in automate with `Path does not exist: out/Release_GN_arm64/args.gn`. The test fails on the current recipe.
The gclient hook installs only the architecture it synced, so on this x86_64 host cef/tools/gn_args.py found no debian_bullseye_arm64-sysroot, skipped the arm64 configuration, and automate failed reading out/Release_GN_arm64/args.gn. build_deps installs it for arm64 with Chromium's own install-sysroot.py.
zackees
commented
Oct 30, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review: correct. bosn run --task passes no arguments, so separate *-arm64 tasks on the same cef-linux stack are the right shape. arch is set globally by arch_of before build_deps runs, so the arm64 sysroot install is reached only for arm64. RED then GREEN is recorded, and pytest is 48/48 per the body.
This was referenced Oct 30, 2026
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.
The arm64 recipe merged in #26 could not be launched:
bosn run --taskrunsa task's
cmdas written and takes no arguments, and the recipe'sarchitecture is positional (
build.sh build arm64). The threecef-linuxtasks therefore only ever build the x86_64 default — which is why
ubuntu-aarch64still pins CEF 7871 on obs-rust/obs-studio#3062.RED / GREEN
da2d699:tests/test_cef_recipe.py::test_bosn_tasks_can_run_the_arm64_recipefails on the current manifest with
KeyError: 'cef-linux-sync-arm64'.30c3dbe: addscef-linux-{sync,build,pack}-arm64on the samecef-linuxstack withrecipes/cef/linux/build.sh <step> arm64, so sync andbuild resume the existing
out/cefcheckout and only the out directory(
Release_GN_arm64) and the minimal distribution (linuxarm64) differ.The RED test is restated as text assertions because the repo's
test_no_dict_accessforbids TOML dict subscripts outsidemodel.py.Checks
uv run --project . pytest -q→ 48 passed (before: 1 failed, 47 passed on RED).uv run --project . ruff checkclean on the touched file.Refs obs-rust/obs-studio#3062
The arm64 sysroot (second pair)
The first
cef-linux-build-arm64run got as far as automate and died withPath does not exist: /cef/work/chromium/src/out/Release_GN_arm64/args.gn:cef/tools/gn_args.pyonly generates a cpu's configuration whenbuild/linux/debian_bullseye_<cpu>-sysrootexists, and the gclient hookinstalls only the architecture it synced.
6b17289:test_linux_arm64_recipe_installs_the_arm64_sysrootfails onthe merged recipe.
892d22a:build_depsruns Chromium's ownbuild/linux/sysroot_scripts/install-sysroot.py --arch=arm64when the archis arm64.
uv run --project . pytest -q→ 49 passed. Verified in the container: thecef-linux-pack-arm64task now reaches build.sh and reportsno linuxarm64 minimal distribution(the expected pre-build state), whichproves the new tasks pass
arm64through.