Toolbx testing: figure out a process to test the image from the compose under test #766
Labels
No labels
agile
anacondawebui
arm
blockerfe
Closed As
Duplicate
Closed As
Fixed
Closed As
Invalid
Closed As
Wontfix
Closed As
Worksforme
coreos
criteria
defect
easyfix
enhancement
iot
meeting
meta
onboarding call
proventesters
retrospective
silverblue
sponsor
test cases
test days
wiki
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quality/tickets#766
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a follow-up from https://pagure.io/fedora-qa/issue/716 . We did most of what was asked there, but one "hole" in the criteria and test case is that we don't really test the toolbx image that's actually created as part of the compose under test. The test case just says "Execute the command toolbox enter and toolbox run to enter the newly created Toolbox container", and that's what the openQA test does also. That will use, I think, whatever toolbx image was last sort of 'tagged stable' for the release being tested, so likely the one from the previous compose.
It would be good if we could figure out a way to test the image from the compose under test as well as or instead of the 'current stable' image. This ticket is for updating the wiki test case, we could also update the openQA test if we can figure it out.
Is there an easy way to get to the artifact generated by the compose?
If I recall correctly, Image Factory produces a tarball in the so-called
docker-archiveordocker saveformat. So, one can download the tarball and do this to make it visible totoolboxandpodman:However, I wonder how much this will be impacted by the KiwiBuiltCloudImages Change for Fedora 40.
Isn't the Wiki test case also used as a hint for
toolboxupdates to stable Fedoras? If so, we might have to differentiate between Fedoras under development, and those that have been released and considered stable.So the way we do this programmatically is via the productmd metadata, i.e. the images.json file. I maintain a thing called fedfind which, these days, mostly acts as a kinda convenience wrapper around that data with some fancy extra functions. The openQA scheduler uses that, and other test systems that want to test images can do the same or use
images.jsondirectly or whatever. So test systems can certainly find and test images that are listed there. The toolbox images listed there are the "Fedora-Container-Toolbox" images that have format tar.xz and type 'docker', so I guess they're in the format you describe. We can definitely try the way you describe, thanks.For humans, the validation matrices list all the images in the compose - in the table at the top of https://fedoraproject.org/wiki/Test_Results:Fedora_40_Branched_20240219.n.0_Installation for e.g. you can see a "Container_Toolbox docker" row. (The tool that generates the pages uses fedfind to produce this table). We can tell human testers to refer to that row to find an image to test.
Yes, the test case will have to cover both paths, the 'simple just run
toolbox enter' path and the more complex way to test a specific image.Cool.
Yeah, it will work if you download the tarballs and do a
skopeo copyto place them incontainers-storagewith the right fully qualified name.nod
Thanks for working on this, @adamwill !
No problem. I've updated the wiki test case and I'm working on enhancing the openQA test to do this now. Let me know if you see anything wrong. Thanks for the pointers!
edit: test run of the modified openQA test will run at https://openqa.stg.fedoraproject.org/tests/3597885 soon, cross your fingers...
why is skopeo copy so slow? I gave it five minutes to run in openQA and it timed out! let's try 10...
alright, well, 10 minutes works. https://openqa.stg.fedoraproject.org/tests/3597926#details . gonna merge all that into prod and call it good.
Metadata Update from @adamwill:
Fantastic!
Yeah, it can be a bit slow. I never dug into why that is.