c2d7b12
Merge pull request #811 from MichaelMure/fix-data-race
Click to expand commit body
graphql: fix two invalid mutex lock leading to data races
Michael Muré
created
7348fb9
github: fix data race when closing event channel
Click to expand commit body
I believe the issue was twofold:
When done importing, the calling context is likely still valid, so if the output channel is not read enough and reach capacity, some event producer down the line can be blocked trying to send in that channel. When closing it, this send is still trying to proceed, which is illegal in go.
In rateLimitHandlerClient, there was a need to 2 different type of output channel: core.ExportResult and ImportEvent. To do so, the previous code was using a single channel type RateLimitingEvent and a series of goroutines to read/cast/send to the final channel. This could result in more async goroutine being stuck trying to send in an at-capacity channel. Instead, the code now use a simple synchronous callback to directly push to the final output channel. No concurrency needed anymore and the code is simpler.
Any of those fixes could have resolved the data race, but both fixes is more correct.
Michael Muré
created
fe23123
graphql: fix two invalid mutex lock leading to data races
Michael Muré
created
eda312f
fix(778): remove extra mutex lock when resolving bug prefix
Steve Moyer
created
295da9c
cache: ensure that the default repo has a non-empty name to make js/apollo happy
Michael Muré
created
96327c3
Merge pull request #806 from MichaelMure/docs
Complete bug IDs, bridges, users, labels where appropriate.
This works in bash and fish. ZSH is not yet supported by Cobra.
In fish, descriptions (the part of a completion after the "\t") are shown
as completion label, and can be searched with Ctrl+S.
Reproduce with
fish -C 'source misc/fish_completion/git-bug'
git bug select ^I
(tested with fish version 3.3.1)
Also works with bash, but only for "git-bug" (with the dash)
bash --rcfile <(echo source misc/bash_completion/git-bug)
git-bug select ^I
Closes #493