Commit Graph

3839 Commits

Author SHA1 Message Date
Mike Degatano 91e23073a3 Fix bind mounting and remove on create failure 2023-05-01 12:33:36 -04:00
Mike Degatano a1dcd7fb7f fix pylint issues 2023-04-28 13:59:36 -04:00
Mike Degatano 6867c357fe Handle backups and save data 2023-04-28 13:24:16 -04:00
Mike Degatano 577868aea9 Add support for network mounts 2023-04-27 23:52:55 -04:00
dependabot[bot] 2108b218d8
Bump sentry-sdk from 1.20.0 to 1.21.0 (#4263)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-26 09:25:02 +02:00
dependabot[bot] b85b5041b4
Bump pylint from 2.17.2 to 2.17.3 (#4262)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 09:45:00 +02:00
dependabot[bot] 7c29c56b9a
Bump home-assistant/wheels from 2022.10.1 to 2023.04.0 (#4254)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-22 15:30:15 +02:00
dependabot[bot] 207ae8ae4f
Bump actions/setup-python from 4.5.0 to 4.6.0 (#4256)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 10:48:49 +02:00
dependabot[bot] c13531e9e3
Bump codecov/codecov-action from 3.1.2 to 3.1.3 (#4255)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 10:10:56 +02:00
dependabot[bot] 0373030cb2
Bump getsentry/action-release from 1.4.0 to 1.4.1 (#4253)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 10:09:12 +02:00
Franck Nijhof 9635c70f2b
Add support for NET_RAW privileges (#4242) 2023-04-20 11:03:08 -04:00
dependabot[bot] ff54c5268c
Bump attrs from 22.2.0 to 23.1.0 (#4244)
Bumps [attrs](https://github.com/python-attrs/attrs) from 22.2.0 to 23.1.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python-attrs/attrs/compare/22.2.0...23.1.0)

---
updated-dependencies:
- dependency-name: attrs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 10:57:23 -04:00
dependabot[bot] c7141caa12
Bump sentry-sdk from 1.19.1 to 1.20.0 (#4250)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 12:49:58 +02:00
dependabot[bot] d0bf2aa817
Bump getsentry/action-release from 1.3.1 to 1.4.0 (#4249)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 10:53:30 +02:00
Franck Nijhof ed2f57f3ca
Add Wyoming Protocol add-on/integration discovery (#4248)
* Add Wyoming Protocol add-on/integration discovery

* Use URIs instead

* Use unix socket in bad test

* Address pylint warning
2023-04-19 11:35:05 -04:00
J. Nick Koston 744cd4ea39
Speed up backups by increasing buffer size (#4229)
* Speed up backups by increasing buffer size

This is the same change as https://github.com/home-assistant/core/pull/90613
but for supervisor

If the backup takes too long, core will release the lock on the database
and the backup will be no good

2fc34e7cce/homeassistant/components/recorder/core.py (L926)

cpython uses copyfileobj under the hood for fast copies but the default buffer size is quite low which increases the amount of time in python code when copying the sqlite database. As this is the usually the bulk of the backup, increasing the buffer can help reduce the backup time quite a bit.

Ideally this would all use sendfile under the hood as it would shift nearly all the burden out of userspace but tarfile doesn't currently try that 4664a7cf68/Lib/shutil.py (L106)

related:
In testing (non encrypted) improvement was at least as good as https://github.com/python/cpython/issues/71386

* add the const
2023-04-19 14:01:44 +02:00
dependabot[bot] b3ca08f2c2
Bump cryptography from 40.0.1 to 40.0.2 (#4245)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 13:40:19 +02:00
dependabot[bot] afbafe44f9
Bump pytest from 7.3.0 to 7.3.1 (#4243)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 09:24:39 +02:00
Joakim Sørensen a54e0a8401
Bump frontend to 3a1fff81 (#4241) 2023-04-14 09:07:42 -04:00
dependabot[bot] df336dd493
Bump actions/checkout from 3.5.0 to 3.5.2 (#4240)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 19:35:10 +02:00
dependabot[bot] 778134f096
Bump debugpy from 1.6.6 to 1.6.7 (#4230)
Bumps [debugpy](https://github.com/microsoft/debugpy) from 1.6.6 to 1.6.7.
- [Release notes](https://github.com/microsoft/debugpy/releases)
- [Commits](https://github.com/microsoft/debugpy/compare/v1.6.6...v1.6.7)

---
updated-dependencies:
- dependency-name: debugpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 14:01:37 -04:00
Mike Degatano dc4a753fe3
Add start transient unit dbus method (#4237) 2023-04-12 13:08:02 -04:00
Mike Degatano f5b6feec77
Remove codecov package (#4238) 2023-04-12 13:07:46 -04:00
dependabot[bot] 08c40dfe98
Bump sentry-sdk from 1.18.0 to 1.19.1 (#4231)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.18.0 to 1.19.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/1.18.0...1.19.1)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 12:27:56 -04:00
dependabot[bot] 98110a26d4
Bump pylint from 2.17.1 to 2.17.2 (#4226)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 13:26:41 +02:00
dependabot[bot] 610b0e9adc
Bump codecov/codecov-action from 3.1.1 to 3.1.2 (#4236)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 10:05:29 +02:00
dependabot[bot] be39275cd0
Bump pre-commit from 3.2.1 to 3.2.2 (#4227)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 09:58:15 +02:00
dependabot[bot] 0c7fc10147
Bump coverage from 7.2.2 to 7.2.3 (#4233)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 08:49:30 +02:00
dependabot[bot] 6dd9b573fd
Bump pytest from 7.2.2 to 7.3.0 (#4235)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 08:11:47 +02:00
Stefan Agner 2c2f1afc48
Support checkout directory which are not name supervisor (#4223)
VSCode by default bind mounts the project dir into /workspace. Our
scripts assume the Supervisor repository at /workspace/supervisor, but
there is no guarnatee for that with VSCode default behavior. Explicitly
mount it to /workspace/supervisor so we can safely make that assumption
in our devcontainer scripts.
2023-04-03 14:44:59 -04:00
Mike Degatano 8cf71ffa81
Issue changed messages include suggestions (#4225)
* Issue changed messages include suggestions

* Fix test so ordering of suggestions doesn't matter
2023-04-03 14:00:01 -04:00
dependabot[bot] 1123101c87
Bump securetar from 2022.2.0 to 2023.3.0 (#4224)
Bumps [securetar](https://github.com/pvizeli/securetar) from 2022.2.0 to 2023.3.0.
- [Release notes](https://github.com/pvizeli/securetar/releases)
- [Commits](https://github.com/pvizeli/securetar/compare/2022.02.0...2023.3.0)

---
updated-dependencies:
- dependency-name: securetar
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 12:29:18 -04:00
dependabot[bot] 5adddc97e3
Bump black from 23.1.0 to 23.3.0 (#4214)
Bumps [black](https://github.com/psf/black) from 23.1.0 to 23.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.1.0...23.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 11:48:12 -04:00
dependabot[bot] d09f35f079
Bump cryptography from 39.0.2 to 40.0.1 (#4210)
Bumps [cryptography](https://github.com/pyca/cryptography) from 39.0.2 to 40.0.1.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/39.0.2...40.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 11:32:19 -04:00
dependabot[bot] 9a3459434f
Bump sentry-sdk from 1.17.0 to 1.18.0 (#4213)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/1.17.0...1.18.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:46:17 -04:00
Mike Degatano fce0d2aaed
Prevent multiple data disks with name hassos-data-external (#4222)
* Prevent multiple data disks with name hassos-data-external

* Fix pylint issues

* Do rename before format
2023-04-01 08:40:19 +02:00
Mike Degatano 842e550dda
Create issue for multiple data disks detected (#4218) 2023-03-31 11:31:39 -04:00
Mike Degatano c9ee76f1d3
Strip null character off udisks2 paths (#4215)
* Strip null character off udisks2 paths

* Fix circular import
2023-03-31 10:23:30 -04:00
Stefan Agner 852771fbcf
Ignore non-existing data disk (#4221) 2023-03-31 10:20:25 -04:00
Pascal Vizeli de1f3555b1
Disable codenotary until rework of cosign (#4217)
* Disable codenotary until rework of cosign

* Skip code notary tests

---------

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2023-03-31 11:11:29 +02:00
Mike Degatano c0b75edfb7
Format data disk in Supervisor instead of OS Agent (#4212)
* Supervisor formats data disk instead of os agent

* Fix issues occurring during tests

* Can't migrate if target is too small
2023-03-30 14:15:07 -04:00
Mike Degatano a3204f4ebd
Use Udisks2 for available data disks (#4202)
* Use Udisks2 for available data disks

* pylint issues
2023-03-27 12:09:16 -04:00
dependabot[bot] 84e4d70a37
Bump pylint from 2.15.10 to 2.17.1 (#4204)
* Bump pylint from 2.15.10 to 2.17.1

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.10 to 2.17.1.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.10...v2.17.1)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix new pylint issues

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2023-03-27 12:08:40 -04:00
Mike Degatano cede47e95c Increase middleware range 2023-03-27 12:08:01 -04:00
dependabot[bot] 75b3ebec7c
Bump actions/stale from 7.0.0 to 8.0.0 (#4203)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 10:20:30 +02:00
dependabot[bot] b707a468d2
Bump pre-commit from 3.2.0 to 3.2.1 (#4209)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 09:31:13 +02:00
dependabot[bot] 4e41255a57
Bump actions/checkout from 3.4.0 to 3.5.0 (#4206)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-26 10:56:13 +02:00
dependabot[bot] 3ceec044a8
Bump dbus-fast from 1.84.1 to 1.84.2 (#4153)
Bumps [dbus-fast](https://github.com/bluetooth-devices/dbus-fast) from 1.84.1 to 1.84.2.
- [Release notes](https://github.com/bluetooth-devices/dbus-fast/releases)
- [Changelog](https://github.com/Bluetooth-Devices/dbus-fast/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bluetooth-devices/dbus-fast/compare/v1.84.1...v1.84.2)

---
updated-dependencies:
- dependency-name: dbus-fast
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-21 14:47:19 -04:00
Mike Degatano 3646ae070e Increase middleware range 2023-03-21 14:35:23 -04:00
Mike Degatano a6caccd845
Use session dbus mocks for all tests (#4198)
* Use session dbus mocks for all tests

* func instead of fn for pylint
2023-03-21 07:30:31 +01:00