Skip to content

chore: sync release v1.81.2 to main branch - #7219

Merged
atzoum merged 5 commits into
masterfrom
sync-release-f6b9ca50ac476f870bd17876ba0de0f9b6e83f28
Jul 27, 2026
Merged

atzoum merged 5 commits into
masterfrom
sync-release-f6b9ca50ac476f870bd17876ba0de0f9b6e83f28

Conversation

@rudderstack-github-actions

@rudderstack-github-actions rudderstack-github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Syncing patch release v1.81.2 to main branch

↓↓ Please review and edit commit overrides before merging ↓↓

BEGIN_COMMIT_OVERRIDE
fix: mid-run pod deaths under concurrent test runs (#7212)
END_COMMIT_OVERRIDE

maheshkutty and others added 4 commits July 22, 2026 16:22
🔒 Scanned for secrets using gitleaks 8.30.1

# Description

The RecordFields struct read the adjustment time under the wrong JSON
key (conversionAdjustedTime), while the VDM field, rETL record events,
and the Transform validation all use adjustedConversionTime. As a
result, update (Restate) and delete (Retract) rows shipped with an empty
Adjustment Time column and Microsoft rejected them with
OfflineConversionAdjustmentTimeNullOrEmpty; only inserts succeeded.

Fix the struct tag to adjustedConversionTime and add tests asserting the
Adjustment Time column is populated: a Transform test and a table-driven
populateZipFile test that compares the full CSV output per action.

## Linear Ticket

[Resolves
INT-6853](https://linear.app/rudderstack/issue/INT-6853/bingads-offline-conversions-failures-in-the-sync)

## Security

- [ ] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
🤖 I have created a release *beep* *boop*
---


##
[1.81.1](v1.81.0...v1.81.1)
(2026-07-22)


### Bug Fixes

* use correct JSON tag for adjustedConversionTime in bing-ads
([#7204](#7204))
([a95807f](a95807f))

---
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>
# Description

Fixes a mid-run pod-death bug in concurrent ephemeral pyt test runs,
adds per-operation observability to the processor's CP-facing `Forward`
RPC (Python transformation tests), and makes the ephemeral pyt
  deployer's timing knobs configurable.

  ### Bug fix: mid-run pod deaths under concurrent test runs

Concurrent ephemeral test runs for the same workspace carried identical
label sets, so every run's Service selected **every** run's pods. A
request forwarded through run A's Service could land on run B's
pod — which run B deletes the moment it finishes, killing A's request
mid-flight ("Subprocess died (exit code -15)").

Each run's Deployment selector, pod template labels, and Service
selector now also carry a per-run name label (`rudderstack.com/run` =
the unique `pyt-test-<suffix>` name), making concurrent runs
label-disjoint: each Service selects only its own run's pods. Covered by
a test asserting two same-workspace runs produce Services that select
their own pods and not each other's.

  ### New metrics

  | Metric | Type | Tags | What it measures |
  |---|---|---|---|
| `processor_pyt_forward_rpc_time` | timer | `op`, `route`,
`workspaceId` | The whole `Forward` RPC: deployment setup + readiness
wait + request |
| `processor_pyt_request_handle_time` | timer | `op`, `route`,
`workspaceId` | Just the HTTP request to the pyt pod |
| `processor_pyt_readiness_wait_time` | timer | `workspaceId`, `success`
| Time spent waiting for the ephemeral Deployment to report ready |
| `processor_pyt_cleanup_failure_count` | count | `workspaceId` |
Best-effort delete failures (work leaked to the reaper) |

- `route` distinguishes the three forwarding paths: `ephemeral` (fresh
pyt deployment), `production` (config-flagged workspaces), `static` (AST
ops).
- On the ephemeral route, `forward_rpc_time − request_handle_time` tells
you how much of a slow test was setup vs. actual execution; the
readiness-wait timer breaks the setup portion down further.
`success:false` readiness samples cluster at the configured timeout,
making timeouts visible.
- `processor_pyt_request_handle_time` is only emitted when a request was
actually made — a deployer failure before forwarding records no sample.
Rejected requests (invalid op/workspaceId) emit nothing.
- Histogram buckets for all three timers are registered in
`runner/buckets.go`.
- The cold-start / retry counters in `user_transformer.forwardTest` now
carry a `path` tag so retries can be attributed per pyt endpoint.

  ### New config keys (`Processor.pytDeployer.*`)

  | Key | Default | Notes |
  |---|---|---|
| `pytTestReadinessPollInterval` | `250ms` | Reloadable; was a hardcoded
constant |
| `pytTestDeleteTimeout` | `15s` | Reloadable; bounds best-effort
cleanup, was a hardcoded constant |
| `pytTestRunIDLength` | `8` | Random suffix length for ephemeral
resource names; clamped to keep `pyt-test-<suffix>` a valid DNS-1035
label |

  ### Implementation notes

- `pytdeployer.New` now takes `stats.Stats`; `cpservice.Service` retains
the stats handle it already received.
- The three routes in `Forward` share a single `timedForward` closure
that emits the request timer itself, so no forward ⇒ no sample, with no
extra bookkeeping.

## Linear Ticket

-

## 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.
🤖 I have created a release *beep* *boop*
---


##
[1.81.2](v1.81.1...v1.81.2)
(2026-07-27)


### Bug Fixes

* mid-run pod deaths under concurrent test runs
([#7212](#7212))
([cf89256](cf89256))

---
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>
@atzoum
atzoum enabled auto-merge (squash) July 27, 2026 07:59
@atzoum
atzoum merged commit 5279b64 into master Jul 27, 2026
107 of 113 checks passed
@atzoum
atzoum deleted the sync-release-f6b9ca50ac476f870bd17876ba0de0f9b6e83f28 branch July 27, 2026 09:02
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.48485% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.08%. Comparing base (896fa37) to head (8874ee3).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
...l/transformer/user_transformer/user_transformer.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7219      +/-   ##
==========================================
+ Coverage   79.89%   80.08%   +0.19%     
==========================================
  Files         596      599       +3     
  Lines       66713    66821     +108     
==========================================
+ Hits        53300    53514     +214     
+ Misses      10288    10144     -144     
- Partials     3125     3163      +38     

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

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.

3 participants