Skip to content
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

test: Use stable tags instead of :latest #14093

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

pchaigno
Copy link
Member

We use the latest tag for several of the Docker images in tests. That has two drawbacks: (1) unless imagePullPolicy is specified, we always attempts to pull the image and (2) we will start using new latest images as soon as they are available, which can cause our tests to flake.

This pull request avoids such use of latest to prefer an equivalent stable tag. When a stable tag did not already exist, 1.0 was created. When a source code repository existed for the image, a 1.0 GitHub release was created. When the source code wasn't available, the 1.0 image tag is simply a copy of current latest tag.

Fixes: #4483

@pchaigno pchaigno added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Nov 19, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Nov 19, 2020
@pchaigno pchaigno force-pushed the pr/pchaigno/remove-latest-image-pulls branch 2 times, most recently from e93eead to 3d3064b Compare November 19, 2020 17:55
We use the latest tag for several of the Docker images in tests. That
has two drawbacks: (1) unless imagePullPolicy is specified, we always
attempts to pull the image and (2) we will start using new latest images
as soon as they are available, which can cause our tests to flake.

This commit avoids such use of latest to prefer an equivalent stable
tag. When a stable tag did not already exist, 1.0 was created. When a
source code repository existed for the image, a 1.0 GitHub release was
created. When the source code wasn't available, the 1.0 image tag is
simply a copy of current latest tag.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno force-pushed the pr/pchaigno/remove-latest-image-pulls branch from 3d3064b to 186902d Compare November 19, 2020 17:56
@pchaigno pchaigno marked this pull request as ready for review November 19, 2020 17:57
@pchaigno pchaigno requested review from a team as code owners November 19, 2020 17:57
@pchaigno pchaigno requested a review from aanm November 19, 2020 17:57
Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳 🥳 🥳 🥳 🥳 🥳 🥳 🥳 🥳 🥳

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@pchaigno
Copy link
Member Author

None of the runtime tests cover changes in this PR, so the RuntimePrivilegedUnitTests failure appears to be a flake. I filed #14125 for it. Marking as ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 23, 2020
@jibi jibi merged commit f665152 into master Nov 23, 2020
@jibi jibi deleted the pr/pchaigno/remove-latest-image-pulls branch November 23, 2020 12:30
pchaigno added a commit to cilium/packer-ci-build that referenced this pull request Nov 23, 2020
Pull request cilium/cilium#14093 removed all
references to :latest in our tests, prefering stable image tags. This
pull request updates the list of pre-pulled images accordingly.

Signed-off-by: Paul Chaignon <paul@cilium.io>
pchaigno added a commit to cilium/packer-ci-build that referenced this pull request Nov 23, 2020
Pull request cilium/cilium#14093 removed all
references to :latest in our tests, preferring stable image tags. This
pull request updates the list of pre-pulled images accordingly.

Signed-off-by: Paul Chaignon <paul@cilium.io>
pchaigno added a commit to cilium/packer-ci-build that referenced this pull request Nov 25, 2020
Pull request cilium/cilium#14093 removed all
references to :latest in our tests, preferring stable image tags. This
pull request updates the list of pre-pulled images accordingly.

Signed-off-by: Paul Chaignon <paul@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Change the examples image tags to point to a more "stable" tag instead of latest
6 participants