launcher: update checks follow the copy in use (beta), and run every 30 minutes #3425
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3425
Loading…
Reference in a new issue
No description provided.
Delete branch "oreofr/launcher-global-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Launcher change: needs OreoFR's review. AI-assisted.
The beta "Up to date" report did not reproduce. A player on beta
73436f4a1saw "Up to date" after Check now. On mainc43bc6410(and in the beta launcher at73436f4a1, the same code),check_updatescallsupdate_status(REPO, fetch=True, branch=followed_branch(settings, CHANNEL)).REPOis the beta copy (channel_repo,tools/leonida_launcher.py:302/:317),followed_branchisbeta, and the beta copy comes fromgit clone --branch beta(clone_command), so it tracksorigin/beta. Nothing is cached per path. Two runs:betamoves ahead:behind 2, then Update Mandy fast-forwards the beta copy;73436f4a1fetching from git.leonida.now:behind 5(up to0ce52e0c3).The likely cause is that the check ran before beta moved (
73436f4a1was beta's newest commit at the time shown) and the window never checked again while it stayed open. This PR fixes that part.Periodic checks (
auto_check_due, a pure function; the window asks it every minute and on<FocusIn>):check_due); only every 2 hours after a failed check (offline, busy, error);check_updates: falsein launcher.json turns these automatic checks off (the start check still runs, as before);Tests (
tests/test_leonida_launcher.py):AutoUpdateCheckTests, 8 tests on a fake clock: red on main (8 errors), green here;BetaCopyUpdateTests, real git: the beta copy against a moving originbeta(check, no caching, Update Mandy's fast-forward), and a force-pushed beta reached through thebackup/before-update-*branch. Both pass on main too: they pin behaviour that already worked.scripts/run_standalone_tests.py -j 8, Windows 11);check_no_game_dataon the changed files, a single__main__block.No new UI strings. The game was not started (not needed).
🤖 Generated with Claude Code
Merging. Head
359aa9ac2(on mainc43bc6410), mainc43bc6410→e1a13ab25.Local CI run by the merger on the head merged into current main (quick mode, launcher only): PASS, no failure (Compile Python, make_game.py --help, Python tests (standard library), no game data, sensitive files unchanged; Rust skipped: launcher only).
The beta player's "Up to date" did not reproduce: with a real temporary origin whose
betamoves ahead, the check reports it and Update Mandy fast-forwards the beta copy. The likely cause was a check made before beta moved, never repeated while the window stayed open; this PR adds the automatic checks (every 30 min, on focus after 10 min, never while the game runs, 2 h back-off after errors, nothing installed without a click). The start-up check stays on even with an old savedcheck_updates: false(OreoFR's choice).Launcher change approved by OreoFR (maintainer, launcher owner). Game not launched.
AI-assisted (Claude Code).