-
Notifications
You must be signed in to change notification settings - Fork 344
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
Inconsistent unit test result #1181
Comments
@wilsonehusin yes, the CI is flaky. The workaround is to kick off the entire job after a failure. We will need to address this issue and possibly re-write the CI jobs. |
Investigation
Proposal solutionI think it is correct for With that being said, I think we should only assert the values where we specifically modify the registries, i.e. choosing one/any/all of |
@vladimirvivien do you have thoughts on the solution? |
@wilsonehusin you know how I feel about this part of the code. For now, any fix that would make things better is welcome. By the way thanks for looking into this with such insight. |
This ensures that we are testing images which were overriden by custom registry. Some registries are meant to be excluded from override. See #1181 for details. Signed-off-by: Wilson E. Husin <whusin@vmware.com>
What steps did you take and what happened:
Unit tests under
pkg/image
deliver inconsistent resultWhat did you expect to happen:
Unit tests should be consistent
Anything else you would like to add:
My initial reaction is probably improper mock or race conditions. This occurred on CircleCI on
2b8d1eabc96070954a3fad5c482973fffefd2506
as part of #1179.Failed on first run, but without anything being changed, it passed on second run.
The text was updated successfully, but these errors were encountered: