Skip to content

chore: sync release v1.56.3 to main branch - #6239

Merged
mihir20 merged 11 commits into
masterfrom
sync-release-1488ff094b309f7c1d9a0fd946c9077913a620c2
Aug 18, 2025
Merged

mihir20 merged 11 commits into
masterfrom
sync-release-1488ff094b309f7c1d9a0fd946c9077913a620c2

Conversation

@devops-github-rudderstack

@devops-github-rudderstack devops-github-rudderstack commented Aug 18, 2025 •

Copy link
Copy Markdown
Collaborator

Description

Syncing patch release v1.56.3 to main branch

↓↓ Please review and edit commit overrides before merging ↓↓

BEGIN_COMMIT_OVERRIDE
fix: getting occasional unauthenticated errors from googlepubsub (#6228)
fix: handling empty schema for table level schemas (#6233)
chore: refactor Google Pub/Sub to add retry logic for auth errors (#6229)
fix: histogram buckets for schema snapshots (#6234)
END_COMMIT_OVERRIDE

achettyiitr and others added 9 commits August 1, 2025 13:12
# Description

- While inserting source jobs, in case of empty tables or jobs, return
an error instead of silently succeeding it.

```
goroutine 62670 [running]:
github.com/rudderlabs/rudder-go-kit/logger.(*logger).Fataln(0x4000805680, {0x480acd4, 0x27}, {0x40028db808, 0x7, 0x3?})
\t/go/pkg/mod/github.com/rudderlabs/[email protected]/logger/logger.go:381 +0x234
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1.1()
\t/rudder-server/utils/crash/logger.go:33 +0x57c
sync.(*Once).doSlow(0x16?, 0x25?)
\t/usr/local/go/src/sync/once.go:78 +0xf0
sync.(*Once).Do(0x4006826bd8?, 0x4fa9c?)
\t/usr/local/go/src/sync/once.go:69 +0x24
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1()
\t/rudder-server/utils/crash/logger.go:32 +0x90
panic({0x43fe800?, 0x4083180b10?})
\t/usr/local/go/src/runtime/panic.go:792 +0x124
github.com/rudderlabs/rudder-server/warehouse/internal/repo.(*Source).Insert(0x400082b650, {0x509cf78, 0x4005449a10}, {0x7e4f280, 0x0, 0x0})
\t/rudder-server/warehouse/internal/repo/source.go:54 +0x2e8
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobs(0x4000a9c6c0, {0x509cf78, 0x4005449a10}, {{0x4082e86da0, 0x1b}, {0x4082e86dc0, 0x1b}, {{0x0, 0xee01da36a, 0x0}}, ...})
\t/rudder-server/warehouse/source/source.go:112 +0x7d0
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobHandler(0x4000a9c6c0, {0x5092510, 0x4083193308}, 0x40010b7680)
\t/rudder-server/warehouse/source/http.go:37 +0x33c
net/http.HandlerFunc.ServeHTTP(0x400082b9e0?, {0x5092510?, 0x4083193308?}, 0x0?)
\t/usr/local/go/src/net/http/server.go:2294 +0x38
github.com/rudderlabs/rudder-server/warehouse/api.(*Api).addMasterEndpoints.func1.1.(*Api).logMiddleware.3({0x5092510, 0x4083193308}, 0x40010b7680)
\t/rudder-server/warehouse/api/http.go:460 +0x58
net/http.HandlerFunc.ServeHTTP(0x4043b52c30?, {0x5092510?, 0x4083193308?}, 0x400e4ccba4?)
\t/usr/local/go/src/net/http/server.go:2294 +0x38
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x400c4c0120, {0x5092510, 0x4083193308}, 0x40010b7680)
\t/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:478 +0x280
net/http.Hand","stack":"goroutine 62670 [running]:
runtime/debug.Stack()
\t/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1.1()
\t/rudder-server/utils/crash/logger.go:34 +0x4c
sync.(*Once).doSlow(0x16?, 0x25?)
\t/usr/local/go/src/sync/once.go:78 +0xf0
sync.(*Once).Do(0x4006826bd8?, 0x4fa9c?)
\t/usr/local/go/src/sync/once.go:69 +0x24
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1()
\t/rudder-server/utils/crash/logger.go:32 +0x90
panic({0x43fe800?, 0x4083180b10?})
\t/usr/local/go/src/runtime/panic.go:792 +0x124
github.com/rudderlabs/rudder-server/warehouse/internal/repo.(*Source).Insert(0x400082b650, {0x509cf78, 0x4005449a10}, {0x7e4f280, 0x0, 0x0})
\t/rudder-server/warehouse/internal/repo/source.go:54 +0x2e8
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobs(0x4000a9c6c0, {0x509cf78, 0x4005449a10}, {{0x4082e86da0, 0x1b}, {0x4082e86dc0, 0x1b}, {{0x0, 0xee01da36a, 0x0}}, ...})
\t/rudder-server/warehouse/source/source.go:112 +0x7d0
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobHandler(0x4000a9c6c0, {0x5092510, 0x4083193308}, 0x40010b7680)
\t/rudder-server/warehouse/source/http.go:37 +0x33c
net/http.HandlerFunc.ServeHTTP(0x400082b9e0?, {0x5092510?, 0x4083193308?}, 0x0?)
\t/usr/local/go/src/net/http/server.go:2294 +0x38
github.com/rudderlabs/rudder-server/warehouse/api.(*Api).addMasterEndpoints.func1.1.(*Api).logMiddleware.3({0x5092510, 0x4083193308}, 0x40010b7680)

runtime error: index out of range [0] with length 0

```

## Linear Ticket

- Resolves WAR-993

## Security

- [ ] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
🤖 I have created a release *beep* *boop*
---


##
[1.56.1](v1.56.0...v1.56.1)
(2025-08-01)


### Bug Fixes

* warehouse source empty jobs
([#6204](#6204))
([e27b8c0](e27b8c0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
…fails" (#6211)

# Description

- This reverts commit 2c11854.

## Linear Ticket
 
- Resolves WAR-1002

## 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.
🤖 I have created a release *beep* *boop*
---


##
[1.56.2](v1.56.1...v1.56.2)
(2025-08-04)


### Miscellaneous

* revert "fix: snowpipe events getting duplicated if status API fails"
([#6211](#6211))
([6005630](6005630))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
# Description

Decreasing default value of `PublishSettings.NumGoroutines` to 25 from
[25*GOMAXPROCS](https://github.com/googleapis/google-cloud-go/blob/53f97813d99aeaaf45108c642a2d94f598d1bb6b/pubsub/topic.go#L1330)
in order to reduce the risk of occasional unauthenticated errors
mentioned
[here](googleapis/google-cloud-go#11775)


## 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.
# Description

- Do validation of table-level schemas only in case if some schema is
present.

## Linear Ticket

- Resolves WAR-1017

## 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.
)

# Description

Add retry logic with exponential backoff to handle intermittent
unauthenticated errors from Google Pub/Sub. This improves reliability by
automatically retrying authentication failures up to 3 times with 100ms,
200ms, and 400ms delays.

## Changes Made

- Add  method with exponential backoff using the  library
- Retry up to 3 times on authentication errors () only
- Use 100ms, 200ms, 400ms backoff delays for quick recovery
- Mark non-authentication errors as permanent to avoid unnecessary
retries
- Add comprehensive logging for retry attempts and failures
- Follow existing codebase patterns for retry implementations

## Linear Ticket


https://linear.app/rudderstack/issue/RUD-2463/hey-subteams02aeql26ct-subteams03shj20350-pandampg-has

## 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.

The retry logic only handles authentication errors and doesn't expose
any sensitive information. Non-authentication errors are immediately
returned without retry to prevent potential security issues.
# Description

- Histogram buckets for `schema_snapshot_patch_size` and
`schema_snapshot_compression_ratio`.
- Using `now.UTC()` instead of recomputing again for `createdAt` and
`updatedAt` time or using the previous one.

## Linear Ticket

- Resolves WAR-1022

## 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.
🤖 I have created a release *beep* *boop*
---


##
[1.56.3](v1.56.2...v1.56.3)
(2025-08-14)


### Bug Fixes

* getting occasional unauthenticated errors from googlepubsub
([#6228](#6228))
([5aaadfb](5aaadfb))
* handling empty schema for table level schemas
([#6233](#6233))
([41b531b](41b531b))
* histogram buckets for schema snapshots
([#6234](#6234))
([e0aafda](e0aafda))


### Miscellaneous

* refactor Google Pub/Sub to add retry logic for auth errors
([#6229](#6229))
([5bb6589](5bb6589))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
@achettyiitr
achettyiitr requested a review from mihir20 August 18, 2025 05:25
@mihir20
mihir20 enabled auto-merge (squash) August 18, 2025 06:07
@mihir20
mihir20 merged commit cc39306 into master Aug 18, 2025
@mihir20
mihir20 deleted the sync-release-1488ff094b309f7c1d9a0fd946c9077913a620c2 branch August 18, 2025 06:36
@codecov

codecov Bot commented Aug 18, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 53.84615% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.85%. Comparing base (c97ad7a) to head (61fd30f).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
.../streammanager/googlepubsub/googlepubsubmanager.go 49.15% 28 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6239      +/-   ##
==========================================
+ Coverage   76.77%   76.85%   +0.07%     
==========================================
  Files         521      521              
  Lines       70779    70819      +40     
==========================================
+ Hits        54340    54425      +85     
+ Misses      13548    13506      -42     
+ Partials     2891     2888       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants