Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making update mechanism more robust #220

Conversation

tsagadar
Copy link
Collaborator

@tsagadar tsagadar commented Dec 1, 2024

There was an edge case when deleting software/rollout before the last device reported back.

Second improvement: use API to get logs in test and don't directly access db.

As an edge case, the software can be deleted while device reboots after
update. This caused errors and endless reporting of device.
@tsagadar tsagadar force-pushed the mm/increase-update-reporting-robustness branch from 56a9f95 to a8bf154 Compare December 1, 2024 12:33
async def _assertLogLines(device, expected_line_count):
persisted_device = await Device.get(uuid=device.uuid)
log = persisted_device.last_log
async def _assertLogLines(async_client, device, expected_line_count):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be named _assert_log_lines to keep with Python naming conventions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@tsagadar tsagadar force-pushed the mm/increase-update-reporting-robustness branch from a8bf154 to 6e41625 Compare December 1, 2024 15:48
@b-rowan b-rowan merged commit 4507606 into UpstreamDataInc:master Dec 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants