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: wait on new image tag #1907

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

jelly
Copy link
Member

@jelly jelly commented Nov 7, 2024

testDownloadImage flaked a very often as the test succeeds when runs fast enough. Tagging an image to a new name in this case changes the image list name to copybox possibly because it is sorted before my-busybox.


Alternatively we can wait on either?

@jelly
Copy link
Member Author

jelly commented Nov 7, 2024

Ding ding ding, fails in some cases still so this needs to be conditional

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Ah, you are saying the "contains my-busybox" isn't specific enough? But the parent image shouldn't be shown in the "tr", just in the info below. 🤔 This smells funny, and also fails on some OSes. Let's figure out Monday.

@jelly
Copy link
Member Author

jelly commented Nov 8, 2024

Ah, you are saying the "contains my-busybox" isn't specific enough? But the parent image shouldn't be shown in the "tr", just in the info below. 🤔 This smells funny, and also fails on some OSes. Let's figure out Monday.

The image has two tags, but which one is shown is not predictable which is the issue shown in the failing tests. Either the UI does not update or it is unpredicable.

@jelly
Copy link
Member Author

jelly commented Nov 11, 2024

Cool this works now

testDownloadImage flaked a very often as the test succeeds when runs
fast enough. Tagging an image to a new name in this case sometimes
changes the image list name to `copybox` instead of `my-busybox which
causes the test to flake.
@martinpitt
Copy link
Member

this looks like flake, /me leans on retry button

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Ah, makes sense -- UI has the same order as .RepoTags

@jelly
Copy link
Member Author

jelly commented Nov 11, 2024

Ah, makes sense -- UI has the same order as .RepoTags

Yup, apparently that is not deterministic :D

@jelly jelly merged commit fff8f85 into cockpit-project:main Nov 11, 2024
33 checks passed
@jelly jelly deleted the test-downloadimage-flake branch November 11, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants