Skip to content

chore(release): pull release/v1.162.0 into main - #5700

Merged
arpl merged 3 commits into
mainfrom
release/v1.162.0
Oct 20, 2026
Merged

arpl merged 3 commits into
mainfrom
release/v1.162.0

Conversation

@rudderstack-github-actions

Copy link
Copy Markdown
Contributor

👑 An automated PR

maheshkutty and others added 3 commits October 19, 2026 14:52
…ework (ACT2-1194) (#5680)

## feat(pinterest_audience): router destination on the batching
framework

- **Integration:** `DestinationIntegration`, router only, registered as
`PINTEREST_AUDIENCE: { routerTransform, batching }`. The proxy is on by
default.
- **Routing:** connection config is read **per row**, so a single router
call can hold several lists. Requests go to `PATCH
/v5/ad_accounts/{ad}/customer_lists/{list}`, with `operation_type` ADD
(insert/update) or REMOVE (delete) and the body format set by
`RECORD_FORMAT` in `config.ts` (classic `records` string; `records_v2`
rows are kept for later, see Record format below).
- **Hashing:** emails are lowercased and trimmed, and MAIDs are
lowercased and checked against the UUID pattern. Phones are only
normalised and sent under `records_v2`; the classic body drops PHONE.
Then SHA-256, controlled by the connection's `isHashRequired`.
- **DeliverySpec:**
  - Every 401 triggers a token refresh, then a retry.
  - 403, 404 (codes 1001/1018) and 400 abort, with remediation text.
  - 429 is throttled and 5xx is retried.
- **Secret paths:** masks `headers.Authorization`. The CI check passes
against integrations-config `main`.
- **Batch size (P1, settled):** `MAX_RECORDS_PER_REQUEST=1000` stays.
The 2026-10-16 probe accepted ≥10,000 identifiers in one request.
- **401:** every 401 returns `authExpired` (REFRESH_TOKEN), so it
refreshes and retries. A same-token retry can't succeed (review
feedback, b6b8f3c), so no auth-body pattern is needed.
- **Not in this PR:** `live.ts`, which follows with the CI secret.
- **Tests:** unit 79/79 (`--testPathPattern=pinterest_audience`) and
component 16/16, including mixed connections, a hashing mismatch, and
both record formats.

---
**Spec:** [rudder-specs
#224](rudderlabs/rudder-specs#224), at
`lookout-audiences-initiative/activations/pinterest-audience/spec.md`.
Tickets: [ACT2-1194](https://linear.app/rudderstack/issue/ACT2-1194) and
[ACT2-1195](https://linear.app/rudderstack/issue/ACT2-1195). Customer:
Crate & Barrel.

**Review:** this went through a pre-PR review panel (security,
correctness, product, ops, coherence, plus 4 adversarial checks). The
verdict was Approve with follow-ups, with nothing blocking, and all
fixes have been applied and re-reviewed. The record is
`verify/2026-10-15-review-panel.md` in the spec PR.

**Second panel (2026-10-19, D15 delta):** Approve with follow-ups,
nothing blocking. See the review comment on this PR.

**Verified on mini against a real Pinterest account:**
- Web app OAuth consent works, and so does Lookout Connect through the
relay (caller `state`).
- The ad-account and customer-list audience pickers work, and so does
`/setup` for an existing audience.
- A manual sync sent all 150 rows through the transformer proxy to
Pinterest.
- Writes (2026-10-19 full pass on these heads,
`verify/2026-10-19-full-pass.md`): a web-app create sent 150/150 adds as
classic `records` (EMAIL + MAID), and removing 5 members sent 5/5
removes.
- `403 · 29` was never the Trial tier. Standard access was granted on
2026-10-16 and the error stayed. Pinterest enables the multi-field
`records_v2` body per app, and ours isn't enabled yet (request filed).
That's why v1 sends the classic format (D15).
- Format switch, live (2026-10-19, while it was still a definition
property): `records_v2` was refused 0/145 with `403 · 29`, and `records`
delivered 145/145. The switch is now the transformer constant
`RECORD_FORMAT` (review on config #2839).

**Merge order** (spec §10):
1. auth-service creds + rudder-auth
2. integrations-config (ships `hidden: true`)
3. integrations-info + transformer
4. rudder-icons mapping release (done: `@rudderlabs/icons` 0.6.0)
5. web app + Lookout (icons bump)
6. operator values
7. Lookout `RS_ACCOUNTS_OAUTH_DEFINITIONS`
8. `hidden: false` (Standard was granted 2026-10-16)

**Record format (D15):** the body is the classic `records` string
(SHA-256 values joined by commas, one identifier per record, PHONE
dropped). `RECORD_FORMAT` in `config.ts` selects it, and the
`records_v2` multi-field path stays for when Pinterest enables it for
our app. Why: on 2026-10-16 Pinterest returned 403 code 29 for
`records_v2` and 200 for `records` on the same list for app 1624584 on
Standard. An earlier revision read the format from the definition's
`config.recordFormat`; integrations review on config #2839 moved it into
code, so the shared definition schema stays Pinterest-free. A
`recordFormat` on the definition is ignored (test D19).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@rudderstack-github-actions
rudderstack-github-actions Bot requested review from a team as code owners October 20, 2026 06:43
@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 663dbe99-fab3-4144-8227-c4c434fdc815

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@arpl arpl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving the release (v1.162.0): Pinterest Audience router destination, coordinated in #integration-dev; Shashank asked us to merge.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.21%. Comparing base (f2e3c0e) to head (745134b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5700      +/-   ##
==========================================
+ Coverage   92.18%   92.21%   +0.02%     
==========================================
  Files         720      725       +5     
  Lines       40055    40174     +119     
  Branches     9381     9396      +15     
==========================================
+ Hits        36926    37045     +119     
  Misses       2945     2945              
  Partials      184      184              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@arpl
arpl merged commit ac379b6 into main Oct 20, 2026
48 checks passed
@arpl
arpl deleted the release/v1.162.0 branch October 20, 2026 07:09
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