Skip to content

ci: Ship a .flatpak bundle with each release, the one the gate ran (#2400) - #2477

Merged
zackees merged 4 commits into
masterfrom
flatpak/2400-bundle-w3
Oct 26, 2026
Merged

zackees merged 4 commits into
masterfrom
flatpak/2400-bundle-w3

Conversation

@zackees

@zackees zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member

Closes #2400 (step 2 of #2395).

Change

  • The tested bundle is the shipped bundle. The Flatpak Saved Profile job (build-project.yaml) now runs flatpak build-bundle --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo on the exported repo it downloads.
    • It installs the app from that file with flatpak install --bundle, then starts it with the saved screen capture, camera, microphone and browser profile.
    • A bundle holds only the app, so the Debug extension still comes from the repo, and the existing build-ID and GDB checks tie the two together.
    • ci/flatpak_runtime.py gains --bundle and checks that the installed app's origin is the bundle, not the repo.
    • After the test passes, the job uploads the bundle as the flatpak-bundle artifact.
  • Release gate: release-rust.yaml's gate now passes flatpak-runtime-test: true, so a release only ships when that job is green.
    • The release job copies the bundle as OBS-Studio-Rust-<version>-linux-x86_64.flatpak, named like the other assets rather than the issue's obs-studio-rust-<ver>-x86_64.flatpak.
    • The release notes give the install command.
  • ci/release_decision.py: a release without the .flatpak is refused.
  • Docs: the README install answer and the features ledger name the bundle, and "no Flatpak yet" is gone. ci/test_readme_package_formats.py used to check for that sentence; it now checks that the README names the released bundle.

The reuse-run path in ci.yml (flatpak-runtime-reuse-run) keeps installing from the repo, because --bundle is optional.

RED → GREEN

  • RED (4643714): five new tests fail on master.
    • test_release_refuses_missing_flatpak
    • test_release_ships_the_bundle_the_gate_ran
    • test_bundle_installs_the_app_and_takes_debug_from_the_repo
    • test_bundle_origin_must_not_be_the_repo
    • test_saved_profile_job_builds_runs_and_uploads_the_bundle
  • GREEN: those tests pass, along with test_release_decision (its asset count goes from 6 to 7), test_readme_package_formats, test_flatpak_identity, test_deb_asset_name and test_appimage_assets.
  • ./lint: one failure, test_macos_browser_helpers. It comes from my clone's stale plugins/obs-browser checkout; this PR doesn't touch that file.

Packaging test (AGENTS.md, #426)

The Flatpak jobs are skipped on PRs. The Flatpak-only ci.yml run on this branch (40317623091) runs the Saved Profile job against the installed bundle. This is also the first Flatpak runtime run on the CEF 8078-r2 pin from #2474, which fixed #2363. I'll mark this ready once it's green.

RED: release_decision doesn't require a .flatpak, the release gate
doesn't run the Flatpak Saved Profile job, and that job installs from
the exported repo, not a bundle.
…2400)

The Flatpak Saved Profile job now builds a bundle from the exported
repo (flatpak build-bundle --runtime-repo=flathub), installs the app
from it with `flatpak install --bundle` (the Debug extension still
comes from the repo) and checks the app's origin is the bundle, then
uploads it. The release gate runs that job, and the release copies
the bundle as OBS-Studio-Rust-<version>-linux-x86_64.flatpak;
release_decision refuses a release without one.
…older

RED: since #2358 the Flatpak builds with OBS_BRAND_RUST, so OBS writes
its log to obs-studio-rust/logs, but flatpak_runtime.py writes the
saved profile to and reads the log from obs-studio. The GDB failure
(#2363) hid this until now.
The Flatpak is the Rust brand since #2358, which keeps its settings and
logs in obs-studio-rust. The saved profile still loaded (OBS copies
obs-studio over on first start), but the log check looked in
obs-studio/logs and found none.
@zackees
zackees force-pushed the flatpak/2400-bundle-w3 branch from 1c5ca0a to c2f1a4c Compare October 26, 2026 12:13
@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

The first Flatpak run on this branch (40317623091) got further than master has since #2358.

It then failed with saved profile must produce exactly one OBS log. This failure was already on master: since #2358 the Flatpak is the Rust brand, which writes obs-studio-rust/logs, but the test looked in obs-studio/logs. The GDB failure had hidden it. I added a RED/GREEN pair for it here, because the release gate now depends on this job:

  • RED: test_profile_is_in_the_rust_brand_config_directory, which reads OBS_CONFIG_DIRECTORY from frontend/utility/AppIdentity.hpp.
  • GREEN: the profile, the log check and the evidence upload paths now use obs-studio-rust.

I've dispatched a new Flatpak-only run on this branch.

@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Flatpak-only run 40320891740 passed: the Flatpak build and the Flatpak Saved Profile job are green. The job installed the app from the bundle with flatpak install --bundle and resolved CEF source lines in GDB, so #2363 is confirmed fixed. It then ran the saved screen capture, camera, microphone and browser profile and found the log in obs-studio-rust/logs. Marking ready.

@zackees
zackees marked this pull request as ready for review October 26, 2026 12:31
@zackees
zackees added this pull request to the merge queue Oct 26, 2026
Merged via the queue into master with commit 4cd953c Oct 26, 2026
62 checks passed
@zackees
zackees deleted the flatpak/2400-bundle-w3 branch October 26, 2026 12:34
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Done in obs-rust Multiview Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

1 participant