Skip to content

chore: sync release v1.80.2 to main branch - #7180

Merged
achettyiitr merged 5 commits into
masterfrom
sync-release-24961e5cd4e34c578de23b475d27d8c3b90f228e
Jul 15, 2026
Merged

achettyiitr merged 5 commits into
masterfrom
sync-release-24961e5cd4e34c578de23b475d27d8c3b90f228e

Conversation

@rudderstack-github-actions

@rudderstack-github-actions rudderstack-github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Syncing patch release v1.80.2 to main branch

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

BEGIN_COMMIT_OVERRIDE
fix: preserve order when overflowing snowpipe insert batches (#7178)
END_COMMIT_OVERRIDE

am6010 and others added 4 commits July 8, 2026 12:54
## What & why

MAR (Monthly Active Records) metering for reverse-ETL / Audiences
sources produced **no data** in clustered/production deployments:
`activation_records_reports` stayed empty and the MAR API returned `[]`.

The reporter gated reverse-ETL classification on the job's
`source_category` **param**. That param is populated on the gateway
web/auth path, but is **empty on the clustered `/internal/v1/batch`
ingestion path** (rudder-sources → ingestion-svc → Pulsar → srcrouter →
gateway). So every reverse-ETL record was silently skipped — no rows, no
skip stats.

## Change

Classify reverse-ETL (warehouse) sources from the **source config**
(`SourceDefinition.Category`) instead of the job param:

- `processor` snapshots a `source_id → category` map once per batch
(single lock, category strings only) and passes a lookup `func(sourceID
string) string` into the reporter.
- `records_reporter.GenerateReportsFromJobs` gates on that lookup (`==
"warehouse"`), still reading the fingerprint from the raw pre-strip job.

Path-independent (works for `/internal/v1/batch`, `/internal/v1/retl`,
single-node/mini) and fail-closed: an unknown/missing `source_id`
resolves to `""` and is skipped; a spoofed `source_category` param can't
force metering.

This supersedes an earlier gateway-side approach (stamping
`source_category` in the internal-batch handler). Classifying at the
consumer keeps the change contained to the MAR feature and independent
of ingestion topology, and mirrors the sibling tracked-users reporter,
which already takes a source-config lookup.

## Tests

`records_reporter_test.go`: warehouse source metered with an empty
`source_category` param; non-warehouse source skipped; a spoofed
`source_category=warehouse` param does not win over config; unknown
source skipped fail-closed.

## Validation

Verified end-to-end in dev (`profiles-qa`): reverse-ETL sync → rows in
`activation_records_reports` → flushed to the reporting store → MAR API
returns per-connection counts (was `[]`).

Linear: [PRO-5810](https://linear.app/rudderstack/issue/PRO-5810)
🤖 I have created a release *beep* *boop*
---


##
[1.80.1](v1.80.0...v1.80.1)
(2026-07-08)


### Bug Fixes

* classify reverse-ETL sources from config for MAR metering
([#7159](#7159))
([8e026e3](8e026e3))

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

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
# Description

## Summary

- Abort Snowpipe Streaming events whose individual payload size exceeds
maxInsertRequestSizeBytes, and continue uploading remaining events
instead of failing/retrying them forever.
- Keep cumulative overflow behavior: when a batch would exceed the
limit, mark the rest as failed to preserve job order on retry;
individually oversized events in that remainder are still aborted.
- Raise the default SnowpipeStreaming.maxInsertRequestSizeBytes from
16MB to 24MB.
- Add Upload and unit-test coverage for abort-and-continue,
all-oversized batches, mixed overflow+abort, and sequences like safe →
oversized → safe → overflow → oversized → overflow.

## Validation
- `go test
./router/batchrouter/asyncdestinationmanager/snowpipestreaming -run
TestSplitEventsExceedingMaxInsertRequestSize`
- `go test
./router/batchrouter/asyncdestinationmanager/snowpipestreaming`

## Linear Ticket

RUD-2977

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

---------

Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
🤖 I have created a release *beep* *boop*
---


##
[1.80.2](v1.80.1...v1.80.2)
(2026-07-15)


### Bug Fixes

* preserve order when overflowing snowpipe insert batches
([#7178](#7178))
([ec8fd1f](ec8fd1f))

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

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
@achettyiitr
achettyiitr enabled auto-merge (squash) July 15, 2026 10:49
@achettyiitr
achettyiitr merged commit 9c01fa0 into master Jul 15, 2026
72 checks passed
@achettyiitr
achettyiitr deleted the sync-release-24961e5cd4e34c578de23b475d27d8c3b90f228e branch July 15, 2026 11:14
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.65%. Comparing base (5aeb481) to head (07f24bc).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7180      +/-   ##
==========================================
+ Coverage   79.60%   79.65%   +0.05%     
==========================================
  Files         595      595              
  Lines       66140    66154      +14     
==========================================
+ Hits        52652    52698      +46     
+ Misses      10377    10342      -35     
- Partials     3111     3114       +3     

☔ View full report in Codecov by Harness.
📢 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.

3 participants