Repository navigation
Sunshine: canonical unit enable and security-floor bump - #12271
chessing234 wants to merge 4 commits into
Conversation
ea283ef to
08f91b7
Compare
Automated AI review
The review found three behavior issues and one test defect:
Verified: Enabling Sunshine by its real unit name is the right fix for the fresh-install Verified (systemd, pacman and Omarchy source, plus repository data fetched 2026-09-25):
Two start paths are now active on every fresh installBefore this PR, the enable step failed on a fresh install, so The second instance cannot bind the RTSP port and shuts down. If that instance is the systemd one, Impact: Every fresh install gets a failing or restarting Sunshine instance at each login. Streaming still works through whichever instance wins. Which instance wins, and the exact crash pattern, come from #7218's reported observations, not from a reproduction here. Suggested change: Keep exactly one start path. For example, keep the enabled unit and drop Security-floor helper: failure outcomes
Impact: A transient network problem permanently skips the security upgrade. A deterministic failure blocks the rest of the migration queue. The Sunshine install, which this PR otherwise fixes, can again stop halfway. Suggested change: Keep a failed probe from recording the migration as complete. For example, exit non-zero so the migration retries, and keep deliberate skips (package absent, already new enough, unsupported architecture) at exit 0. In the install script, warn and continue if the helper fails ( Pinned edge build is no longer listedAs of 2026-09-25, the edge x86_64 database lists Impact: Once edge prunes the pinned file, the helper and migration print "not available yet" and, combined with the probe-failure outcome above, record the upgrade as done without installing anything. Suggested change: Publishing a fixed build to stable and rc on the package-repository side would reach every channel without client code. If a client-side stopgap stays, read the current Sunshine entry from the edge database instead of hard-coding a file name, and compare against the upstream version (
|
Drop the Hyprland autostart path that raced a second instance onto RTSP. Probe/pacman failures no longer soft-skip the migration, and install keeps going if the floor upgrade cannot complete.
08f91b7 to
d1edce3
Compare
|
addressed the review: systemd-only start (no hypr autostart), probe failures retry the migration, install continues if the floor upgrade fails, and the floor pin is bumped to the current edge build. |
Automated AI review
Follow-up to the earlier review and the author's reply, checked at head Outcome: Verified on
Verified (source, plus sandboxed runs of the real helper, install script and
Author reply: All four stated changes are confirmed. Two limits apply: "systemd-only start" covers new installs and reinstalls only, and "probe failures retry the migration" holds on x86_64 only. On aarch64 a failed probe is still a deliberate soft skip. The edge aarch64 database lists Existing installs keep the second start pathThe earlier installer ran The double start follows from #7218's reports and the earlier installer's source; it was not reproduced here. The line surviving a reinstall was observed in a sandboxed run. Impact: Users who already hit #7218 keep the competing second process after updating. No update or migration removes it. Only the remove script strips that single line (a full Suggested change: Strip the exact line in the installer (reuse the remove script's The pinned file name can now block the migration queueThe helper still builds the URL from the pinned version, and a failed probe on x86_64 now exits 1. If edge stops serving This has not happened yet: as of 2026-09-27, edge still serves the older Impact: The fix depends on one edge file staying available. If it disappears first, every Suggested change: Publishing Switching to stable or rc reverts the upgrade
Impact: Switching to or re-selecting stable or rc undoes the security upgrade, and nothing re-applies it. Until stable or rc ship the fix, only re-running the installer applies the floor again. Suggested change: The same stable and rc publication fixes this. Optional: The migration upgrades the package but does not restart the running user unit, so the old binary keeps running until the next login. Other migrations restart a running user service after a change (for example Optional test improvement: Two changes would make the tests catch real regressions:
Stale text: Review informationTest scope: Follow-up source review of head AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
Canonical unit enable (not Alias=sunshine) is the right fix for #13877/#12499/#12537, and the security-floor helper is a nice fold of #11956. Lots of open siblings (#14412, #13925, #12505, #12358, #13230). Please pick one unit-enable approach and close the rest; this PR's extra value is the floor upgrade — happy to trim to that if another unit PR lands first. |
Summary
Same changes as #8136 #11760, folded so review is one place. Install enables the canonical unit name and upgrades past the security floor when stable lags.
Test plan