Repository navigation
feat: bingads integration tests - #7253
Merged
Merged
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
achettyiitr
force-pushed
the
feat.integrations-tests-bingads
branch
3 times, most recently
from
August 12, 2026 04:24
e750007 to
00e21dd
Compare
saikumarrs
reviewed
Aug 12, 2026
|
|
||
| const ( | ||
| defaultImage = "422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/rudder-auth" | ||
| defaultTag = "develop" |
Member
There was a problem hiding this comment.
This comment is a reminder to update the default tag.
saikumarrs
reviewed
Aug 12, 2026
saikumarrs
approved these changes
Aug 12, 2026
# Description Closes the rsources accounting gap #7207 left open: forking siphons an event to the intermediate `proc` jobsdb before it's transformed, but until now nothing recorded that in rsources until the proc pool eventually drained it. An arbitrarily later, unbounded window in which a retl `jobRunId` could be reported `completed` while its forked events were still sitting unaccounted-for in `proc`. That's why forking was hard-excluded for any event carrying a `SourceJobRunID`. **The mechanism** No new stage is introduced, it piggybacks on the existing source-level `In`/`Out` the same way dropped-job accounting already does (`JobsDropped`). `JobsForked` increments `In` by the number of consumers a job is forked to (e.g. one job forked to 2 destinations bumps `In` by 2), committed in the same transaction as the `proc` write itself so there's no window where the fork is durable but unaccounted-for. `Out` is unaffected: the proc pool's own `rsources.StatsCollector` (`proc_partition_worker.go`) already calls `CollectStats` once per (job, consumer) as each forked job drains to a terminal status. A source now only reports `completed` once every forked consumer has drained, in addition to the existing per-destination router/batch-router accounting, which is untouched. **Still opt-in** Forking retl-tracked events is gated by its own config, disabled by default: ``` Processor.DestinationIsolation.forkRsourcesTrackedJobs ``` ### Verification A new integration test `TestProcessorRsourcesStats` covers both the forked and non-forked paths end to end against the rsources job-status API: - `inline`- baseline, isolation off. - `retl_excluded` - retl events still stay inline and the numbers match `inline` exactly. - `all_forked` - every destination is forked, proving the fork `In` balances against the proc consumer's drained `Out`. - `mixed` - a destination that's both forked *and* filtered by a user transformation (a proc-consumer status update with nothing ever reaching the router), and another one is both forked *and* aborted at the router. Each scenario asserts exact `In`/`Out`/`Failed` at source and destination level, `Completed` via `/internal/v2/job-status`, failed-records resolution back to the sent `recordId` for aborted destinations, jobsdb drain counts, and webhook delivery counts. ## Linear Ticket resolves PIPE-3055 ## 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. 🔒 Scanned for secrets using gitleaks 8.29.1
achettyiitr
force-pushed
the
feat.integrations-tests-bingads
branch
from
August 12, 2026 06:06
00e21dd to
8a4a727
Compare
ItsSudip
reviewed
Aug 12, 2026
🔒 Scanned for secrets using gitleaks 8.29.1
🔒 Scanned for secrets using gitleaks 8.29.1
ItsSudip
approved these changes
Aug 12, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7253 +/- ##
==========================================
- Coverage 80.27% 79.66% -0.61%
==========================================
Files 600 601 +1
Lines 67034 67143 +109
==========================================
- Hits 53811 53489 -322
- Misses 10070 10481 +411
- Partials 3153 3173 +20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Aug 17, 2026
Closed
Merged
mihir20
pushed a commit
that referenced
this pull request
Aug 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.83.0-rc.1](v1.82.0...v1.83.0-rc.1) (2026-08-17) ### Features * add OriginalID and OriginalDestinationID to support replay event transformations ([#7274](#7274)) ([28d38e9](28d38e9)) * bingads integration tests ([#7253](#7253)) ([fdb8c0a](fdb8c0a)) * **processor:** fork event processing for rsources pipelines ([#7235](#7235)) ([707ea06](707ea06)) ### Bug Fixes * pyt contract tests data race ([#7247](#7247)) ([9e62d0c](9e62d0c)) ### Miscellaneous * bump sqlconnect-go to v1.30.2 ([#7251](#7251)) ([f5d6175](f5d6175)) * **jobsdb:** multi-consumer compaction improvements ([#7248](#7248)) ([b4af86c](b4af86c)) * pyt contract tests for candidate releases ([#7252](#7252)) ([149e91a](149e91a)) * pyt contract tests for transformations auth ([#7239](#7239)) ([ac4a859](ac4a859)) * **router:** support per-partition noOfWorkers override ([#7270](#7270)) ([9d6f7cf](9d6f7cf)) * sync release v1.82.0 to main branch ([#7243](#7243)) ([a6e29f2](a6e29f2)) --- 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>
mihir20
pushed a commit
that referenced
this pull request
Aug 18, 2026
🤖 I have created a release *beep* *boop* --- ## [1.83.0](v1.82.0...v1.83.0) (2026-08-17) ### Features * add OriginalID and OriginalDestinationID to support replay event transformations ([#7274](#7274)) ([28d38e9](28d38e9)) * bingads integration tests ([#7253](#7253)) ([fdb8c0a](fdb8c0a)) * **processor:** fork event processing for rsources pipelines ([#7235](#7235)) ([707ea06](707ea06)) ### Bug Fixes * pyt contract tests data race ([#7247](#7247)) ([9e62d0c](9e62d0c)) ### Miscellaneous * bump sqlconnect-go to v1.30.2 ([#7251](#7251)) ([f5d6175](f5d6175)) * **jobsdb:** multi-consumer compaction improvements ([#7248](#7248)) ([b4af86c](b4af86c)) * pyt contract tests for candidate releases ([#7252](#7252)) ([149e91a](149e91a)) * pyt contract tests for transformations auth ([#7239](#7239)) ([ac4a859](ac4a859)) * **router:** support per-partition noOfWorkers override ([#7270](#7270)) ([9d6f7cf](9d6f7cf)) * sync release v1.82.0 to main branch ([#7243](#7243)) ([a6e29f2](a6e29f2)) --- 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>
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
Adds live integration tests for the Bing Ads async destination managers — offline conversions and audience (Customer List) — exercising the full batch-router path (Transform → Upload → Poll → GetUploadStats) against a real Microsoft Advertising account.
OAuth access tokens are resolved from refresh tokens the same way the rudder-transformer live suite does: a
rudder-authcontainer is started via dockertest and the refresh token is exchanged for an access token, rather than performing the OAuth flow in-process. This is wrapped in a new, reusable rudder-go-kit-style docker resource helper (asyncdestinationmanager/testhelper/rudderauth) that both destinations share.Resolves INT-6892, INT-6879
What's covered
Offline conversions (
BING_ADS_OFFLINE_CONVERSIONS)isHashRequiredfalse/true)OfflineConversionNameInvalidandOfflineConversionMicrosoftClickIdInvalidAudience / Customer List (
BING_ADS)