Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 9, 2024
1 parent 112e6d2 commit fb24eb5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
uses: MishaKav/[email protected]
with:
pytest-xml-coverage-path: test_result/coverage.xml
junitxml-path: test_result/pytest.xml
junitxml-path: test_result/pytest.xml
8 changes: 4 additions & 4 deletions otaclient/app/boot_control/_grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
DEPRECATION WARNING(20231026): Current mechanism of defining and
detecting slots is proved to be not robust. The design expects that
rootfs device will always be sda, which might not be guaranteed
as the sdx naming scheme is based on the order of kernel recognizing
block devices. If rootfs somehow is not named as sda, the grub
boot controller will fail to identifiy the slots and/or finding
rootfs device will always be sda, which might not be guaranteed as the
sdx naming scheme is based on the order of kernel recognizing block
devices. If rootfs somehow is not named as sda, the grub boot
controller will fail to identifiy the slots and/or finding
corresponding ota-partition files, finally failing the OTA. Also
slots are detected by assuming the partition layout, which is less
robust comparing to cboot and rpi_boot implementation of boot
Expand Down
4 changes: 2 additions & 2 deletions otaclient/app/ota_client_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ def get_polling_waiter(self):
This waiter will wait for <ACTIVE_POLLING_INTERVAL> and then
return if there is active OTA in the cluster. Or if the
cluster doesn't have active OTA, wait <IDLE_POLLING_INTERVAL>
or self.active_ota_update_present is set, return when one of the
cluster doesn't have active OTA, wait <IDLE_POLLING_INTERVAL> or
self.active_ota_update_present is set, return when one of the
condition is met.
"""
Expand Down
4 changes: 2 additions & 2 deletions otaclient/app/ota_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class MetaFile:
class MetaFieldDescriptor(Generic[FV]):
"""Field descriptor for dataclass _MetadataJWTClaimsLayout.
This descriptor takes one dict from parsed metadata.jwt, parses
and assigns it to each field in _MetadataJWTClaimsLayout. Check
This descriptor takes one dict from parsed metadata.jwt, parses and
assigns it to each field in _MetadataJWTClaimsLayout. Check
__set__ method's docstring for more details.
"""
Expand Down

0 comments on commit fb24eb5

Please sign in to comment.