Stefan Agner
01e24a3e74
Replace loop test fixture with event_loop ( #3847 )
...
This addresses a deprecation warning when calling tests with Python
3.10:
```
../python3.10/site-packages/pytest_aiohttp/plugin.py:33: DeprecationWarning: 'loop' fixture is deprecated and scheduled for removal, please use 'event_loop' instead
```
2022-09-09 09:54:57 -04:00
Mike Degatano
ebae1e70ee
Add tests for backups check ( #3845 )
2022-09-07 10:33:46 +02:00
Mike Degatano
bf48d48c51
Create issue+suggestion when no recent backup ( #3814 )
...
* Automatic full backup option
* Fix test for change in free space check
* Suggestions only, no automation
* Remove extra in backup config schema
2022-09-03 09:50:23 +02:00
Mike Degatano
fc646db95f
Reduce connectivity checks ( #3836 )
...
* Reduce connectivity checks
* Fix/remove connectivity tests
* Remove throttle from prior connectivity tests
* Use dbus_property wrapper
* Allow variable throttle period with lambda
* Add evaluation for connectivity check disabled
2022-09-03 09:48:30 +02:00
Mike Degatano
1f28e6ad93
Fire issue events on HA's bus ( #3837 )
...
* Fire issue events on HA's bus
* Convey event type with event field
* Message for humans
2022-09-02 17:40:10 +02:00
Mike Degatano
4ea27f6311
Network connection check only about ipv4 ( #3830 )
...
* Network connection test only about ipv4
* Better test of change being made
2022-08-30 08:39:08 +02:00
Pascal Vizeli
3dc36c3402
Use link-local instead disabled for ipv6 ( #3829 )
...
* Use link-local instead disabled for ipv6
* Add a test
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-08-29 16:56:59 -04:00
Mike Degatano
bae7fe4184
Debug info for network connection problem ( #3828 )
...
* Debug info for network connection problem
* Update network tests
2022-08-29 22:01:40 +02:00
Mike Degatano
df030e6209
No bool conversion in resolution test ( #3826 )
2022-08-26 16:42:45 +02:00
Mike Degatano
09d60b4957
Store load ignores supervisor updated condition ( #3823 )
2022-08-26 10:22:55 +02:00
Mike Degatano
2c5bb3f714
Fix suggestion test to be order agnostic ( #3822 )
2022-08-25 16:06:47 -04:00
Mike Degatano
32d65722e9
Handle multiple suggestions with different references ( #3817 )
2022-08-25 10:09:25 -04:00
Mike Degatano
d5f9fcfdc7
Fire events on issue changes ( #3818 )
...
* Fire events on issue changes
* API includes if suggestion has autofix
2022-08-25 11:42:31 +02:00
Mike Degatano
b4e1e3e853
Identify and handle dhcp issues ( #3806 )
...
* Identify and handle dhcp issues
* Change test from DHCP to Connection Problem
2022-08-23 13:57:16 +02:00
Mike Degatano
c7f7fbd41a
Remove static-only fields when method is auto ( #3810 )
2022-08-23 13:56:14 +02:00
Mike Degatano
cbddca2658
Rename dns checks to fit pattern ( #3811 )
...
* Rename dns checks to fit pattern
* Missed a patch reference
2022-08-23 13:54:22 +02:00
Mike Degatano
f4811a0243
Watchdog addon on successful but unexpected exit ( #3815 )
2022-08-22 20:29:27 -04:00
Mike Degatano
8b5e96a8ad
Set autoreconnect to true for interfaces ( #3807 )
2022-08-19 10:09:44 +02:00
Mike Degatano
c3f7a45d61
Fix memory calculation for cgroupv2 ( #3802 )
2022-08-17 16:50:08 -04:00
Mike Degatano
2cd7f9d1b0
Attempt plugin update before failing job condition ( #3796 )
2022-08-17 07:36:05 +02:00
Mike Degatano
5fc9484f73
Supervisor updated before addon repositories ( #3795 )
2022-08-17 07:28:06 +02:00
Franck Nijhof
3f88236495
Support for Docker manifests base images add-on build ( #3724 )
...
* Support for Docker manifests base images add-on build
* Set platform for build and tests
* Remove empty test
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-08-16 14:34:32 +02:00
Mike Degatano
96065ed704
Bump to python 3.10 and alpine 3.16 ( #3791 )
...
* Bump to python 3.10
* 3.10 is not a number
* Musllinux wheels link
* Revert attrs 22.1.0 -> 21.2.0 for wheel
* Revert cryptography for wheel & pylint fix
* Precommit and devcontainer to 3.10
* pyupgrade rewriting things
* revert
* Update builder.yml
* fix rust
* Update builder.yml
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2022-08-16 14:33:23 +02:00
Mike Degatano
c8f184f24c
Add auto update option ( #3769 )
...
* Add update freeze option
* Freeze to auto update and plugin condition
* Add tests
* Add supervisor_version evaluation
* OS updates require supervisor up to date
* Run version check during startup
2022-08-15 12:13:22 -04:00
Mike Degatano
e62324e43f
Set limits on watchdog retries ( #3779 )
...
* Set limits on watchdog retries
* Use relative import
2022-08-09 11:44:35 -04:00
Stefan Agner
a92058e6fc
Mark CGroup V2 supported on Home Assistant OS ( #3778 )
...
* Mark CGroup V2 supported on Home Assistant OS
* Fix tests
* Fix comparision
* Move evaluation of CGroup after OSManager has been initialized
2022-08-09 11:32:51 +02:00
Mike Degatano
13c10dbb47
Healthy/Unhealthy state means addon started ( #3773 )
2022-08-05 10:04:34 -04:00
Mike Degatano
f87209f66f
Add fields back for legacy addons info routing ( #3768 )
...
* Add fields back for legacy addons info routing
* Fixes from feedback
2022-08-03 16:03:45 -04:00
Mike Degatano
4f8f28b9f6
addons/info returns info on all addons ( #3762 )
...
* Change to legacy routing approach
* Revert launch.json changes
2022-08-03 15:44:18 +02:00
Mike Degatano
2b4f46f6b3
Watchdog shouldn't rebuild addons ( #3766 )
...
* Watchdog shouldn't rebuild addons
* pylint fix
2022-08-03 12:06:59 +02:00
Mike Degatano
d097044fa8
Update supervisor before auto-updating others ( #3756 )
2022-07-28 12:29:05 -04:00
Mike Degatano
ebeff31bf6
Pass supervisor debug value to audio ( #3752 )
2022-07-27 17:15:54 +02:00
Mike Degatano
48c5dd064c
Fix addons always unknown after install ( #3746 )
2022-07-18 15:11:55 -04:00
Mike Degatano
d19166bb86
Docker events based watchdog and docker healthchecks ( #3725 )
...
* Docker events based watchdog
* Separate monitor from DockerAPI since it needs coresys
* Move monitor into dockerAPI
* Fix properties on coresys
* Add watchdog tests
* Added tests
* pylint issue
* Current state failures test
* Thread-safe event processing
* Use labels property
2022-07-15 09:21:59 +02:00
Pascal Vizeli
1f69cf0fe6
Verify the cgroup supported level ( #3688 )
...
* Verify the cgroup supported level
* add tests
2022-06-22 11:22:27 -04:00
Pascal Vizeli
e92d8695c7
Cleanup API / old rebranding ( #3623 )
...
* Cleanup API / old rebranding
* cleanup p2
* next round
* better comments
* cleanup import
* support only installed add-ons
* legacy migration
* test fixes
* add old env back
* revert for Core
* fix issues with old core
* fix
* using installed short cat
* revert
* extend legacy
* cleanup
* fix path
* Fix missing
* add stop
* readd old token
* Add minimal
* extend attributes
* Add repo back
* add more repo info
* Make it working
* Bump frontend to e7848262 (#3680 )
* Add icon
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2022-06-21 15:19:04 +02:00
Mike Degatano
3b3cd61e3d
Never disable interfaces at startup ( #3676 )
2022-06-09 13:55:36 +02:00
Joakim Sørensen
b82dbc0cac
Extended store addon info ( #3678 )
...
* Add extended store addon info
* Add missing hassio_api
* Fix test
2022-06-09 13:47:15 +02:00
Mike Degatano
7a74d77d43
Move addon repo migration to bootstrap ( #3672 )
...
* Move addon repo migration to bootstrap
* Save data after migrating it
2022-06-08 15:21:34 -04:00
Mike Degatano
5f9b999a3c
Use source instead of URL for repos ( #3670 )
2022-06-07 17:55:53 +02:00
Mike Degatano
ccd2c31390
Move repository urls to store settings file ( #3665 )
...
* Move repository urls to store settings file
* Remove default repos from supervisor config
* Fix clone at initial store load
* Mock git load in repository fixture
2022-06-07 10:02:21 +02:00
Mike Degatano
138fd7eec9
APIs for adding/removing an addon repository ( #3649 )
...
* APIs for adding/removing an addon repository
* Misunderstood addons.store, fixed usage
2022-05-23 09:16:42 +02:00
Mike Degatano
cbe0adf53f
OS latest version set from upgrade path ( #3632 )
...
* OS latest version set from upgrade path
* fix tests
* Update test_updater.py
* Revert / fetch_update is global unwrapped
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2022-05-11 13:14:28 +02:00
Mike Degatano
f8ac2b202c
Revert "OS latest version set from upgrade path" ( #3631 )
2022-05-10 18:31:37 -04:00
Mike Degatano
0548afdb61
OS latest version set from upgrade path
2022-05-10 18:13:11 -04:00
Mike Degatano
567806cd14
Don't include addresses in network update ( #3628 )
...
* Don't include addresses in network update
* revert format fix
2022-05-09 16:44:17 -04:00
Pascal Vizeli
942b5e6150
Rework fixups & Add integrity ( #3614 )
...
* Rework fixups & Add integrity
* Fix tests
* fix test v2
* Protect ddos
2022-05-05 16:21:19 +02:00
Pascal Vizeli
ca1f764080
Add integrity check ( #3608 )
...
* Add integrity check
* add API test
* add tests
* tests for add-ons
2022-04-30 10:14:43 +02:00
Pascal Vizeli
ff08ca5920
Enable CAS ( #3595 )
2022-04-27 15:22:36 +02:00
Mike Degatano
8bb4596d04
Add API option to disable fallback DNS ( #3586 )
...
* Add API option to disable fallback DNS
* DNS unsupported evaluation and fallback in sentry
2022-04-25 18:15:40 +02:00