Skip to content

perf(flatpak): cache browser C++20 compilation without module scanning - #1806

Merged
zackees merged 3 commits into
masterfrom
infra/1760-flatpak-modules
Oct 22, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/1760-flatpak-modules

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #1760. Disable automatic C++20 named-module scanning only in the Flatpak OBS recipe, restoring cacheability of browser sources while retaining C++20, PCH and header dependencies. Existing project/browser sources are unchanged; the repository declares no named-module file sets. No new workflows.

Corrected hosted diagnostic 39820372855 attributes all16unsupported calls to obs-browser and -fmodules-ts. The completed previous production cohort remains [480,421,475]s, median475s versus historical905s (47.51% lower), short of the parent target. This PR does not close the parent.

RED → GREEN

  • RED6759f0b9e (rebased8e57348d6): existing PCH fixture now uses C++20 and the manifest scanning option. Focused recipe regression fails without OFF. Real Freedesktop26.08 SDK bosn545 produces output42 but warm rebuild has1directhit/1unsupported-option, failing the required2-hit assertion.
  • GREENd511b0a84 (rebasedf66862802): one Flatpak OBS config option -DCMAKE_CXX_SCAN_FOR_MODULES=OFF. Actual SDK bosn549 passes all10trials, including preserved-size/mtime source, header and compiler changes, configuration changes, and2-hit warm reuse following each. No unsupported calls remain in the fixture.
  • uv run --no-project -m unittest ci.test_hybrid_packaging:38tests pass. git diff --check:pass. Same primary clud-review passed code and final portable evidence.
  • Portable evidence: docs/ci-evidence/2026-10-22-flatpak-cpp20-cache.json. Preparation deadline541 occurred before any fixture ran; partial setup resumed safely, not counted as a compiler correctness failure.

Full qualification completed

Run39824614077 passed full producer119984644801, fresh consumer119988550402 and installed saved-profile runtime119993180570. Consumer:343compilerhits/3misses/0unsupported, all6dependencyhits, genuineOBSrebuild, fsck10commits19088objects andall3validators. Runtime:303verifiedbrowserframes, saved screen/camera/microphone/browser recording, unchanged C++WebSocket v5, modules andCEFdebugger checks; App/Debug commits exactlymatchconsumerexport. Synthetic/software coverage only. Portable evidence in docs/ci-evidence/2026-10-22-flatpak-cpp20-qualified.json.

Enclosing workflow has known Windows callback parity failure664pass/1fail, preserved on #1549; no rerun/test changes. Wholeworkflowcost waits on final native job. These experimental transfer jobs are not routine timing samples. Newproductioncohort/cold/retention still required after normal merge.

Scope

CI/packaging configuration and Python fixture only: Rust/C ABI/protocol implementations unchanged, so new Rust Tier1–3 cases are not applicable. Existing normal PR CI and merge queue remain required. No C tests/public headers or obs-websocket modifications.

Qualification dispatched once at exact HEADd511b0a84: 39824614077, compiler/dependency-transfer and saved-profile enabled, diagnostics disabled. Flatpak producer/consumer/runtime completed successfully; independent Windows failure disclosed above.

@zackees
zackees force-pushed the infra/1760-flatpak-modules branch from d511b0a to f668628 Compare October 22, 2026 17:48
@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Rebased onto current master29722decc after GitHub reported a merge conflict. Replaced head d511b0a with f668628; RED is now8e57348d6. The conflict was adjacent evidence appended to docs/ci-speed-flatpak-pch-1760.md; both sections are retained.

Manifest, PCH fixture and packaging tests are byte-identical to the original reviewed/qualified source (git diff d511b0a84 HEAD -- build-aux/com.obsproject.Studio.json ci/flatpak_pch_probe.py ci/test_hybrid_packaging.py is empty). Packaging plus diagnostic tests45PASS; diff checkPASS. Existing qualification39824614077 remains frozen atd511b0a84 and continues without restart; diagnostic inputs remain off. Normal PR CI/queue still required.

@zackees
zackees marked this pull request as ready for review October 22, 2026 18:05
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit e1b6499 Oct 22, 2026
29 checks passed
@zackees
zackees deleted the infra/1760-flatpak-modules branch October 22, 2026 19:21
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