Skip to content

recipe(cef): add the arm64 bosn tasks (#3062) - #27

Merged
zackees merged 4 commits into
mainfrom
recipe/3062-arm64-bosn-tasks
Oct 30, 2026
Merged

zackees merged 4 commits into
mainfrom
recipe/3062-arm64-bosn-tasks

Conversation

@zackees

@zackees zackees commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

The arm64 recipe merged in #26 could not be launched: bosn run --task runs
a task's cmd as written and takes no arguments, and the recipe's
architecture is positional (build.sh build arm64). The three cef-linux
tasks therefore only ever build the x86_64 default — which is why
ubuntu-aarch64 still pins CEF 7871 on obs-rust/obs-studio#3062.

RED / GREEN

  • RED da2d699: tests/test_cef_recipe.py::test_bosn_tasks_can_run_the_arm64_recipe
    fails on the current manifest with KeyError: 'cef-linux-sync-arm64'.
  • GREEN 30c3dbe: adds cef-linux-{sync,build,pack}-arm64 on the same
    cef-linux stack with recipes/cef/linux/build.sh <step> arm64, so sync and
    build resume the existing out/cef checkout 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_access forbids TOML dict subscripts outside model.py.

Checks

uv run --project . pytest -q → 48 passed (before: 1 failed, 47 passed on RED).
uv run --project . ruff check clean on the touched file.

Refs obs-rust/obs-studio#3062

The arm64 sysroot (second pair)

The first cef-linux-build-arm64 run got as far as automate and died with
Path does not exist: /cef/work/chromium/src/out/Release_GN_arm64/args.gn:
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.

  • RED 6b17289: test_linux_arm64_recipe_installs_the_arm64_sysroot fails on
    the merged recipe.
  • GREEN 892d22a: build_deps runs Chromium's own
    build/linux/sysroot_scripts/install-sysroot.py --arch=arm64 when the arch
    is arm64.

uv run --project . pytest -q → 49 passed. Verified in the container: the
cef-linux-pack-arm64 task now reaches build.sh and reports
no linuxarm64 minimal distribution (the expected pre-build state), which
proves the new tasks pass arm64 through.

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 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: 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.

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