Repository navigation
test/system: Decouple image caching from Zuul - #774
Merged
martymichal merged 1 commit intoMay 31, 2021
Merged
martymichal merged 1 commit into
martymichal merged 1 commit into
Conversation
martymichal
marked this pull request as draft
May 25, 2021 22:14
martymichal
force-pushed
the
test/system/decouple-caching-from-zuul
branch
4 times, most recently
from
May 26, 2021 12:11
a4a323a to
0f68fcf
Compare
martymichal
marked this pull request as ready for review
May 26, 2021 12:12
Member
Author
|
recheck |
|
Build failed.
|
martymichal
force-pushed
the
test/system/decouple-caching-from-zuul
branch
from
May 26, 2021 21:05
0f68fcf to
cdca5f3
Compare
|
Build failed.
|
martymichal
force-pushed
the
test/system/decouple-caching-from-zuul
branch
from
May 26, 2021 21:19
cdca5f3 to
1a9909a
Compare
|
Build failed.
|
martymichal
added a commit
to martymichal/toolbox
that referenced
this pull request
May 31, 2021
Since the rewrite of the system test suite[0] we've relied on the Zuul playbooks for taking care of caching images using Skopeo for increasing the reliability of the tests (in the past the instability of the Fedora registry caused problems). This state is problematic if we want to use the tests in other environments than the Zuul CI. This moves the caching from Zuul into the system tests. Currently, Bats does not support officially suite-wide setup and teardown functions. The solution I chose was to add two new test files that are executed before and after all tests. This may complicate the execution of cherry-picked tests but that is not a very common use case anyway. The tests are now to some extent capable of adjusting to the host environment. This is meant in the sense of: I'm running on RHEL, the "default image" is UBI; I'm running on Fedora, the "default image" is fedora-toolbox. This mechanism relies on os-release, which is the same as what Toolbox itself uses. Along the road I chose to update the f29/fedora-toolbox:29 image to the fedora-toolbox:32 image because I did not want to maintain two versions of images (the name changed some time ago[1]). I also introduced or modified a number of helper functions to make better use of the caching and default system recognition. [0] containers#517 [1] containers#615 containers#774
martymichal
force-pushed
the
test/system/decouple-caching-from-zuul
branch
from
May 31, 2021 10:41
1a9909a to
16b3560
Compare
|
Build succeeded.
|
Member
Author
|
recheck |
|
Build succeeded.
|
Since the rewrite of the system test suite[0] we've relied on the Zuul playbooks for taking care of caching images using Skopeo for increasing the reliability of the tests (in the past the instability of the Fedora registry caused problems). This state is problematic if we want to use the tests in other environments than the Zuul CI. This moves the caching from Zuul into the system tests. Currently, Bats does not support officially suite-wide setup and teardown functions. The solution I chose was to add two new test files that are executed before and after all tests. This may complicate the execution of cherry-picked tests but that is not a very common use case anyway. The tests are now to some extent capable of adjusting to the host environment. This is meant in the sense of: I'm running on RHEL, the "default image" is UBI; I'm running on Fedora, the "default image" is fedora-toolbox. This mechanism relies on os-release, which is the same as what Toolbox itself uses. [0] containers#517 containers#774
martymichal
force-pushed
the
test/system/decouple-caching-from-zuul
branch
from
May 31, 2021 11:58
16b3560 to
da6b6a7
Compare
|
Build succeeded.
|
debarshiray
reviewed
Jun 18, 2021
debarshiray
left a comment
Member
There was a problem hiding this comment.
Nice! I wonder if it would help to have a Toolbox flag that outputs the details of the image and container that would be used by a specific toolbox incantation? Something like git commit --dry-run.
This file contains hidden or 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
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.
See commit for description.
Fixes #751