Repository navigation
chore: sync release v1.80.1 to main branch - #7171
Merged
itsmihir merged 2 commits intoJul 9, 2026
Merged
Conversation
## 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>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7171 +/- ##
==========================================
+ Coverage 79.73% 80.20% +0.47%
==========================================
Files 595 595
Lines 66095 66352 +257
==========================================
+ Hits 52700 53218 +518
+ Misses 10278 10012 -266
- Partials 3117 3122 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
am6010
approved these changes
Jul 9, 2026
itsmihir
approved these changes
Jul 9, 2026
itsmihir
deleted the
sync-release-32906196bf26cd89e82058864bce17ad2eaab44f
branch
July 9, 2026 15:48
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 patch release v1.80.1 to main branch
↓↓ Please review and edit commit overrides before merging ↓↓
BEGIN_COMMIT_OVERRIDE
fix: classify reverse-ETL sources from config for MAR metering (#7159)
END_COMMIT_OVERRIDE