Skip to content

infra: the obs-rust/cef releases identify no source, and their tags point at an unrelated commit #2674

Closed

Description

@zackees

Follow-up to #2418 (and the binary side of #1864). The macOS archives are published and the pin can proceed, but the mirror's releases identify no source at all, and their tags point somewhere unrelated. That is the thing to rectify before more platforms land on this release.

What is actually wrong

  1. All three tags resolve to the same commit, and it has nothing to do with any archive.
refs/tags/7871     -> de09a29b1334  (commit)
refs/tags/8078     -> de09a29b1334  (commit)
refs/tags/8078-r2  -> de09a29b1334  (commit)

de09a29b1334 is docs: link the obs-rust Constitution, 2026-10-09, the tip of the default branch 6533-fix-stutter-and-osr-extra-info. Anyone who clicks a release tag gets an unrelated docs commit. The release bodies say as much — "The tag points at the default branch only because GitHub requires a target" — which is honest, but it means the tag carries no information.

  1. The real source is named only inside another repository's shell script. Both recipes fetch upstream CEF directly:
  • recipes/cef/linux/build.sh, recipes/cef/macos/build.sh (obs-rust/obs-studio-libs): AUTOMATE_URL="https://raw.githubusercontent.com/chromiumembedded/cef/${BRANCH}/tools/automate/automate-git.py", run with --branch=8078 --checkout=426920c33ef22551e0b8f48cf343d623ac25642d.

So the source of every archive is chromiumembedded/cef@426920c33ef22551e0b8f48cf343d623ac25642d, recorded in a variable in a recipe in a sibling repo. The only trace inside the artefact itself is CEF_VERSION "156.0.8+g426920c+chromium-156.0.8078.48" / CEF_COMMIT_HASH in include/cef_version.h. Nothing in obs-rust/cef states it. Note also that ${BRANCH} is a moving upstream ref while the recipe is mutable — the pin exists only if you read the recipe at the right commit.

  1. The fork's own history is stale and unrelated to what ships. obs-rust/cef is not a GitHub fork (fork: false, no parent); master last moved 2021-10-05, the default branch is a 6533 line, and the branches are older CEF lines (3770, 4638, 4951, 5060, 6261, 6533) plus patch branches (MediaHandler, hack-and-a-half, jim-system-freeze-workaround, on-accelerated-paint2, *-shared-textures). Its README is upstream CEF's boilerplate and does not say what the OBS-specific patches are for.

  2. No recipe applies any patch from that repo. The 8078 recipes call automate-git.py and nothing else. So either the OBS-specific patches the fork exists for are absent from the 8078 archives — a functional question for plugins/obs-browser, which is what 7871 was carrying — or they were upstreamed, or they were silently dropped. Nothing on the mirror records which. This is the part I could not answer from the outside and it should not stay unanswered.

