-
Notifications
You must be signed in to change notification settings - Fork 11
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
tests/env.sh: Add aarch64 support #61
Draft
albertofaria
wants to merge
12
commits into
main
Choose a base branch
from
tmt-aarch64
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
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
Ephemeral COPR build failed. @containers/packit-build please check. |
albertofaria
force-pushed
the
tmt-aarch64
branch
13 times, most recently
from
May 1, 2024 20:31
1fe139a
to
6dd26bf
Compare
@albertofaria what is the hold up on this one? |
Signed-off-by: Alberto Faria <[email protected]>
We attempt to detect if a container image is bootable. We can't easily retrieve the image's labels, so we check if /usr/lib/bootc/install exists and is a directory. If so, it is a bootable container. If it is a bootable container but we're not running under Podman, we fail with an error. Once our container's entrypoint starts running, a background process on the host (outside the container) queries Podman for the image's name and ID, which the OCI runtime does not get but bootc-install needs. It then saves the container image as an OCI archive. It then runs the original container to generate the VM image. We do this using krun [1] so that elevated privileges aren't necessary. Our entrypoint blocks until this is done, and all subsequent logic remains the same. We could potentially avoid the OCI archive creation step by mounting the host's container storage into the container running under krun. This isn't trivial to achieve due to SELinux label and context mismatches between the host and the krun environment, so we leave this optimization for a future date. Closes #26. [1] https://github.com/containers/crun/blob/main/krun.1.md Signed-off-by: Alberto Faria <[email protected]>
Store them as untagged containerdisks in the user's container storage. They appear in the output of `podman images`, making users aware of their existence and size on disk, and cleanup commands like `podman image prune` remove them. Signed-off-by: Alberto Faria <[email protected]>
Signed-off-by: Alberto Faria <[email protected]>
Signed-off-by: Alberto Faria <[email protected]>
It allows settings the disk size of the VM image that is generated from a bootc container image. Also improve the default disk size by basing it on the container image size. Signed-off-by: Alberto Faria <[email protected]>
Its value is a random identifier unique to the current run of the current test. Signed-off-by: Alberto Faria <[email protected]>
This reverts commit cb4286e.
Signed-off-by: Alberto Faria <[email protected]>
Signed-off-by: Alberto Faria <[email protected]>
Signed-off-by: Alberto Faria <[email protected]>
albertofaria
force-pushed
the
tmt-aarch64
branch
from
July 11, 2024 15:19
b05793b
to
7ba9be2
Compare
Signed-off-by: Alberto Faria <[email protected]>
albertofaria
force-pushed
the
tmt-aarch64
branch
from
July 11, 2024 15:29
7ba9be2
to
3469a2b
Compare
I'm getting "Guest couldn't be provisioned: Artemis resource ended in 'error' state" failures most of the time from testing farm, thus haven't been able to validate the tests yet. |
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.
TODO: