Repository navigation
chore: use kitsync.ErrGroup instead of errgroup.Group - #6011
Merged
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6011 +/- ##
==========================================
- Coverage 76.63% 76.59% -0.05%
==========================================
Files 516 517 +1
Lines 69350 69379 +29
==========================================
- Hits 53149 53138 -11
- Misses 13308 13346 +38
- Partials 2893 2895 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
atzoum
force-pushed
the
chore.errGroup
branch
3 times, most recently
from
June 19, 2025 10:33
7fe5d4c to
26e704b
Compare
atzoum
marked this pull request as ready for review
June 19, 2025 10:34
fracasula
approved these changes
Jun 19, 2025
atzoum
enabled auto-merge (squash)
June 19, 2025 13:04
atzoum
force-pushed
the
chore.errGroup
branch
2 times, most recently
from
June 20, 2025 11:31
9dbafd2 to
6cb646d
Compare
cisse21
approved these changes
Jun 23, 2025
This was referenced Jun 23, 2025
Closed
atzoum
added a commit
that referenced
this pull request
Jun 23, 2025
# Description Latest version of `errgroup.Group` introduces a [breaking change](golang/go#53757 (comment)), which doesn't propagate a panic until `Wait` is called. Thus, wherever we postpone the `Wait` call until shutdown, we are replacing usages of `errgroup.Group` with `kitsync.ErrGroup` which is based on the previous behaviour of the `errgroup.Group`. We are not using `kitsync.EagerGroup` for the following reasons: - A zero-value `kitsync.EagerGroup` is not valid - It exhibits unique behaviour with respect to context cancellation which can lead to propagating an error during `EagerGroup.Wait` even though no goroutine returned an error. This has to do mostly with the eager group avoiding to call goroutines if the context has been canceled and it communicates this condition through an error. ## Linear Ticket resolves PIPE-2154 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
This was referenced Jun 23, 2025
Merged
satishrudderstack
pushed a commit
that referenced
this pull request
Jun 23, 2025
🤖 I have created a release *beep* *boop* --- ## [1.53.0-rc.1](v1.52.0...v1.53.0-rc.1) (2025-06-23) ### Features * add support for Snowflake Iceberg tables ([#5922](#5922)) ([93b3f5e](93b3f5e)) ### Bug Fixes * add golang.org/x/net/html vulnerability ([#5988](#5988)) ([92f8c1c](92f8c1c)) * add source type to internalBatch request stats ([#6030](#6030)) ([1c8350e](1c8350e)) * add validation to skip disabled destinations to be associated with accounts ([#5985](#5985)) ([06a584c](06a584c)) * signal handling in NotifyContextWithCallback ([#5987](#5987)) ([c3fc223](c3fc223)) ### Miscellaneous * add metrics for duplicate events in staging files ([#5998](#5998)) ([2e3ffc5](2e3ffc5)) * bump go kit ([#6034](#6034)) ([1fcb140](1fcb140)) * create enterprise images with an additional race enabled build ([#5999](#5999)) ([f8d2a94](f8d2a94)) * enable warehouse race test ([#5997](#5997)) ([baa83f7](baa83f7)) * gateway warehouse integration test ([#5996](#5996)) ([861fada](861fada)) * sync release v1.52.1 to main branch ([#6009](#6009)) ([deb8c00](deb8c00)) * sync release v1.52.2 to main branch ([#6019](#6019)) ([6cdbb65](6cdbb65)) * sync release v1.52.3 to main branch ([#6024](#6024)) ([3fecf81](3fecf81)) * sync release v1.52.4 to main branch ([#6027](#6027)) ([fbf54fe](fbf54fe)) * sync release v1.52.5 to main branch ([#6032](#6032)) ([8f60155](8f60155)) * update nodeSelector for warehouse benchmark deploy ([#6001](#6001)) ([4e6d4ac](4e6d4ac)) * use a reloadable config for deciding whether to shudown on non-reloadable config change ([#6036](#6036)) ([3d0a05a](3d0a05a)) * use kitsync.ErrGroup instead of errgroup.Group ([#6011](#6011)) ([bba66d6](bba66d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
satishrudderstack
pushed a commit
that referenced
this pull request
Jun 25, 2025
🤖 I have created a release *beep* *boop* --- ## [1.53.0](v1.52.0...v1.53.0) (2025-06-23) ### Features * add support for Snowflake Iceberg tables ([#5922](#5922)) ([93b3f5e](93b3f5e)) ### Bug Fixes * add golang.org/x/net/html vulnerability ([#5988](#5988)) ([92f8c1c](92f8c1c)) * add source type to internalBatch request stats ([#6030](#6030)) ([1c8350e](1c8350e)) * add validation to skip disabled destinations to be associated with accounts ([#5985](#5985)) ([06a584c](06a584c)) * signal handling in NotifyContextWithCallback ([#5987](#5987)) ([c3fc223](c3fc223)) ### Miscellaneous * add metrics for duplicate events in staging files ([#5998](#5998)) ([2e3ffc5](2e3ffc5)) * bump go kit ([#6034](#6034)) ([1fcb140](1fcb140)) * create enterprise images with an additional race enabled build ([#5999](#5999)) ([f8d2a94](f8d2a94)) * enable warehouse race test ([#5997](#5997)) ([baa83f7](baa83f7)) * gateway warehouse integration test ([#5996](#5996)) ([861fada](861fada)) * sync release v1.52.1 to main branch ([#6009](#6009)) ([deb8c00](deb8c00)) * sync release v1.52.2 to main branch ([#6019](#6019)) ([6cdbb65](6cdbb65)) * sync release v1.52.3 to main branch ([#6024](#6024)) ([3fecf81](3fecf81)) * sync release v1.52.4 to main branch ([#6027](#6027)) ([fbf54fe](fbf54fe)) * sync release v1.52.5 to main branch ([#6032](#6032)) ([8f60155](8f60155)) * update nodeSelector for warehouse benchmark deploy ([#6001](#6001)) ([4e6d4ac](4e6d4ac)) * use a reloadable config for deciding whether to shudown on non-reloadable config change ([#6036](#6036)) ([3d0a05a](3d0a05a)) * use kitsync.ErrGroup instead of errgroup.Group ([#6011](#6011)) ([bba66d6](bba66d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Latest version of
errgroup.Groupintroduces a breaking change, which doesn't propagate a panic untilWaitis called. Thus, wherever we postpone theWaitcall until shutdown, we are replacing usages oferrgroup.Groupwithkitsync.ErrGroupwhich is based on the previous behaviour of theerrgroup.Group.We are not using
kitsync.EagerGroupfor the following reasons:kitsync.EagerGroupis not validEagerGroup.Waiteven though no goroutine returned an error. This has to do mostly with the eager group avoiding to call goroutines if the context has been canceled and it communicates this condition through an error.Linear Ticket
resolves PIPE-2154
Security