Why it matters

  • Not reproducible from the release. Rebuilding an archive requires finding a recipe in a different repo and trusting a variable in it; the mirror's own metadata asserts nothing about its contents.
  • A pinned hash has no root. CMakePresets.json pins a sha256 that nothing ties to a named source revision. Part of the answer is attested builds (cef: Build CEF 8078 for macOS arm64 and x86_64 on a Mac (part of #1864) #2418 discussion), but the source record is independent of that and cheaper.
  • Runtime parity is unstated. Whether the shipped CEF carries the fork's patches decides what obs-browser can rely on, and today that is unknowable from the release.

What "rectified" means

Acceptance criteria, in order of cost:

  1. Every archive states its source. Upstream repo + exact commit, the fork patch commit in use (or explicitly none), and the recipe repo + commit that produced it — in the release body and in a file in obs-rust/cef (e.g. PROVENANCE.md or <branch>.json) together with the sha256s.
  2. The tags mean something. 7871, 8078 and 8078-r2 either move to a commit that records that build (e.g. a branch whose sole content is the provenance manifest for that release) or are dropped in favour of the manifest. A tag must never resolve to an unrelated docs commit.
  3. The source artefact is published or its absence is stated. The CEF build produces a source archive (automate-git.py writes cef.tar.gz); attach it to the release with its sha256, or record why not. BSD-3 does not require it — traceability does, and it is the difference between "a pinned binary" and "a build someone can repeat".
  4. The patch question is answered in writing. If the fork's patch branches must be in the shipped CEF, the recipe needs a pinned patch step against an obs-rust/cef commit; if they are not needed, say so and close the question. If 7871 carried them and 8078 does not, that is a regression to track separately.
  5. A gate keeps it from drifting. One test (obs-studio-libs, alongside the CEF recipes) asserting that each release tag resolves to a commit whose manifest lists that release's assets and hashes, and that every asset's sha256 appears in the manifest. Failing today, passing after the manifest lands.

Scope of the first PR

The manifest and the release-body record for the three existing releases — no rebuild, no new work on the artefacts. Moving the tags and answering the patch question can follow as separate changes.

Flagged honestly

Verified through the API: the tag targets, branch list, master/default-branch heads, the recipe lines above, and the cef_version.h contents. Not verified: whether a source tarball still exists for any published build, and whether the 7871 archives were built with the fork's patches — the 7871 release describes itself as a mirror of upstream OBS's archive, which would make its patch status different from 8078's.

Activity

  1. added
    infra
    P2
    size:M
    on Oct 27, 2026
  2. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: the CEF release provenance record (first PR: the manifest + release-body record for the three published releases — no rebuild).

    Plan (one PR to obs-rust/cef):

    1. Write PROVENANCE.md in obs-rust/cef listing, for each release, the upstream chromiumembedded/cef commit, the obs-rust/cef patch commit in use (or none), the producing recipe repo + commit in obs-rust/obs-studio-libs, and each asset's sha256.
    2. Put the same record in each of the three release bodies (7871, 8078, 8078-r2), replacing the "tag points at the default branch" note with the real source.
    3. Leave the tag move and the patch-status question for the follow-ups the issue names.

    I verify the sidebar is empty and no sibling branch exists before proceeding; if a sibling takes it first I will release.

  3. added
    ready
    on Oct 27, 2026
  4. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    First step landed (criterion 1 of 5). Worked in the existing ~/dev/obs-rust/cef checkout; nothing merged.

    PR: obs-rust/cef#1 — adds PROVENANCE.md, base 6533-fix-stutter-and-osr-extra-info, one file, left open for the maintainer. The three published release bodies now carry the same record as an appended section (release bodies are metadata and were edited directly so the record is live now rather than after merge).

    What the manifest names, per your criteria:

    • Every archive states its source. 8078 and 8078-r2 are chromiumembedded/cef@426920c33ef22551e0b8f48cf343d623ac25642d (156.0.8+g426920c+chromium-156.0.8078.48). 7871 is a byte-for-byte mirror of upstream OBS's archive and is recorded as exactly that — no recipe, no upstream commit to name. Impacts your criterion 1 for the two built releases; the 7871 gap is inherent to it being a mirror.
    • Recipe repo + commit. Linux 8078 → recipes/cef/linux @ e653bfb; 8078-r2 → the same recipe @ 75bdc03; macOS → recipes/cef/macos. Every asset's sha256 is listed.
    • Patch commit. None of the recipes applies a patch from any branch of this repository — they call automate-git.py and nothing else. So the answer to your criterion 4 is "not present in any published archive"; whether that is correct for obs-browser is the open question, and I have not tried to answer it.

    Three gaps recorded rather than papered over, one of which corrects the issue text:

    1. The Linux recipe pins a branch, not a commit. recipes/cef/linux/build.sh runs --branch=8078 with no --checkout (only the macOS recipe pins CHECKOUT=426920c…). The commit actually built is knowable only from the CEF_VERSION string inside the archive.
    2. The macOS recipe postdates its archives. recipes/cef/macos/ first appears at 44f2099 (2026-10-26), after the 8078 macOS archives were built by @nathan-v, so those archives have no attributable recipe commit; 5d80772 is the closest named revision.
    3. No source tarball (cef.tar.gz) is attached to any release, and whether one still exists is not recorded.

    Not yet done — your criteria 2, 3, 5, which the issue scoped as follow-ups: the tags still resolve to de09a29b1 (the docs tip of the default branch); no cef.tar.gz is published or its absence explained; and there is no drift gate. The first two are cheap once the manifest is merged; I would take the tag move next if you want it in the same claim, or release otherwise.

  5. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Coordinator tick: obs-rust/cef#1 is merged (squash 330e069, 2026-10-27), not left open — the worker's "open for the maintainer" note is superseded. obs-rust/cef has no PR CI, so the coordinator review merged it as a merge-local change after verifying the content against the artefacts:

    • all 11 asset sha256s match the server-computed digests of the 7871 / 8078 / 8078-r2 releases;
    • e653bfb, 75bdc03, 44f2099, 5d80772 exist in obs-studio-libs with the subjects the file quotes;
    • no recipe under recipes/cef applies a patch (git grep for git am / patch -p / apply finds nothing);
    • release dates match.

    Three factual corrections went in as e8442de2e before the merge:

    1. 8078 Linux was built with symbol_level=0 (the GN_DEFINES in recipes/cef/linux/build.sh at e653bfb) — the line tables are 8078-r2, so the file no longer implies the plain 8078 archive has them.
    2. The 8078 macOS archives' symbol level is now recorded as unknown, because the recipe that sets symbol_level=1 postdates them (the file's own note 2).
    3. "each sha256 matches CMakePresets.json" is 5 of 6, not 6 of 6: ubuntu-x86_64 now pins the 8078-r2 archive (dc463c…), so the 7871 linux x86_64 hash is recorded in PROVENANCE.md alone.

    So criterion 1 is done and the remaining work here is what the issue already scoped as the follow-up: moving the three tags off the unrelated docs commit de09a29b1, and — per the file's note 3 — deciding whether any archive should carry a patch from a branch of obs-rust/cef (no published archive does today). Neither needs a claim from this issue's first PR.

  6. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Continuing: criterion 2 — the three release tags. The manifest record from PR obs-rust/cef#1 is merged, and both the issue and the coordinator tick named the tag move as the next step, so I am taking it in the same claim (no rebuild, no new artefacts).

    Plan (one PR to obs-rust/cef, unmerged, tags retargeted once the commits are on origin):

    1. releases/<tag>.json — a machine-readable manifest per release (upstream repo + commit, recipe repo + commit, patch commit null, every asset's sha256), written as three commits so each tag can point at its own record.
    2. Retarget 7871, 8078 and 8078-r2 onto those commits; none resolves to de09a29b1 afterwards. Release assets and bodies stay attached to the tag name.
    3. Correct the sentence in PROVENANCE.md that says a tag carries no build information.
      Criterion 5 (the drift gate in obs-studio-libs) is the follow-up after this lands — it can only pass once the tags mean something. Criterion 3 (source tarball) and 4 (the patch question) stay open.
  7. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Criterion 2 done — the tags now point at each release's own manifest. PR obs-rust/cef#2 (open, unmerged, base 6533-fix-stutter-and-osr-extra-info), and the tag move is live because tags are release metadata rather than code.

    What the tags are now

    Tag Before After
    7871 de09a29b1334 (docs: link the obs-rust Constitution) 10d4c3c835 — adds releases/7871.json
    8078 de09a29b1334 63a641af5d — adds releases/8078.json
    8078-r2 de09a29b1334 7c21ce6851 — adds releases/8078-r2.json

    git show <tag>:releases/<tag>.json parses for all three; no tag resolves to de09a29b1 any more.

    What the manifests name, per release: upstream chromiumembedded/cef commit (426920c33ef22551e0b8f48cf343d623ac25642d for 8078 and 8078-r2), the recipe (recipes/cef/linux @ e653bfb for 8078, @ 75bdc03 for 8078-r2; recipes/cef/macos @ 5d80772 as the closest named revision for the two macOS archives, with the "postdates the archives" caveat inline), patch_commit: null with the note that no recipe applies a patch from any branch of this repository, and each asset's sha256/platform/arch/builder. 7871's manifest states that no upstream commit is nameable because it is an upstream binary mirror, rather than inventing one.

    Verified, not assumed

    • Every sha256 in the three manifests equals the server-computed digest of the corresponding release asset: 11 of 11.
    • Asset counts unchanged after the retarget: 7871 6, 8078 3, 8078-r2 1 — the releases are still attached to their tag names.
    • The sentence in PROVENANCE.md that said a tag "carries no build information" is replaced by the new layout; each release body now points at its own releases/<tag>.json instead of at the default branch.
    • One factual correction while editing the 7871 body: it claimed all six sha256s match obs-studio CMakePresets.json; it is five of six (the linux x86_64 archive is no longer pinned there — that platform builds from 8078-r2). That matches the PROVENANCE.md correction from the coordinator tick.

    Still open on this issue

    • Criterion 3: no source tarball (cef.tar.gz) on any release; whether one still exists is unrecorded.
    • Criterion 4: the patch question — no published archive carries a patch from a branch of this repository; whether that is right for obs-browser is a functional question.
    • Criterion 5: the drift gate. It can pass now that the tags point at manifests; it belongs in obs-studio-libs next to the CEF recipes, and this worker has no local checkout of that repository (obs-studio3-extern does not exist; the two copies present belong to other workers), so I am leaving it rather than cloning into a sibling's cache. Taking it is a clean unit for whichever worker owns that checkout.

    Handed off to the coordinator — nothing in #2 needs a rebase, and obs-rust/cef has no PR CI.

  8. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Criterion 5 also opened: obs-rust/obs-studio-libs#21 (open, unmerged), correcting what I said above — I cloned the repository into this worker's own directory (~/dev/obs-rust/obs-studio3-extern/obs-studio-libs, a different repository, so no other worker's cache was touched) rather than leaving the gate for someone else.

    The gate is tests/test_cef_release_provenance.py: for every published release it resolves the tag to its commit, fetches releases/<tag>.json at that commit, and asserts the manifest names that release, lists exactly its assets, and has every sha256 equal to the digest GitHub computes.

    Evidence: RED on the pre-move commit de09a29b1 (all three tags 404 on their manifest), GREEN now (all three serve their own manifest, 11 of 11 digests match), full suite uv run --group dev pytest -q 25 passed, ruff check and ruff format --check clean. The GitHub and manifest documents are parsed in obs_studio_libs/model.py because that repository forbids JSON handling anywhere else (tests/test_no_dict_access.py).

    Both PRs are left unmerged for the maintainer/coordinator: obs-rust/cef#2 (manifests + tag move + release bodies) and obs-rust/obs-studio-libs#21 (the gate). Remaining on this issue: criterion 3 (source tarball) and criterion 4 (whether any archive should carry a fork patch).

  9. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Input for the 8078 macOS entries in releases/8078.json: @nathan-v posted the full provenance bundle on #2418 (comment of 2026-10-28T00:26Z) — source chromiumembedded/cef@426920c33ef22551e0b8f48cf343d623ac25642d, Chromium refs/tags/156.0.8078.48 @ d0c02bfad08ec92a6ffcf989e53cd995e6381a4c, both args.gn files, the automate-git.py invocation, the per-arch ninja tails, and codesign -dv --verbose=4.

    Two facts from it that belong in the manifest rather than only in that thread:

    • Symbol level is no longer unknown. PROVENANCE.md records it as unknown for macOS; both of these runs set symbol_level=1.
    • Hashes confirmed against the release, not just against the comment: cef_binary_8078_macos_arm64.tar.xz = 2ddd78dd796af956728984747aaba4d859658354f00c6035be975b9f322f95cb, cef_binary_8078_macos_x86_64.tar.xz = 75281c862a59321bf83735926efeafed20e816cfa07fcccdf20a2d1748c539d0 — both equal the digest GitHub computes on the 8078 assets.

    The signing asymmetry in that bundle is expected, not a gap: arm64 is adhoc,linker-signed because ld64 must ad-hoc sign arm64 output, x86_64 is unsigned because nothing requires it. Do not record it as a missing signing step.

    Unrelated to the manifest but still open on the macOS archives: include/cef_version.h has CEF_SANDBOX_COMPAT_HASH "" in both — asked back on #2418.

  10. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Criterion 3/4 progressed: the macOS 8078 entries now carry the builder's bundle. PR obs-rust/cef#3 (open, unmerged, base 6533-fix-stutter-and-osr-extra-info).

    What the manifest records now (releases/8078.json, mirrored in PROVENANCE.md):

    • symbol_level: 1 on both macOS assets — no longer null. Both args.gn files printed symbol_level=1; the dSYM directory was removed before packing, so line tables are in the binaries and no debug-symbol archive is attached.
    • Chromium refs/tags/156.0.8078.48 @ d0c02bfad08ec92a6ffcf989e53cd995e6381a4c on both assets.
    • A build object per asset: host, xcode 27.0 (27A266a), gn_defines, the automate-git.py argv (--branch=8078 --checkout=426920c… --arm64-build / --x64-build), extra_env (CEF_ENABLE_AMD64=1, GN_OUT_CONFIGS=Release_GN_x64 on x86_64), the printed args.gn, the ninja tail, wrapper flags, and codesign.
    • Recipe attributed to obs-studio-libs 44f2099 (fix(libobs): get_ue_golomb UB on a truncated SPS (1 << 32) #17), the arm64 log's environment. Caveat recorded, not smoothed: the x86_64 log's extra exports only appear in the recipe at 5d80772 (docs(rust): document the local gate #18), which merged after both archives were packed, so that run used pre-merge script content — it is recorded against 44f2099 as the closest named revision, with the caveat in recipe.note and gaps.
    • gaps updated accordingly; the "symbol level not recorded" gap is gone.

    Verification

    • Asset sha256s unchanged and re-checked against gh api repos/obs-rust/cef/releases/tags/8078 (all three match).
    • Tag 8078 retargeted 63a641af5 → 64b239004 (this PR's commit), so the record stays readable from the tag:
      • git show refs/tags/8078:releases/8078.json → both macOS assets symbol_level 1, recipe 44f2099;
      • https://raw.githubusercontent.com/obs-rust/cef/64b239004/releases/8078.json serves the same document.
    • Gate in obs-studio-libs, against the live tags: uv run --group dev pytest tests/test_cef_release_provenance.py → 2 passed.

    Codesign asymmetry is recorded as toolchain behaviour, not a defect: the arm64 framework and libcef_sandbox.dylib are ad-hoc linker-signed (flags=0x20002(adhoc,linker-signed)), while the x86_64 artifacts report code object is not signed at all — ld64 signs arm64 output because Apple silicon requires it and imposes no such requirement on x86_64.

    No rebuild and no new artefacts. Merge is the maintainer's call; if #3 is rejected, the tag can be moved back to 63a641af5. The remaining open item on this issue is the patch-status question (does obs-browser need the fork's patches in the shipped CEF), which is unchanged.

  11. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Criteria 3 and 4 are answered, with evidence rather than assumption. PR obs-rust/cef#4 (open, unmerged, base 6533-fix-stutter-and-osr-extra-info) records both in PROVENANCE.md.

    Criterion 4 — the patch question, answered: no fork patch is in either release, and none is needed.

    The fork's patch branches are CEF lines 3770–6533, and the only header-level change any of them makes that plugins/obs-browser can consume is CEF_ON_ACCELERATED_PAINT2 / OnAcceleratedPaint2 (8092a57fc adds #define CEF_ON_ACCELERATED_PAINT2 1 to include/cef_render_handler.h and the CAPI header). I checked the shipped headers themselves:

    release header examined OnAcceleratedPaint (v1) OnAcceleratedPaint2 macro
    7871 include/cef_render_handler.h extracted from cef_binary_7871_macos_x86_64.tar.xz (116 MB, downloaded and inspected) present, line 170 absent absent
    8078 chromiumembedded/cef@426920c33ef22551e0b8f48cf343d623ac25642d include/cef_render_handler.h (the recipe's own --checkout) present, line 170 absent absent

    So the 7871 archives did not carry the fork's patch either: its absence from 8078 is not a regression, which was the open half of criterion 4. obs-browser at 434cc38 guards the override with #ifdef CEF_ON_ACCELERATED_PAINT2 (browser-client.hpp:150, browser-client.cpp:499) and no CMake file in obs-studio defines that macro, so both releases compile upstream's CEF 6367+ OnAcceleratedPaint shared-texture path. If the fork's patches are ever wanted, the recipe needs a pinned patch step against a commit here — stated in the record.

    Criterion 3 — the source tarball, answered: none was retained, and that is now stated with the reason.

    7871 is a byte-for-byte mirror of upstream OBS's published binaries (no tarball fetched or produced here). The 8078 Linux builds ran in bosn container jobs 23 (build) and 31 (pack) and the macOS builds on a contributor's machine; neither build output was retained, so no cef.tar.gz survives to attach. Publishing one now would require a rebuild, which the record deliberately does not claim.

    Where all five criteria stand

    1. Source recorded per archive — done (feat(rust): port libobs/util/bitstream to Rust under the four-tier testing policy (first port) #1, docs: Rust port testing policy #2, feat(rust): port libobs/util/bitstream to Rust (four-tier tested) #3).
    2. Tags mean something (each resolves to its own releases/<tag>.json) — done (docs: Rust port testing policy #2).
    3. Source artefact attached or absence stated — done, stated with the reason (cef#4).
    4. Patch question answered in writing — done, not a regression (cef#4).
    5. The drift gate in obs-studio-libs — done (test: gate the CEF release tags against their provenance manifests (#2674) obs-studio-libs#21).

    Nothing in the acceptance list is open now. The only artefact still unproduced is the source tarball itself, and it cannot be produced without a rebuild, which is outside this issue's stated scope. I have left the issue open rather than closing it — that call is the maintainer's.

  12. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    All five acceptance criteria are now on master; closing.

    # criterion landed
    1 every archive states its source (upstream repo + commit, fork patch, recipe + commit, sha256s) in PROVENANCE.md and the release body obs-rust/cef#1 (330e069)
    2 the tags mean something — 7871, 8078, 8078-r2 point at each release's own manifest commit, no tag on the docs tip obs-rust/cef#2
    3 the source artefact published, or its absence stated obs-rust/cef#4
    4 the patch question answered in writing (no fork patch in 7871 or 8078; none needed; the OnAcceleratedPaint2 check is recorded) obs-rust/cef#4
    5 a gate keeps it from drifting obs-rust/obs-studio-libs#21 (6ffc697), tests/test_cef_release_provenance.py

    Verified on obs-studio-libs master just now: uv run pytest tests/test_cef_release_provenance.py -q → 2 passed, so the gate is live and green against the current releases rather than only asserted in a comment.

    The mirror metadata now says what each archive is and where it came from; the remaining CEF risk lives in the upgrade work (#1864, #2417), not here.

  13. moved this from In progress to Done in obs-rust Multiviewon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2infrareadysize:M

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions