Skip to content

chore: sync release v1.80.1 to main branch - #7171

Merged
itsmihir merged 2 commits into
masterfrom
sync-release-32906196bf26cd89e82058864bce17ad2eaab44f
Jul 9, 2026
Merged

itsmihir merged 2 commits into
masterfrom
sync-release-32906196bf26cd89e82058864bce17ad2eaab44f

Conversation

@rudderstack-github-actions

Copy link
Copy Markdown
Contributor

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

am6010 and others added 2 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>
@codecov

codecov Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.20%. Comparing base (3a56ca8) to head (3290619).
⚠️ Report is 5 commits behind head on master.

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

@itsmihir
itsmihir merged commit fa7870f into master Jul 9, 2026
211 of 216 checks passed
@itsmihir
itsmihir deleted the sync-release-32906196bf26cd89e82058864bce17ad2eaab44f branch July 9, 2026 15:48
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.

2 participants