Skip to content

refactor: remove archiveInPreProcess processor toggle - #7205

Merged
mihir20 merged 3 commits into
masterfrom
harness/PIPE-3195-refactor-remove-archiveinprepro-e55120ed
Jul 28, 2026
Merged

mihir20 merged 3 commits into
masterfrom
harness/PIPE-3195-refactor-remove-archiveinprepro-e55120ed

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Description

  • Remove Processor.archiveInPreProcess from processor config loading.
  • Always store archive jobs during preprocessStage and clear archivalJobs before downstream processing.
  • Simplify pretransformStage to only store event schema jobs.
  • Update archival tests and remove the source hydration env override for the deleted toggle.

Linear Ticket

PIPE-3195

Validation

  • gofmt -w processor/processor.go processor/processor_test.go integration_test/srchydration/src_hydration_test.go
  • go test ./processor -run TestArchival passed
  • rg "archiveInPreProcess|Processor\\.archiveInPreProcess" /workspace/rudder-server returned no matches (rg exit 1 as expected)
  • go test ./integration_test/srchydration -run TestSrcHydration was attempted; see known issue below

⚠️ Known Issues

  • go test ./integration_test/srchydration -run TestSrcHydration failed in this environment because err_idx jobs never reached succeeded while the error-index reporter attempted external S3 bucket rudder-saas and hit AWS HeadBucket 403 / S3 config RootCAs errors instead of using local MinIO. The non-failing hydration subtests passed.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@rudder-devbox

rudder-devbox Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@codecov

codecov Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.06%. Comparing base (762bc06) to head (274e114).

Files with missing lines Patch % Lines
processor/processor.go 50.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7205      +/-   ##
==========================================
- Coverage   80.10%   80.06%   -0.04%     
==========================================
  Files         599      599              
  Lines       66828    66813      -15     
==========================================
- Hits        53533    53496      -37     
+ Misses      10153    10152       -1     
- Partials     3142     3165      +23     

☔ 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
mihir20 marked this pull request as ready for review July 28, 2026 06:35
@mihir20
mihir20 requested a review from atzoum July 28, 2026 07:02
@rudder-devbox

rudder-devbox Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

I found the CI failure in the downloaded redshift warehouse log. TestIntegration/Events_flow failed before reaching warehouse assertions: warehouse/integrations/testhelper/setup.go:151 was called from warehouse/integrations/redshift/redshift_test.go:141, and the jobs DB ping returned read tcp 127.0.0.1:42336->127.0.0.1:32768: read: connection reset by peer. The All job was only the aggregate failure because warehouse-integration was red.

I fixed the shared warehouse integration helper so JobsDB retries the initial Ping with the existing WithConstantRetries helper. That keeps real jobs DB startup failures visible, but avoids failing redshift CI on a transient container readiness reset.

Validation passed:

  • go test ./warehouse/integrations/testhelper
  • go test ./warehouse/integrations/redshift -run 'TestIntegration/Events_flow' -count=1
  • go test ./processor -run TestArchival

Pushed commit: 274e114

@rudder-devbox

rudder-devbox Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@mihir20
mihir20 merged commit f471b1d into master Jul 28, 2026
73 checks passed
@mihir20
mihir20 deleted the harness/PIPE-3195-refactor-remove-archiveinprepro-e55120ed branch July 28, 2026 08:49
This was referenced Aug 3, 2026
itsmihir pushed a commit that referenced this pull request Aug 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.82.0-rc.1](v1.81.0...v1.82.0-rc.1)
(2026-08-03)


### Features

* **processor:** fork event processing for configured isolated
destinations
([#7207](#7207))
([6eb91b4](6eb91b4))
* **processor:** isolated destination processing pipeline
([#7202](#7202))
([a684641](a684641))
* **router:** detect and classify transformer-proxy contract breaches
(INT-6839)
([#7184](#7184))
([c7a15a8](c7a15a8))
* **router:** gate 296 delivered-with-warning behind per-workspace
rollout
([#7217](#7217))
([1d772a1](1d772a1))


### Bug Fixes

* apply configured client QPS and Burst settings in restConfig
([#7220](#7220))
([762bc06](762bc06))
* gcs manager allows non-service account credentials and warehouse ssl
keys can escape their containing path
([#7227](#7227))
([3e126b2](3e126b2))
* mid-run pod deaths under concurrent test runs
([#7212](#7212))
([5279b64](5279b64))
* normalize null BingAds offline conversion fields
([#7236](#7236))
([678f130](678f130))
* use correct JSON tag for adjustedConversionTime in bing-ads
([#7204](#7204))
([50df0f7](50df0f7))


### Miscellaneous

* add new readme logo
([#7200](#7200))
([ab86afd](ab86afd))
* **deps:** bump the go-deps group across 1 directory with 32 updates
([#7199](#7199))
([0eaa833](0eaa833))
* **jobsdb:** graceful shutdown of addNewDSLoop and refreshDSListLoop
([#7210](#7210))
([78e104c](78e104c))
* remove archiveInPreProcess processor toggle
([#7205](#7205))
([f471b1d](f471b1d))

---
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>
itsmihir pushed a commit that referenced this pull request Aug 4, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.82.0](v1.81.0...v1.82.0)
(2026-08-03)


### Features

* **processor:** fork event processing for configured isolated
destinations
([#7207](#7207))
([6eb91b4](6eb91b4))
* **processor:** isolated destination processing pipeline
([#7202](#7202))
([a684641](a684641))
* **router:** detect and classify transformer-proxy contract breaches
(INT-6839)
([#7184](#7184))
([c7a15a8](c7a15a8))
* **router:** gate 296 delivered-with-warning behind per-workspace
rollout
([#7217](#7217))
([1d772a1](1d772a1))


### Bug Fixes

* apply configured client QPS and Burst settings in restConfig
([#7220](#7220))
([762bc06](762bc06))
* gcs manager allows non-service account credentials and warehouse ssl
keys can escape their containing path
([#7227](#7227))
([3e126b2](3e126b2))
* mid-run pod deaths under concurrent test runs
([#7212](#7212))
([5279b64](5279b64))
* normalize null BingAds offline conversion fields
([#7236](#7236))
([678f130](678f130))
* use correct JSON tag for adjustedConversionTime in bing-ads
([#7204](#7204))
([50df0f7](50df0f7))


### Miscellaneous

* add new readme logo
([#7200](#7200))
([ab86afd](ab86afd))
* **deps:** bump the go-deps group across 1 directory with 32 updates
([#7199](#7199))
([0eaa833](0eaa833))
* **jobsdb:** graceful shutdown of addNewDSLoop and refreshDSListLoop
([#7210](#7210))
([78e104c](78e104c))
* remove archiveInPreProcess processor toggle
([#7205](#7205))
([f471b1d](f471b1d))

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

3 participants