Skip to content

frontend: opt-in nightly update channel from the continuous release - #1761

Merged
zackees merged 2 commits into
masterfrom
infra/1759-nightly-channel
Oct 22, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1759-nightly-channel

Conversation

@zackees

@zackees zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member

Stacked: builds on #1758 (certify gate), which builds on #1742; the new commits are 8158f3d (RED) and the GREEN commit on top. Retarget to master after #1742 (and #1758) merge. I based this on #1758 rather than directly on #1742 because both change ci/update_feed.py, its tests and release-rust.yaml's certify job.

Refs #1759. It uses Refs, not Fixes, because no real app has run the updater on either channel yet (see below).

What

  • Feed: ci/update_feed.py build --channel nightly writes the same signed files as a certified feed, minus branches.json. The appcast items carry <sparkle:channel>nightly</sparkle:channel>, and manifest.json says "channel": "nightly" and names the daily's own assets.
  • Workflow: a new nightly_feed job (macOS, needs: [check, release]) runs only after a published daily: release succeeded, not verify-only, in obs-rust/obs-studio. It writes that feed and uploads it onto the rolling continuous pre-release (--clobber). It never edits the daily's release or Latest. If OBS_RUST_SPARKLE_PRIVATE_KEY or OBS_RUST_UPDATE_RSA_PRIVATE_KEY is missing, it logs ::warning:: and skips the rest, so the daily succeeds. The DMG read-and-sign loop moved from certify into ci/sparkle_mac_info.sh, which both jobs now share.
  • App: the channel is the existing Settings > General > Updates > Update Channel box (global config [General] UpdateBranch, default stable). It gets a built-in Nightly entry (OBSApp::GetBranches, with en-US strings), so the option shows before any certified branches.json lists it. Branches from branches.json are deduplicated against the built-in ones.
    • obs-rust-update.hpp: ObsRustFeedUrl(stableUrl, branch) maps …/releases/latest/download/<f> to …/releases/download/continuous/<f> for nightly and leaves every other URL unchanged. ObsRustUpdateBranchIsKnown accepts only stable and nightly.
    • Windows (AutoUpdateThread): reads manifest.json from the branch's feed, with a separate cache file per branch. Any unknown branch, such as upstream's beta, resets to stable. ZIP URL checks are unchanged (releases/download/<tag>/).
    • macOS (OBSUpdateDelegate): on nightly, feedURLStringForUpdater returns the continuous appcast, derived from SUFeedURL or the Rosetta feed. On stable it returns nil as before. allowedChannelsForUpdater allows only a known branch, so a stable app never takes a nightly item.
  • Tests: nightly generator output, stable default, unknown channel, the nightly_feed job's shape (including that missing secrets skip without failing), and the C++ URL mapping (compiled). ci/test_no_upstream_updater.py now checks that every URL in the updater sources, obs-rust-update.hpp and update_feed.py is under https://github.com/obs-rust/obs-studio/, that the delegate holds no literal URL, and that the nightly wiring and locale strings are present.
  • Docs: docs/rust-port/release-criteria.md ("Stable, nightly and certify") and a docs/features.md line.

RED → GREEN

  • RED 8158f3d: uv run python -m unittest ci/test_update_feed.py: 4 fail (nightly feed, stable channel field, nightly_feed job, URL mapping). ci/test_no_upstream_updater.py: 1 fails (nightly wiring).
  • GREEN: both files OK (34 tests). Also OK: ci/test_release_*.py, ci/test_workflow_*.py, ci/test_build_groups.py, ci/test_tool_guard.py, ci/test_uv_run.py. ./lint ok. actionlint on release-rust.yaml is clean apart from the custom runner labels.

Not verified locally

  • The Windows (AutoUpdateThread.cpp.hpp) and macOS (OBSUpdateDelegate.mm.hpp, OBSApp.cpp.hpp under OBS_PLATFORM_HAS_UPDATE_BRANCHES) changes don't compile on Linux; they compile only in CI or the release builds.
  • No real app has switched channels or updated yet. That needs a published nightly feed (the first daily after merge, with the secrets set) and a Windows or macOS install. Tier 4 does not apply; Tiers 2 and 3 do not apply (frontend and CI only).
  • nightly_feed has not run (we did not run any release workflow). A failed nightly_feed makes ci: release-rust: certify only a fully green release at least N days old #1758's certify gate refuse that daily, because it is a top-level job of the run.

@zackees
zackees force-pushed the infra/1757-certify-gate branch from 45ce1f7 to e4f38ae Compare October 22, 2026 09:20
@zackees
zackees force-pushed the infra/1759-nightly-channel branch from 2f6d3fc to d02b4dc Compare October 22, 2026 09:20
@zackees
zackees force-pushed the infra/1757-certify-gate branch from e4f38ae to 65f7c0e Compare October 22, 2026 11:10
@zackees
zackees changed the base branch from infra/1757-certify-gate to master October 22, 2026 11:10
@zackees zackees closed this Oct 22, 2026
@zackees
zackees force-pushed the infra/1759-nightly-channel branch from d02b4dc to 71382af Compare October 22, 2026 11:41
@zackees
zackees enabled auto-merge October 22, 2026 11:41
update_feed.py build --channel nightly, the nightly_feed job, the
ObsRustFeedUrl/ObsRustUpdateBranchIsKnown mapping and the frontend wiring
are stubs or missing: 4 tests in ci/test_update_feed.py and 1 in
ci/test_no_upstream_updater.py fail.
…GREEN, #1759)

- ci/update_feed.py build --channel nightly: appcast items tagged
  <sparkle:channel>nightly</sparkle:channel>, manifest.json with
  "channel": "nightly", no branches.json.
- release-rust.yaml nightly_feed: after a published daily, writes that
  feed onto the continuous pre-release; skips with a warning without the
  signing secrets. ci/sparkle_mac_info.sh is shared with certify.
- obs-rust-update.hpp: ObsRustFeedUrl/ObsRustUpdateBranchIsKnown.
  Windows reads the branch's manifest; the Sparkle delegate reads the
  branch's appcast and allows only its channel; OBSApp lists a built-in
  Nightly branch (Settings > General > Updates, default stable).
- Docs: release-criteria.md stable/nightly/certify, features ledger.

Refs #1759
@zackees zackees reopened this Oct 22, 2026
@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Coordinator: rebased onto master after #1742 and #1758 merged; the branch now has only its own two commits. During the first attempt, a failed rebase briefly pushed master's tip to this branch, which closed the PR. I restored the branch and reopened it. Auto-merge is set.

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