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

automated: linux: ota-update add static-delta test #463

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

mwasilew
Copy link
Contributor

Static delta is a variant of OTA update test. It exercises a feature of ostree that lets limit the number of downloads from ostree server by packing the objects into compressed packages. ostree server is also able to calculate the size of the whole update. This allows aktualizr-lite to reject the OTA update if it's size exceeds the threshold limits. Default threshold in aktualizr-lite is 90% disk occupancy after OTA update.

@mwasilew mwasilew marked this pull request as draft August 22, 2023 08:56
@mwasilew
Copy link
Contributor Author

This is still WIP. Waiting for the final version of aktualizr-lite to test against.

@mwasilew mwasilew force-pushed the ota-full-disk branch 8 times, most recently from 1369c02 to 6109265 Compare November 2, 2023 10:17
@mwasilew mwasilew marked this pull request as ready for review November 2, 2023 10:33
@mwasilew
Copy link
Contributor Author

mwasilew commented Nov 2, 2023

@roxell @nareshkamboju I think this is ready for review. I ran a few test jobs. Working example:
https://lava.infra.foundries.io/scheduler/job/30390

automated/linux/ota-update/static-delta.sh Show resolved Hide resolved

dd if=/dev/urandom of=fill_file bs="${BLOCK_SIZE}" count="${TO_FILL}"
ls -l
df -B1
Copy link
Collaborator

Choose a reason for hiding this comment

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

are these two lines needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're very helpful when reading the test job in LAVA. I can add a comment explaining why they're there but I'd like to keep them.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK fair enough.

Static delta is a variant of OTA update test. It exercises a feature of
ostree that lets limit the number of downloads from ostree server by
packing the objects into compressed packages. ostree server is also able
to calculate the size of the whole update. This allows aktualizr-lite to
reject the OTA update if it's size exceeds the threshold limits. Default
threshold in aktualizr-lite is 90% disk occupancy after OTA update.

Signed-off-by: Milosz Wasilewski <[email protected]>
@roxell roxell merged commit 3166830 into Linaro:master Nov 6, 2023
2 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