Eric Callahan
faf956c65d
update_manager: use the http_client component
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-23 10:37:11 -04:00
Eric Callahan
9ab6d0e83d
update_manager: support database changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-02-22 07:47:34 -05:00
Eric Callahan
ecfad5cff1
update_manager: add support for application tags
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-02-13 10:50:28 -05:00
Eric Callahan
de796a9ec7
app_deploy: don't update pip
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-30 12:14:09 -05:00
Eric Callahan
b4ad6692e3
update_manager: fix klipper path regression
...
Commit 7401192 introduced a regression where the saved klipper
paths were not loaded into the Update object.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-29 11:03:08 -05:00
Eric Callahan
471885c3a2
git_deploy: add support for shallow clone tags
...
Shallow clones don't report the tag in git describe, so use
git rev-list to extract the tag and prepend it to the version
string.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
7401192478
update_manager: store klipper paths in the database
...
If Klipper or its python executable is located at a custom path
this allows moonraker to instantiate its update on startup
rather than wait for Klipper to connect. This also resolves an
issue where Klipper's update state is always refreshed on startup
when its located in a non-default path.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
ede671f0df
app_deploy: handle exceptions in same path check
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
b1a232efce
update_manager: remove redundant locks
...
All requests to update, refresh, recover, or reinstall must acquire
the command lock. Given that the individual Deployment implementations
are not (and should not be) called from outside of a request the locks they
use to prevent unwanted re-entry are redundant, confusing, and could
potential result in a deadlock if used improperly.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
0e6fbb12b0
update_manager: add support for PackageKit updates
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
4ddd77430a
update_manager: move low level package methods to a provider class
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
3b27ab49f1
update_manager: use the machine component to restart services
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Pedro Lamas
7c5d840c1b
zip_deploy: fixes minor typo
...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2021-12-28 14:13:27 -05:00
Eric Callahan
1333413db7
update_manager: fix pip location resolution
...
When creating a virtualenv, some operating systems provide
symbolic links back to /usr/bin/python3 rather than copy
the python exectuable over. Previously Moonraker resolved
this symbolic link, resulting in a failure to locate pip.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-20 12:30:26 -05:00
Eric Callahan
08111415be
update_manager: auto-refresh fix
...
Only refresh a provider when the update interval has expired.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-10 11:37:51 -05:00
Eric Callahan
56a98aa8ed
update_manager: replace PeriodicCallback
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-10 11:37:51 -05:00
Eric Callahan
6a90bfa480
update_manager: prevent apt from fetching updates on startup
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 09:14:49 -05:00
Eric Callahan
13bc4c5b9b
update_manager: handle system package init
...
Force refresh requests after server initializaton. Update
package state after installation.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
e8c1798a13
update_manager: Prune stale data in the database
...
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
3203950ca9
update_manager: prevent refresh requests from spamming
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
4c68086798
zip_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
bb87917c97
git_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
74a03fca59
app_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
eb8f1e2526
update_manager: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:31 -05:00
Eric Callahan
3a547fb530
base_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:25:24 -05:00
Eric Callahan
c4fa76f217
update_manager: remove refresh time tracking
...
This is preparation for moving refresh time tracking to the deployment
provider class.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:25:20 -05:00
Eric Callahan
d8a31fc249
update_manager: remove init success check
...
Now that the update manager doesn't rely on the rate
limit it should always initialize successfully. An individual
updater may still fail to initialize, however this does
not prevent the update manager from loading.
Singed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-28 11:15:23 -05:00
Eric Callahan
7f0712183d
update_manager: remove GitHub rate limit initialization
...
The rate limit fields can be extracted from the response
to an API request, even if that request fails with 403. This speeds up update manager initialization and reduces
failures if github is unreachable.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-28 11:15:23 -05:00
Eric Callahan
0e4e3383e3
update_manager: node update fix
...
Use "getboolean" rather than "get" to fetch this option.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
69e2fb810f
update_mananger: use extended confighelper methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
ac23f00d1f
update_manager: remove initialized lock
...
Now that init occurs before the server starts there is no need to block requests until post initialization.
Signed-off-buy: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
15d99be9f0
update_manager: use component_init method for post initialzation
...
Clean up retry functionality to use for loops rather than while loops.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
FrY Sennberg
eec60a760b
git_deploy: report git repository name
...
Signed-off-by: Christoph Frei <fryakatkop@gmail.com>
2021-11-01 19:10:35 -04:00
Eric Callahan
9c09ca2ed5
update_manager: add support for moved git repos
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-09-24 12:22:45 -04:00
Eric Callahan
e76e83d8c1
moonraker: configure the tornado http client to use the curl backend
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-09-21 08:32:24 -04:00
Eric Callahan
b040640813
update_manager: broadcast update_refreshed notification in the status refresh handler
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-08-26 15:44:26 -04:00
Eric Callahan
8a7b348899
update_manager: fix apt-get issue with changed release info
...
Add --allow-releaseinfo-change to the call to apt-get. This resolves an issue where the repos are chaning their "Suite" value from stable to oldstable with the release of Debian Bullseye.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-08-24 06:39:54 -04:00
Eric Callahan
86e0ef0d5e
git_deploy: use "git pull --rebase" when repo debug is enabled
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-27 05:52:56 -04:00
Eric Callahan
91f264bdaf
update_manager: fix unbound variable error
...
Signed-off-by: Eric Callahan <arksine.code
2021-07-15 08:14:18 -04:00
Eric Callahan
0d1431395e
update_manager: fix potential race condition with auto_refresh
...
Wait until update manager init is complete before attempting starting the auto refresh periodic callback. This prevents an auto refresh from blocking init if Moonraker is started during the auto refresh window.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-15 06:52:04 -04:00
Eric Callahan
cb8d5ecb35
app_deploy: add "is_system_service" configuration option
...
This allows users to add update manager "clients" that don't have systemd services registered.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 07:47:43 -04:00
Eric Callahan
87444f5bcb
zip_deploy: allow updates to stable releases when on the "beta" channel
...
Users on the "beta" channel should be updated to the latest release, including stable releases.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 07:47:43 -04:00
Eric Callahan
2ceafb0ff5
git_deploy: replace references to ioloop with eventloop
...
Wrap some additional system calls that could potentially block in "run_in_thread".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 06:34:15 -04:00
Eric Callahan
912840bbcd
zip_deploy: replace references to ioloop with eventloop
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 06:16:18 -04:00
Eric Callahan
d52554231a
app_deploy: replace reference to ioloop with eventloop
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 06:16:18 -04:00
Eric Callahan
c4796ee321
update_manager: replace references to ioloop with eventloop
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 06:16:18 -04:00
Eric Callahan
fddc67db93
update_manager: add support for web betas
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-09 18:06:07 -04:00
Eric Callahan
e20c12619b
git_deploy: compare upstream url to lowercase url during validation
...
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-08 12:09:17 -04:00
Eric Callahan
211c7e70e1
app_deploy: fix typo preventing repo clients from loading
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-08 11:58:11 -04:00
Eric Callahan
dacd9f7565
update_manager: report detected_type and configured_type for applications
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-08 09:02:08 -04:00