Repository navigation
chore: sync release v1.58.0 to main branch - #6294
Merged
atzoum merged 2 commits intoSep 2, 2025
Merged
Conversation
…ng (#6290) # Description This PR fixes failing tests in `enterprise/reporting/error_reporting_db_test.go` by ensuring consistent sample event serialization in the error reporting system. ## Problem The tests were failing due to inconsistent handling of sample events, particularly when they were `nil`. The original code used `string(sampleEvent)` which would convert `nil` to `"<nil>"`, but the tests expected `"{}"` for nil sample events. ## Solution - **Main Fix**: Replace `string(sampleEvent)` with `getStringifiedSampleEvent(sampleEvent)` in `writeGroupedErrors` function - **Test Improvements**: Refactor test code to use helper functions and fix mock expectations - **Config Subscriber**: Fix initialization issues by creating fresh test setup for each subtest ## Changes Made ### Core Fix (`enterprise/reporting/error_reporting.go`) ```go // Before string(sampleEvent), // After getStringifiedSampleEvent(sampleEvent), ``` This ensures that: - `nil` sample events are converted to `"{}"` instead of `"<nil>"` - Empty sample events are handled consistently - Valid JSON sample events are preserved as-is ### Test Improvements (`enterprise/reporting/error_reporting_db_test.go`) - Added helper functions to reduce code duplication - Fixed `go-sqlmock` expectation ordering - Fixed `configSubscriber` initialization for PII filtering tests - Added comprehensive test for `getStringifiedSampleEvent` function ## Testing - ✅ All tests in `enterprise/reporting` package pass - ✅ Specifically fixed tests: - `TestErrorDetailsReport` (all subtests) - `TestErrorDetailsReport_RateLimiting` - `TestErrorDetailReporter_GetStringifiedSampleEvent` (all subtests) ## Impact - **Low Risk**: This is a test fix that improves sample event handling consistency - **No Breaking Changes**: The change maintains backward compatibility - **Improved Reliability**: Better handling of edge cases in sample event serialization ## Linear Ticket Resolves https://linear.app/rudderstack/issue/INT-4023/integrate-error-rate-limiter-into-errordetailreporter ## 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.58.0](v1.57.0...v1.58.0) (2025-09-02) ### Features * implement error normalizer with similarity detection for reporting ([#6248](#6248)) ([b4653d3](b4653d3)) * **router:** delivery throttler ([#6225](#6225)) ([f55c7a8](f55c7a8)) ### Bug Fixes * cron tracker query causing master restarts ([#6252](#6252)) ([51437b9](51437b9)) * snowpipe events getting duplicated if status API fails ([#6211](#6211)) ([#6244](#6244)) ([8d6838d](8d6838d)) * transformation metrics count amplification ([#6258](#6258)) ([fded7b3](fded7b3)) * update table schema local repository ([#6255](#6255)) ([2ec9a9f](2ec9a9f)) * update table schema local repository ([#6255](#6255)) ([4446e5b](4446e5b)) * use getStringifiedSampleEvent for consistent sample event handling ([#6290](#6290)) ([526975c](526975c)) * use source-id for getting cached schemas ([#6268](#6268)) ([2ec9a9f](2ec9a9f)) * use source-id for getting cached schemas ([#6268](#6268)) ([90e4191](90e4191)) * warehouse migrations from master only ([#6282](#6282)) ([2309507](2309507)) ### Miscellaneous * add alert for stuck snowpipe pipeline ([#6271](#6271)) ([2ec9a9f](2ec9a9f)) * add context information on ut http error logs ([#6278](#6278)) ([424f22c](424f22c)) * bump amannn/action-semantic-pull-request from 5 to 6 ([#6237](#6237)) ([41c1548](41c1548)) * bump the go-deps group with 15 updates ([#6247](#6247)) ([8d6838d](8d6838d)) * bump the go-deps group with 3 updates ([#6254](#6254)) ([02a0263](02a0263)) * cleanup for schema snapshoting ([#6257](#6257)) ([4f3a68f](4f3a68f)) * remove flaky GooglePubSub retry configuration tests ([#6260](#6260)) ([6c48784](6c48784)) * remove null handling of upload id in load files ([#6241](#6241)) ([8d6838d](8d6838d)) * remove unused network code ([#6266](#6266)) ([f7cbc94](f7cbc94)) * **router:** rename endpointLabel to endpointPath ([#6279](#6279)) ([c933525](c933525)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
itsmihir
approved these changes
Sep 2, 2025
atzoum
approved these changes
Sep 2, 2025
ktgowtham
approved these changes
Sep 2, 2025
atzoum
deleted the
sync-release-4026e6628a1c0cd3bb63f6069c91b15ba27feb8a
branch
September 2, 2025 14:09
This was referenced Sep 15, 2025
Merged
satishrudderstack
pushed a commit
that referenced
this pull request
Sep 15, 2025
🤖 I have created a release *beep* *boop* --- ## [1.59.0-rc.1](v1.58.0...v1.59.0-rc.1) (2025-09-15) ### Features * **router:** add request latency and count metrics for router deliveries ([#6288](#6288)) ([c8dd8ef](c8dd8ef)) ### Bug Fixes * avoid running migrations for notifier from slaves ([#6303](#6303)) ([761eb46](761eb46)) * **batchrouter:** support configurable column ordering in CSVs in sftp ([#6342](#6342)) ([652215b](652215b)) * populate table level schemas createdAt updatedAt ([#6344](#6344)) ([a76a509](a76a509)) * remove unwanted table level schemas ([#6296](#6296)) ([761eb46](761eb46)) * **router:** kinesis rate exceeded errors are being aborted with http 400 ([#6329](#6329)) ([f739d7f](f739d7f)) * update ID regex to include underscores in error cleanup ([#6315](#6315)) ([bc1a751](bc1a751)) ### Miscellaneous * add logs for events coming with an incorrect source and sourceRunId ([#6309](#6309)) ([17afa60](17afa60)) * add readme for OAuth module ([#6335](#6335)) ([3c9f251](3c9f251)) * bump go-kit ([#6321](#6321)) ([87499e0](87499e0)) * bump mvdan.cc/gofumpt to v0.9.1 ([#6328](#6328)) ([cf9f653](cf9f653)) * capture stats for failed transformer client requests ([#6300](#6300)) ([e10d5c1](e10d5c1)) * clean up legacy MTU logic ([#6314](#6314)) ([a2e753d](a2e753d)) * clean up logs to trace double-encoded HLL value issue ([#6310](#6310)) ([c707aea](c707aea)) * drop unused services/oauth v1 and minor v2 tidy-ups ([#6275](#6275)) ([c1b84c1](c1b84c1)) * improve googlesheets oauth flow and error handling ([#6340](#6340)) ([738d420](738d420)) * optimize dtransform payloads and have compaction always enabled ([#6331](#6331)) ([63af856](63af856)) * remove proc_error jobsdb ([#6287](#6287)) ([5b92665](5b92665)) * renaming mirroring modes ([#6325](#6325)) ([84687fb](84687fb)) * **router:** ignore throttling costs in pickup throttler ([#6316](#6316)) ([af85b92](af85b92)) * sync release v1.58.0 to main branch ([#6294](#6294)) ([565630e](565630e)) * unify adaptive and static throttling configuration ([#6327](#6327)) ([077b0fb](077b0fb)) * update rudderlabs/build-scan-push-action to 1.7.0 ([#6320](#6320)) ([edb02d3](edb02d3)) * updating keydb client ([#6301](#6301)) ([0f9e3ec](0f9e3ec)) --- 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
Sep 16, 2025
🤖 I have created a release *beep* *boop* --- ## [1.59.0](v1.58.0...v1.59.0) (2025-09-15) ### Features * **router:** add request latency and count metrics for router deliveries ([#6288](#6288)) ([c8dd8ef](c8dd8ef)) ### Bug Fixes * avoid running migrations for notifier from slaves ([#6303](#6303)) ([761eb46](761eb46)) * **batchrouter:** support configurable column ordering in CSVs in sftp ([#6342](#6342)) ([652215b](652215b)) * populate table level schemas createdAt updatedAt ([#6344](#6344)) ([a76a509](a76a509)) * remove unwanted table level schemas ([#6296](#6296)) ([761eb46](761eb46)) * **router:** kinesis rate exceeded errors are being aborted with http 400 ([#6329](#6329)) ([f739d7f](f739d7f)) * update ID regex to include underscores in error cleanup ([#6315](#6315)) ([bc1a751](bc1a751)) ### Miscellaneous * add logs for events coming with an incorrect source and sourceRunId ([#6309](#6309)) ([17afa60](17afa60)) * add readme for OAuth module ([#6335](#6335)) ([3c9f251](3c9f251)) * bump go-kit ([#6321](#6321)) ([87499e0](87499e0)) * bump mvdan.cc/gofumpt to v0.9.1 ([#6328](#6328)) ([cf9f653](cf9f653)) * capture stats for failed transformer client requests ([#6300](#6300)) ([e10d5c1](e10d5c1)) * clean up legacy MTU logic ([#6314](#6314)) ([a2e753d](a2e753d)) * clean up logs to trace double-encoded HLL value issue ([#6310](#6310)) ([c707aea](c707aea)) * drop unused services/oauth v1 and minor v2 tidy-ups ([#6275](#6275)) ([c1b84c1](c1b84c1)) * improve googlesheets oauth flow and error handling ([#6340](#6340)) ([738d420](738d420)) * optimize dtransform payloads and have compaction always enabled ([#6331](#6331)) ([63af856](63af856)) * remove proc_error jobsdb ([#6287](#6287)) ([5b92665](5b92665)) * renaming mirroring modes ([#6325](#6325)) ([84687fb](84687fb)) * **router:** ignore throttling costs in pickup throttler ([#6316](#6316)) ([af85b92](af85b92)) * sync release v1.58.0 to main branch ([#6294](#6294)) ([565630e](565630e)) * unify adaptive and static throttling configuration ([#6327](#6327)) ([077b0fb](077b0fb)) * update rudderlabs/build-scan-push-action to 1.7.0 ([#6320](#6320)) ([edb02d3](edb02d3)) * updating keydb client ([#6301](#6301)) ([0f9e3ec](0f9e3ec)) --- 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
Syncing release v1.58.0 to main branch
WARNING: Do NOT rewrite git history and ALWAYS use a "Merge Commit" for merging!
↓↓ Please review and edit commit overrides before merging ↓↓
BEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE