-
Notifications
You must be signed in to change notification settings - Fork 432
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
Resolve data race in setup syncer test #6282
Conversation
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit cbaf4c2): https://gloo-edge--pr6282-test-flakes-shared-i-qqzc1bva.web.app (expires Fri, 15 Apr 2022 19:09:00 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
// SetupFunc is used to configure Gloo with appropriate configuration | ||
// It is assumed to run once at construction time, and therefore it executes directives that | ||
// are also assumed to only run at construction time. | ||
// One of those, is the construction of schemes: https://github.com/kubernetes/kubernetes/pull/89019#issuecomment-600278461 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh I remember seeing that and thinking it was just something we were doing in gloo.
Its great that you were able to identify where we actually call the scheme setup!
* Reduce test flakes (#6211) * First pass of cleanup * more * Fixup gateway e2e tests * add changelog * fix route options tests? * cleanup comments in assertions * Just after each to match just before * re-add config Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve panic in gateway validation client (#6260) * add test * add fix for panicing test * unfocus test * add changelog * goimports -w * Update changelog/v1.12.0-beta2/robust-client-panic.yaml Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve consul plugin data race (#6271) * use dependency injectio to handle fallback resolution * add changelog * fixup dns resolvers and test * Resolve data race in setup syncer test (#6282) * add changelogs * delete duplicate changelogs Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io>
* Reduce test flakes (#6211) * First pass of cleanup * more * Fixup gateway e2e tests * add changelog * fix route options tests? * cleanup comments in assertions * Just after each to match just before * re-add config Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve panic in gateway validation client (#6260) * add test * add fix for panicing test * unfocus test * add changelog * goimports -w * Update changelog/v1.12.0-beta2/robust-client-panic.yaml Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve consul plugin data race (#6271) * use dependency injectio to handle fallback resolution * add changelog * fixup dns resolvers and test * Resolve data race in setup syncer test (#6282) * add changelogs * delete duplicate changelogs Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io>
* Reduce test flakes (#6211) * First pass of cleanup * more * Fixup gateway e2e tests * add changelog * fix route options tests? * cleanup comments in assertions * Just after each to match just before * re-add config Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve panic in gateway validation client (#6260) * add test * add fix for panicing test * unfocus test * add changelog * goimports -w * Update changelog/v1.12.0-beta2/robust-client-panic.yaml Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve consul plugin data race (#6271) * use dependency injectio to handle fallback resolution * add changelog * fixup dns resolvers and test * Resolve data race in setup syncer test (#6282) * add changelogs * delete duplicate changelogs Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io>
* Reduce test flakes (#6211) * First pass of cleanup * more * Fixup gateway e2e tests * add changelog * fix route options tests? * cleanup comments in assertions * Just after each to match just before * re-add config Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve panic in gateway validation client (#6260) * add test * add fix for panicing test * unfocus test * add changelog * goimports -w * Update changelog/v1.12.0-beta2/robust-client-panic.yaml Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io> Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> * Resolve consul plugin data race (#6271) * use dependency injectio to handle fallback resolution * add changelog * fixup dns resolvers and test * Resolve data race in setup syncer test (#6282) * move changelog * fixup registry * de duplicate changelogs * delete dynamic forward proxy test * delete hybrid test * undo kube2e changes, panic occurring with gomega * update changelog * undo delete Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Kevin Dorosh <kevin.dorosh@solo.io>
Description
Resolve a data race that occurs in our setup syncer test
Context
I think this data race is due to our tests and not due to our implementation. Per kubernetes/kubernetes#89019 (comment), we do setup schemes at construction time, as we should. Moreover, this flake has only occurred in this specific test. If this were a bug in our Gloo code, I would have expected to see it fail in other tests.
Checklist:
make -B install-go-tools generated-code
to ensure there will be no code diff