Skip to content

feat: bingads integration tests - #7253

Merged
achettyiitr merged 3 commits into
masterfrom
feat.integrations-tests-bingads
Aug 12, 2026
Merged

achettyiitr merged 3 commits into
masterfrom
feat.integrations-tests-bingads

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

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-auth container 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)

  • insert with pre-hashed and raw email/phone identifiers (isHashRequired false/true)
  • update (Restate) and delete (Retract)
  • negative cases asserting the exact abort reasons OfflineConversionNameInvalid and OfflineConversionMicrosoftClickIdInvalid
  • mixed batches where valid records succeed alongside invalid ones, asserting the succeeded/aborted job split

Audience / Customer List (BING_ADS)

  • Add / Remove / Replace clubbed into a single import (multiple events per action) for both hashed and unhashed audiences
  • a mixed valid/invalid batch asserting per-job success vs abort

@cursor

cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

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
achettyiitr force-pushed the feat.integrations-tests-bingads branch 3 times, most recently from e750007 to 00e21dd Compare August 12, 2026 04:24
@achettyiitr achettyiitr changed the title feat(processor): fork event processing for rsources pipelines (#7235) feat: bingads integration tests Aug 12, 2026

const (
defaultImage = "422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/rudder-auth"
defaultTag = "develop"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is a reminder to update the default tag.

Comment thread .github/workflows/tests.yaml Resolved
# 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
achettyiitr force-pushed the feat.integrations-tests-bingads branch from 00e21dd to 8a4a727 Compare August 12, 2026 06:06
🔒 Scanned for secrets using gitleaks 8.29.1
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr requested a review from ItsSudip August 12, 2026 06:33
@achettyiitr
achettyiitr merged commit fdb8c0a into master Aug 12, 2026
74 checks passed
@achettyiitr
achettyiitr deleted the feat.integrations-tests-bingads branch August 12, 2026 07:04
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.04587% with 49 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.66%. Comparing base (9e62d0c) to head (f850191).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...inationmanager/testhelper/rudderauth/rudderauth.go 55.04% 33 Missing and 16 partials ⚠️
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.
📢 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.

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

4 participants