-
Notifications
You must be signed in to change notification settings - Fork 29
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
Flaky Unit Test Results #103
Comments
/kind cleanup |
hey @otaviof I finally got to spend some quality time (like an entire afternoon) on this flake. What I ended up doing was start from main branch and reproduced both with your To that end, I saw first hand the k8s test framework / fakeclient "fragility" I believe you articulated to us back whenever we discussed this in office hours (which if I remember correctly was some time after you posted #104). Now, running in the debugger especially, where I was able to set break points when the events came into the pod watcher for example, I saw some "oddities" which made me pivot a bit. For example, I saw failures reported at cli/pkg/shp/reactor/pod_watcher_test.go Line 234 in ff8e81d
In sorting this out, this got me down a path where I have a set of changes (which still need some clean up before I push to a PR), which fall under these categories:
When I pick back up hopefully tomorrow, I want to cross reference with your #104 to see if there is any changes I've made that resemble what you did. As well as tackle the "coding cleanup". But overall it is a lot smaller of a change than your #104. To that, when I do get a PR up, we can talk about the staging of things. Certainly some form of your #104 refactor as a long term goal could make sense. That said, it also may make sense to get a reviewed and agreed upon form of my change to resolve the flakes in the interim. Anyway, I wanted to at least give you some inkling of what I did today, and that I may have a PR coming in this space. We can certainly talk more during the next team office hours, when I could even share some code, even if I don't have it quite ready for a PR. As a preview, here are some log snippets using your
and
|
TestStartBuildRunFollowLog
(pkg/shp/cmd/build
)Fails after a few attempts:
Test_PodWatcherEvents
(pkg/shp/reactor
)Running the same test a few times sequentially, ends up as the following:
The text was updated successfully, but these errors were encountered: