-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add functional test for update agent [ORBP-573] #310
Draft
alekseifedotov
wants to merge
31
commits into
main
Choose a base branch
from
aleksei/add-integration-test-for-update-agent
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add functional test for update agent [ORBP-573] #310
alekseifedotov
wants to merge
31
commits into
main
from
aleksei/add-integration-test-for-update-agent
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alekseifedotov
changed the title
Add integration test for update agent
Add integration test for update agent [ORBP-573]
Dec 9, 2024
alekseifedotov
force-pushed
the
aleksei/add-integration-test-for-update-agent
branch
from
December 13, 2024 19:19
44e5edf
to
f3b7a49
Compare
alekseifedotov
force-pushed
the
aleksei/add-integration-test-for-update-agent
branch
from
January 20, 2025 13:06
f3b7a49
to
c4a2166
Compare
alekseifedotov
changed the title
Add integration test for update agent [ORBP-573]
Add functional test for update agent [ORBP-573]
Jan 28, 2025
we can't emulate MCU
use of capsule requeires mount permission
update-agent calls 'systemctl reboot' at the end
alekseifedotov
force-pushed
the
aleksei/add-integration-test-for-update-agent
branch
from
January 30, 2025 19:31
542af77
to
641c34c
Compare
alekseifedotov
force-pushed
the
aleksei/add-integration-test-for-update-agent
branch
from
January 30, 2025 19:40
641c34c
to
e4ee7eb
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR I'm adding integration test for update agent.
How it works
The script spawns a podman container with update-agent inside. That docker container partially reproduces orb environment. It mocks:
efivars
/usr/persistent/
/dev/mmcblk0
./etc/orb_update_agent.conf
claim.json
In claim.json it contains links on local files to get the update.
After update-agent is done, the script compares the resulting partitions with the expected ones.
Future steps
I'll make it a draft for now.
Requirements: