Skip to content

src/cmd, playbooks: Drop image prefix for fedora-toolbox - #615

Merged
debarshiray merged 1 commit into
containers:masterfrom
martymichal:drop-fedora-toolbox-image-prefix
Feb 19, 2021
Merged

debarshiray merged 1 commit into
containers:masterfrom
martymichal:drop-fedora-toolbox-image-prefix

Conversation

@martymichal

@martymichal martymichal commented Nov 2, 2020 •

Copy link
Copy Markdown
Member

Due to historical reasons, the 'fedora-toolbox' image hosted in Fedora's
image registry[0] needed to have a special prefix (so called Fedora
generational core). That puts more strain on the image registry because
the toolbox images are periodically refreshed and the previous ones are
kept in the registry. Also, the code of Toolbox needed to account for
this.

This special prefix is no longer required and so we'll start creating
images simply called 'fedora-toolbox'. To be able to use them, Toolbox
needs to be updated, too.

This cannot be merged until all required fedora-toolbox images are
available for use.

Here's a link to the PR in Fedora's dist-git to remove the prefix.

@martymichal martymichal added the 6. Major Change May cause breakage label Nov 2, 2020
@martymichal martymichal added this to the Release 0.1.0 milestone Nov 2, 2020
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

debarshiray pushed a commit to martymichal/toolbox that referenced this pull request Feb 12, 2021
Due to historical reasons, the 'fedora-toolbox' image hosted in Fedora's
image registry[0] needed to have a special prefix (so called Fedora
generational core). That puts more strain on the image registry because
the toolbox images are periodically refreshed and the previous ones are
kept in the registry. Also, the code of Toolbox needed to account for
this.

This special prefix is no longer required and so we'll start creating
images simply called 'fedora-toolbox'. To be able to use them, Toolbox
needs to be updated, too.

containers#615
@debarshiray
debarshiray force-pushed the drop-fedora-toolbox-image-prefix branch from d8a9142 to 4617f99 Compare February 12, 2021 14:05
@softwarefactory-delete-me

Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

debarshiray pushed a commit to martymichal/toolbox that referenced this pull request Feb 12, 2021
@debarshiray
debarshiray force-pushed the drop-fedora-toolbox-image-prefix branch from 4617f99 to d575318 Compare February 12, 2021 17:19
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

debarshiray pushed a commit to martymichal/toolbox that referenced this pull request Feb 12, 2021
@debarshiray
debarshiray force-pushed the drop-fedora-toolbox-image-prefix branch from d575318 to 67226a2 Compare February 12, 2021 18:09
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

debarshiray pushed a commit to martymichal/toolbox that referenced this pull request Feb 19, 2021
@debarshiray
debarshiray force-pushed the drop-fedora-toolbox-image-prefix branch from 67226a2 to 9ecbfa2 Compare February 19, 2021 13:22
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@debarshiray
debarshiray force-pushed the drop-fedora-toolbox-image-prefix branch from 9ecbfa2 to f5bbe35 Compare February 19, 2021 13:48
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@debarshiray
debarshiray merged commit f5bbe35 into containers:master Feb 19, 2021
@martymichal
martymichal deleted the drop-fedora-toolbox-image-prefix branch February 19, 2021 14:54
martymichal added a commit to martymichal/toolbox that referenced this pull request May 26, 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
martymichal added a commit to martymichal/toolbox that referenced this pull request May 26, 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
martymichal added a commit to martymichal/toolbox that referenced this pull request May 26, 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
martymichal added a commit to martymichal/toolbox that referenced this pull request May 26, 2021
The fedora-toolbox:32 image is the first of images in the renamed
toolbox image repository[0]. With the change we can drop the
pull_image_old() function because it was kept only for the old image.

[0] containers#615
martymichal added a commit to martymichal/toolbox that referenced this pull request May 26, 2021
The fedora-toolbox:32 image is the first of images in the renamed
toolbox image repository[0]. With the change we can drop the
pull_image_old() function because it was kept only for the old image.

[0] containers#615

containers#780
martymichal added a commit to martymichal/toolbox that referenced this pull request May 28, 2021
The fedora-toolbox:32 image is the first of images in the renamed
toolbox image repository[0]. With the change we can drop the
pull_image_old() function because it was kept only for the old image.

[0] containers#615

containers#780
martymichal added a commit to martymichal/toolbox that referenced this pull request May 31, 2021
The fedora-toolbox:32 image is the first of images in the renamed
toolbox image repository[0]. With the change we can drop the
pull_image_old() function because it was kept only for the old image.

[0] containers#615

containers#780
martymichal added a commit to martymichal/toolbox that referenced this pull request May 31, 2021
The fedora-toolbox:32 image is the first of images in the renamed
toolbox image repository[0]. With the change we can drop the
pull_image_old() function because it was kept only for the old image.

Seems like newer version of ShellCheck checks the validity of variable
names (SC2153). This caused a false positive, so I silenced it.

[0] containers#615

containers#780
martymichal added a commit that referenced this pull request May 31, 2021
The fedora-toolbox:32 image is the first of images in the renamed
toolbox image repository[0]. With the change we can drop the
pull_image_old() function because it was kept only for the old image.

Seems like newer version of ShellCheck checks the validity of variable
names (SC2153). This caused a false positive, so I silenced it.

[0] #615

#780
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6. Major Change May cause breakage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants