Repository navigation
Run model-sync and deriver as systemd --user timers on Linux - #2815
Open
Heretic-tripto wants to merge 1 commit into
Open
Heretic-tripto wants to merge 1 commit into
Heretic-tripto wants to merge 1 commit into
Conversation
Both nightly jobs were macOS-only. On Linux InstallModelSync.ts failed at launchctl, and manage-deriver.sh exited 0 with "macOS only. Skipping", so Services reported the deriver as installed when nothing was scheduled. - InstallModelSync.ts: add a Linux branch on lib/SystemdUser (same shape as InstallHealthSync). Schedule matches the plist: daily 05:10. - InstallDeriverSystemd.ts (new): systemd --user timer for the deriver, daily 03:00, same command as the launchd plist. - manage-deriver.sh: delegate install/uninstall/status to the systemd installer on non-Darwin hosts. macOS path unchanged. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CNVp6Ee6Tan1v5P3HENTHB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Two nightly jobs only run on macOS:
InstallModelSync.tscallslaunchctlunconditionally, so on Linux theinstall fails with
Executable not found in $PATH: "launchctl". In aServices.ts installrun this fails the core-services leg of the update.manage-deriver.shon Linux printsmacOS only. Skippingand exits 0, soServicesreports the deriver as installed while nothing is scheduled.Change
InstallModelSync.ts: Linux branch onlib/SystemdUser, same shape asInstallHealthSync. Schedule matches the plist (daily 05:10). macOS pathunchanged.
InstallDeriverSystemd.ts(new): systemd--usertimer for the deriver,daily 03:00, same command as the launchd plist.
manage-deriver.sh:install|uninstall|statusdelegate to the systemdinstaller on non-Darwin hosts. macOS path unchanged.
Testing
--user:InstallModelSync.tsandmanage-deriver.sh installboth reportactive · enabled, with the nextrun at the scheduled time. The model-sync first run completed.
bash -non the script andbun build --no-bundleparse on both TS files.--uninstallon Linux, and anything on macOS.🤖 Generated with Claude Code