Repository navigation
ci: Ship a .flatpak bundle with each release, the one the gate ran (#2400) - #2477
Conversation
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.
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.
1c5ca0a to
c2f1a4c
Compare
|
The first Flatpak run on this branch (40317623091) got further than master has since #2358.
It then failed with
I've dispatched a new Flatpak-only run on this branch. |
|
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 |
Closes #2400 (step 2 of #2395).
Change
build-project.yaml) now runsflatpak build-bundle --runtime-repo=https://flathub.org/repo/flathub.flatpakrepoon the exported repo it downloads.flatpak install --bundle, then starts it with the saved screen capture, camera, microphone and browser profile.ci/flatpak_runtime.pygains--bundleand checks that the installed app's origin is the bundle, not the repo.flatpak-bundleartifact.release-rust.yaml's gate now passesflatpak-runtime-test: true, so a release only ships when that job is green.OBS-Studio-Rust-<version>-linux-x86_64.flatpak, named like the other assets rather than the issue'sobs-studio-rust-<ver>-x86_64.flatpak.ci/release_decision.py: a release without the.flatpakis refused.ci/test_readme_package_formats.pyused 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--bundleis optional.RED → GREEN
test_release_refuses_missing_flatpaktest_release_ships_the_bundle_the_gate_rantest_bundle_installs_the_app_and_takes_debug_from_the_repotest_bundle_origin_must_not_be_the_repotest_saved_profile_job_builds_runs_and_uploads_the_bundletest_release_decision(its asset count goes from 6 to 7),test_readme_package_formats,test_flatpak_identity,test_deb_asset_nameandtest_appimage_assets../lint: one failure,test_macos_browser_helpers. It comes from my clone's staleplugins/obs-browsercheckout; this PR doesn't touch that file.Packaging test (AGENTS.md, #426)
The Flatpak jobs are skipped on PRs. The Flatpak-only
ci.ymlrun on this branch (40317623091) runs the Saved Profile job against the installed bundle. This is also the first Flatpak runtime run on the CEF8078-r2pin from #2474, which fixed #2363. I'll mark this ready once it's green.