Skip to content

chore: sync release v1.77.4 to main branch - #7111

Merged
achettyiitr merged 9 commits into
masterfrom
sync-release-5907c0e458bfcd2066b668e75fa5a96daa44e51b
Jun 22, 2026
Merged

achettyiitr merged 9 commits into
masterfrom
sync-release-5907c0e458bfcd2066b668e75fa5a96daa44e51b

Conversation

@rudderstack-github-actions

@rudderstack-github-actions rudderstack-github-actions Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Syncing patch release v1.77.4 to main branch

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

BEGIN_COMMIT_OVERRIDE
fix: klaviyo upload partial failures (#7107)
END_COMMIT_OVERRIDE

atzoum and others added 8 commits June 10, 2026 15:06
…er (#7075)

🔒 Scanned for secrets using gitleaks 8.30.1

## Description

Fixing a security/misconfiguration issue where internal gateway and
warehouse API endpoints were accessible in the open source version of
`rudder-server`. Internal endpoints are now gated behind an enterprise
token check and can only be registered when explicitly enabled.

### Changes

- **Gate internal endpoints behind enterprise token** — added
`WithInternalEndpointsEnabled(bool)` to the gateway and an equivalent
`Warehouse.internalEndpointsEnabled` flag; both default to `true` in the
enterprise version of rudder-server and `false` in the open source
version.
- **Move warehouse endpoints under `/internal`** —
`/v1/warehouse/{pending-events,trigger-upload,jobs,jobs/status}` are now
at `/internal/v1/warehouse/...`; legacy paths remain available behind a
`legacyWarehouseEndpointsEnabled` flag (default `true`) for gradual
rollout.
- **Remove v1 job-status handler** — `NewV1Handler`,
`GetFailedRecordsV1`, `Delete`, and all related tests removed;
`/internal/v1/job-status` promoted to `/internal/v2/job-status`.

## Linear Ticket

resolves RUD-2824

## 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.77.1](v1.77.0...v1.77.1)
(2026-06-10)


### Bug Fixes

* internal endpoints enabled in open source version of rudder-server
([#7075](#7075))
([b4f62a1](b4f62a1))

---
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>
…7085)

## Summary
- Klaviyo 4xx errors (except 429) were incorrectly marked as retryable
(`FailedJobIDs`), causing invalid profiles to retry indefinitely, fill
batch slots, and push valid events into "prescribed limit" overflow
until they were permanently aborted
- `UploadProfiles` now captures the HTTP status code from Klaviyo's
response
- `Upload` routes errors by retryability: 4xx (except 429) →
`AbortJobIDs` (terminal), 429/5xx/network errors → `FailedJobIDs`
(retryable)
- `FailedReason` is now populated in the upload output for better
observability

## Test plan
- [x] `TestUpload/Successful_Upload` — all jobs import successfully, no
failures
- [x] `TestUpload/Unsuccessful_Upload` — nil response (network error) →
jobs retried with `FailedReason`
- [x] `TestUpload/UploadThreeChunksWithMixedFailures` — chunk 1 gets 429
(retried), chunk 2 gets 400 (aborted), chunk 3 succeeds — validates both
paths in single test
- [x] Existing Poll and GetUploadStats tests unaffected

## Linear ticket
INT-6539

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
🤖 I have created a release *beep* *boop*
---


##
[1.77.2](v1.77.1...v1.77.2)
(2026-06-16)


### Bug Fixes

* abort non-retryable Klaviyo upload errors instead of retrying
([#7085](#7085))
([a31d6e5](a31d6e5))

---
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>
🔒 Scanned for secrets using gitleaks 8.29.1

# Description

Klaviyo's Bulk Profile Import API validates each request
**all-or-nothing**: a single profile that fails synchronous validation
(e.g. a malformed email) causes Klaviyo to reject the entire batch with
HTTP 400, importing **zero** profiles. Today rudder-server mirrors that
by aborting the whole chunk, so one bad record takes down every valid
profile alongside it.

This PR adds **strip-and-retry on failure**. When Klaviyo returns a 400
whose error pointers identify specific profiles, we abort only those
jobs and re-upload the chunk **once** with the remaining valid profiles,
so the good records still get delivered.

### Behavior

- **Success** → jobs imported as before.
- **400 that pinpoints specific profiles** → those jobs are aborted
(with Klaviyo's per-profile reason), the rest are re-uploaded once; the
retry's outcome is final (no looping).
- **400 we can't attribute to a profile** (e.g. invalid `listId`) →
whole chunk aborted, unchanged.
- **5xx / 429 / transport errors** → whole chunk marked failed for the
batch router to retry, unchanged.

The retry path is bounded to a single extra attempt — there is no loop.

### Implementation

- `uploadChunk` orchestrates the try → strip → retry-once flow.
- `tryUpload` performs one upload attempt and normalizes the
status/error.
- `strippableProfiles` decides whether a failure is a per-profile 400 we
can safely retry.
- `extractInvalidProfileIndices` parses the offending profile indices
from Klaviyo's JSON pointers.
- `recordError` classifies remaining jobs as aborted (4xx) vs failed
(5xx/429).
- `chunkUploadResult` (added to `types.go`) carries the per-chunk
outcome.

## Linear Ticket

- Resolves INT-6600

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

---------

Co-authored-by: Akash Chetty <[email protected]>
🤖 I have created a release *beep* *boop*
---


##
[1.77.4](v1.77.3...v1.77.4)
(2026-06-22)


### Bug Fixes

* klaviyo upload partial failures
([#7107](#7107))
([621a070](621a070))

---
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>
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr requested a review from ItsSudip June 22, 2026 10:11
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.59459% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.84%. Comparing base (d3fab82) to head (c026948).

Files with missing lines Patch % Lines
...tionmanager/klaviyobulkupload/klaviyobulkupload.go 94.59% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7111      +/-   ##
==========================================
+ Coverage   79.47%   79.84%   +0.37%     
==========================================
  Files         583      583              
  Lines       65276    65328      +52     
==========================================
+ Hits        51878    52163     +285     
+ Misses      10302    10062     -240     
- Partials     3096     3103       +7     

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

@achettyiitr
achettyiitr merged commit 37e79e9 into master Jun 22, 2026
110 of 112 checks passed
@achettyiitr
achettyiitr deleted the sync-release-5907c0e458bfcd2066b668e75fa5a96daa44e51b branch June 22, 2026 11:00
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