-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Consistent context usage #1264
Comments
That sounds interesting. |
Did this on a dev branch and fell in a rabbit hole of removing I'm fairly certain that we fix a lot flakiness from the tests if we actually use the ginkgo contexts... |
Hmm I don't see how it would but could be wrong. What are you thinking? |
Sorry had to be more specific. My theory: since the background context isn't finished after the spec execution it doesn't close services that aren't expected to be in the following spec. But sometimes they are there and produce errors by blocking things. Background: I tried to remove the Do I miss something and it's only a coincidence? 🤔 |
I'm definitely not that familiar with the e2e tests, but sounds quite plausible! |
No |
@ThinkChaos @kwitsch Hey, I'd like to make release in the next 1-2 weeks. This is last issue scheduled for 0.23. Is there something in progress and will be implemented or should I change fix version to 0.24? |
@0xERR0R Sorry I forgot to update my last comment. 😅 |
I'll do a search for There's one thing I noticed I broke with #1261 and I think we should fix before v0.24. See #1266. |
Let's make a checklist (please edit this post if you have more ideas)!
.golang-ci.yml
: enable context related linters Refactoring: FileDownloader #1281cmd/
: have a local change for this, will make MR after v0.24ListCache.Refresh
log/
I want to support passing a logger via a context, so we can get rid of
Request.Log
and just have the right logger be chosen byr.log(ctx)
. Started work on that, but depends on other stuff first. refactor(log): store log in context so it's automatically propagated #1356lists
: Refactoring: FileDownloader #1281FileDownloader.DownloadFile
Refactoring: FileDownloader #1281redis/
Refactoring Redis #1271resolver.Resolver
refactor: make use of contexts in more places #1261server.go
Shutdown -> ShutdownContext Refactoring server.go #1277server.go
removecontext.Background()
in favor of correct Context Refactoring server.go #1277not necessary since the servers inside are closed with a contextserver.go
cancel go routines onctx.Done()
The text was updated successfully, but these errors were encountered: