Pascal Vizeli
2ddb5ca53f
Support arch specific dockerfiles ( #4022 )
2022-11-28 09:09:22 +01:00
Mike Degatano
a8133f0640
Jobs reset saves data ( #4007 )
2022-11-15 22:21:45 +01:00
Pascal Vizeli
2809f23391
Make dbus-fast calls more robust ( #4005 )
...
* Make dbus-fast calls more robust
* Handle all exceptions and add test
* DBus minimal can't return commands list
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-11-15 22:19:38 +01:00
Martin Hjelmare
348fb56cb5
Add matter discovery ( #4002 )
2022-11-15 15:07:56 +01:00
Mike Degatano
14fcda5d78
Sentry only loaded when diagnostics on ( #3993 )
...
* Sentry only loaded when diagnostics on
* Logging when sentry is closed
2022-11-13 21:23:52 +01:00
Mike Degatano
a0b28ebb97
Use CPE name for boards ( #3990 )
...
* Use CPE name for boards
* Simplify test
2022-11-08 09:12:52 +01:00
Mike Degatano
672b220f69
Add boards APIs ( #3984 )
...
* Add boards APIs
* Move boards to agent
2022-11-04 08:22:24 +01:00
Mike Degatano
5f04e4fb6a
Fix addon image changed on update ( #3971 )
2022-11-03 14:21:57 +01:00
Mike Degatano
1df0a5db2a
Make host log endpoints cli friendly ( #3974 )
...
* Make host log endpoints cli friendly
* Remove blank identifiers
2022-10-27 08:48:15 +02:00
Mike Degatano
7a0c4c5060
Unsupported check for journal gateway ( #3950 )
2022-10-16 11:07:31 +02:00
Mike Degatano
5d2b5bada7
Events when unhealthy/unsupported changes ( #3951 )
...
* Events when unhealthy/unsupported changes
* called_once_with to called_once
2022-10-16 11:07:15 +02:00
Mike Degatano
bde5c938a7
Ignore veth changes ( #3955 )
...
* Reduce log noise for unmanaged interfaces
* Ignore signals with veth changes only
* Fix test and add one
2022-10-16 11:06:35 +02:00
Stefan Agner
2ebb405871
Add enhanced logging REST endpoints using systemd-journal-gatewayd ( #3291 )
...
* Add enhanced logging REST endpoints using systemd-journal-gatewayd
Add /host/logs/entries and /host/logs/{identifier}/entries to expose log
entries from systemd-journald running on the host. Use
systemd-journal-gatewayd which exposes the logs to the Supervisor via
Unix socket.
Current two query string parameters are allowed: "boot" and "follow".
The first will only return logs since last boot. The second will keep
the HTTP request open and send new log entries as they get added to the
systemd-journal.
* Allow Range header
Forward the Range header to systemd-journal-gatewayd. This allows to
select only a certain amount of log data. The Range header is a standard
header to select only partial amount of data. However, the "entries="
prefix is custom for systemd-journal-gatewayd, denoting that the numbers
following represent log entries (as opposed to bytes or other metrics).
* Avoid connecting if systemd-journal-gatewayd is not available
* Use path for all options
* Add pytests
* Address pylint issues
* Boot ID offsets and slug to identifier
* Fix tests
* API refactor from feedback
* fix tests and add identifiers
* stop isort and pylint fighting
* fix tests
* Update default log identifiers
* Only modify /host/logs endpoints
* Fix bad import
* Load log caches asynchronously at startup
* Allow task to complete in fixture
* Boot IDs and identifiers loaded on demand
* Add suggested identifiers
* Fix tests around boot ids
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-10-13 11:40:11 -04:00
Joakim Sørensen
1f7c067c90
Job conditions take a list ( #3949 )
2022-10-13 09:59:06 -04:00
Joakim Sørensen
9da4ea20a9
Add unhealthy reasons to block message ( #3948 )
2022-10-13 09:28:30 -04:00
Mike Degatano
7c1f03932e
Fix host reload test ( #3945 )
2022-10-12 15:46:51 -04:00
Mike Degatano
618c89c4d8
Don't sync unmanaged interfaces ( #3925 )
2022-10-04 20:17:30 +02:00
Mike Degatano
c0a409b25f
No unpack variants for property sets ( #3911 )
2022-09-29 18:13:02 +02:00
Mike Degatano
a1a9c55542
Manual stop true after a reboot ( #3902 )
...
* Manual stop true after a reboot
* Fix test
2022-09-27 08:40:55 +02:00
Mike Degatano
d15a7c27ca
Don't disconnect in executor ( #3901 )
...
* Don't disconnect in executor
* DBus disconnect doesn't raise
* Separate shutdown and disconnect
* pylint fix
* noop coroutine and test
2022-09-27 08:33:28 +02:00
Mike Degatano
48e666e1fc
Bad introspection causes DBus error not KeyError ( #3898 )
...
* Bad introspection causes DBus error not KeyError
* Fix none error on disconnect race
2022-09-26 18:27:08 +02:00
Mike Degatano
30df8ce5c7
Attach event monitor after addon restore ( #3893 )
...
* Attach event monitor after addon restore
* Load after install and listener removal
2022-09-23 21:11:36 +02:00
Mike Degatano
951efd6b29
Replace __del__ with explicit disconnect ( #3892 )
2022-09-23 10:28:16 +02:00
Mike Degatano
2a6fc512e7
Check if issue in list, not end of list in test ( #3891 )
...
* Check if issue in list, not end of list
* Similar fix to other test
2022-09-22 16:52:07 +02:00
Mike Degatano
a5103cc329
Add restart policy evaluation ( #3886 )
...
* Add restart policy evaluation
* No container meta does not fail evaluation
2022-09-22 09:16:33 +02:00
Mike Degatano
c24b811180
Use dbus-fast unpack_variants option ( #3885 )
...
* Use dbus-fast unpack_variants option
* More readable log on signals
2022-09-21 20:52:06 +02:00
Mike Degatano
0958cd0c06
Switch from dbus-next to dbus-fast ( #3882 )
...
* Switch to dbus-fast
* dbus-fast==1.6.0
2022-09-21 09:24:04 +02:00
Mike Degatano
2072370ccc
Revert "Switch to dbus-fast ( #3877 )" ( #3878 )
...
This reverts commit 615758a1dfde1f91ff1dc7e3e4ecc826a0ed2b58.
2022-09-19 17:18:25 -04:00
Mike Degatano
615758a1df
Switch to dbus-fast ( #3877 )
2022-09-19 21:55:22 +02:00
Mike Degatano
cd10b597dd
Empty string in gateway returns none ( #3873 )
2022-09-17 16:24:56 +02:00
Mike Degatano
99bc201688
Listen for dbus property changes ( #3872 )
...
* Listen for dbus property changes
* Avoid remaking dbus proxy objects
* proper snake case for pylint
* some cleanup and more tests
2022-09-17 09:55:41 +02:00
Mike Degatano
b8249548ae
Fix network vlan api ( #3865 )
2022-09-13 21:23:13 +02:00
Mike Degatano
5f98ab7e3e
Reduce patching call dbus in tests ( #3866 )
2022-09-13 21:22:15 +02:00
Mike Degatano
d195f19fa8
Refactor to dbus-next proxy interfaces ( #3862 )
...
* Refactor to dbus-next proxy interfaces
* Fix tests mocking dbus methods
* Fix call dbus
2022-09-13 13:45:28 -04:00
Joakim Sørensen
c67d4d7c0b
Cleanup evaluations ( #3857 )
...
* Cleanup
* move
* Add OS available test
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-09-13 13:19:07 -04:00
Mike Degatano
b71c6c60da
Share MessageBus across dbus objects ( #3860 )
...
* Share MessageBus across dbus objects
* Fix connect calls in tests
2022-09-12 20:10:12 +02:00
Mike Degatano
4f272ad4fd
Dbus refactor and tests ( #3854 )
...
* Dbus refactor and tests
* Link to timedate introspection
2022-09-12 11:59:56 -04:00
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