Skip to content

chore: remove ginkgo and gomega from tests - #7508

Merged
atzoum merged 2 commits into
masterfrom
chore/pipe-3568-ginkgo-pr4
Oct 26, 2026
Merged

atzoum merged 2 commits into
masterfrom
chore/pipe-3568-ginkgo-pr4

Conversation

@atzoum

@atzoum atzoum commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Migrates the last Ginkgo/Gomega suites — router (router, worker, masking), services/oauth/v2/** and processor — to testing + testify, then removes Ginkgo from the repo: the Ginkgo helpers in utils/tests and testhelper/log are deleted (copied BasicAuthMock/CpResponseProducer helpers go back to the shared utils/tests), the temporary depguard allowlist is dropped, and onsi/ginkgo/v2 leaves go.mod (onsi/gomega stays only as an indirect requirement of go-redis).

Test fixes along the way: routers and processors set up by the tests are shut down on cleanup and the router's backend-config subscription is released; routerAborted is an atomic.Bool (it raced under -race); ut_mirroring's timestamp check compared milliseconds against a nanosecond delta and now uses WithinDuration; oauth tests match the exact error in the chain like MatchError did.

Linear Ticket

Resolves PIPE-3568

Security

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

🤖 Generated with Claude Code

@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch from 337a812 to 7ccb83f Compare October 20, 2026 09:10
@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 85.15%. Comparing base (83db4d6) to head (ba18fe2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7508      +/-   ##
==========================================
+ Coverage   85.11%   85.15%   +0.04%     
==========================================
  Files         634      631       -3     
  Lines       62998    62937      -61     
==========================================
- Hits        53620    53596      -24     
+ Misses       9375     9338      -37     
  Partials        3        3              

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

@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch from 7ccb83f to 52cff62 Compare October 20, 2026 14:01
@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch from 52cff62 to db090f1 Compare October 20, 2026 14:36
@atzoum atzoum changed the title chore(router): migrate router and oauth tests from ginkgo to testify chore: migrate router, oauth and processor tests from ginkgo to testify Oct 20, 2026
@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch 2 times, most recently from 0f2a155 to 71ae97e Compare October 21, 2026 10:31

@fracasula fracasula left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved with minor comments.

Comment thread processor/processor_test.go Resolved
Comment thread router/worker_test.go Resolved
Comment thread processor/ut_mirroring_test.go Resolved
Comment thread router/router_test.go Resolved
@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch 2 times, most recently from e31de19 to 81bfbba Compare October 21, 2026 10:47
@atzoum
atzoum marked this pull request as ready for review October 22, 2026 07:03
@atzoum
atzoum marked this pull request as draft October 22, 2026 07:04
@ktgowtham
ktgowtham marked this pull request as ready for review October 22, 2026 11:12
@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch from 81bfbba to 181dd6f Compare October 22, 2026 13:50
@atzoum atzoum changed the title chore: migrate router, oauth and processor tests from ginkgo to testify chore: remove ginkgo and gomega from tests Oct 22, 2026
@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch from 181dd6f to 7b5a7d9 Compare October 22, 2026 14:32
Migrates the router, oauth and processor suites to testify, deletes the
ginkgo test helpers and the temporary depguard allowlist, and drops the
ginkgo dependency.

Resolves PIPE-3568

Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@atzoum
atzoum force-pushed the chore/pipe-3568-ginkgo-pr4 branch from 7b5a7d9 to 7ce5265 Compare October 26, 2026 07:45
…rency

The processor goroutine could drain every source between the writers
finishing and stop being closed, leaving nothing pending. Store a final
batch per source after the concurrent phase so the final gauges are
always non-zero.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@atzoum
atzoum merged commit d3e7e0f into master Oct 26, 2026
111 of 115 checks passed
@atzoum
atzoum deleted the chore/pipe-3568-ginkgo-pr4 branch October 26, 2026 09:00
This was referenced Oct 26, 2026
itsmihir pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.92.0-rc.1](v1.91.0...v1.92.0-rc.1)
(2026-10-26)


### Features

* **processor:** pyt test-pod deployer sets PYT_MODE=test
([#7506](#7506))
([a050ed6](a050ed6))
* **processor:** reset the per-workspace pyt client on 421
([#7494](#7494))
([83db4d6](83db4d6))
* **router:** re-fetch the cached OAuth token when the control plane
holds a newer secret (PRO-5947)
([#7478](#7478))
([742779d](742779d))
* **router:** tag oauth_action counters with destinationId and count
AUTH_STATUS_INACTIVE (PRO-5946)
([#7477](#7477))
([0e15eb4](0e15eb4))


### Bug Fixes

* flaky TestDrainConfigRoutine failing with "database is closed"
([#7489](#7489))
([9baa89f](9baa89f))


### Miscellaneous

* block new ginkgo/gomega usage in tests
([#7502](#7502))
([e1c9d38](e1c9d38))
* bump dependency versions
([#7522](#7522))
([1067ff4](1067ff4))
* enforce errors.AsType and point CLAUDE.md at AGENTS.md
([#7521](#7521))
([5c7e088](5c7e088))
* go 1.27.3
([#7516](#7516))
([3c240a3](3c240a3))
* migrate debugger, services, async destination and utils tests from
ginkgo to testify
([#7503](#7503))
([1a8c85a](1a8c85a))
* migrate gateway, rsources, reporting, batchrouter and manager tests
from ginkgo to testify
([#7507](#7507))
([ffdd505](ffdd505))
* remove ginkgo and gomega from tests
([#7508](#7508))
([d3e7e0f](d3e7e0f))

---
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 Oct 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.92.0](v1.91.0...v1.92.0)
(2026-10-26)


### Features

* **processor:** pyt test-pod deployer sets PYT_MODE=test
([#7506](#7506))
([a050ed6](a050ed6))
* **processor:** reset the per-workspace pyt client on 421
([#7494](#7494))
([83db4d6](83db4d6))
* **router:** re-fetch the cached OAuth token when the control plane
holds a newer secret (PRO-5947)
([#7478](#7478))
([742779d](742779d))
* **router:** tag oauth_action counters with destinationId and count
AUTH_STATUS_INACTIVE (PRO-5946)
([#7477](#7477))
([0e15eb4](0e15eb4))


### Bug Fixes

* flaky TestDrainConfigRoutine failing with "database is closed"
([#7489](#7489))
([9baa89f](9baa89f))


### Miscellaneous

* block new ginkgo/gomega usage in tests
([#7502](#7502))
([e1c9d38](e1c9d38))
* bump dependency versions
([#7522](#7522))
([1067ff4](1067ff4))
* enforce errors.AsType and point CLAUDE.md at AGENTS.md
([#7521](#7521))
([5c7e088](5c7e088))
* go 1.27.3
([#7516](#7516))
([3c240a3](3c240a3))
* migrate debugger, services, async destination and utils tests from
ginkgo to testify
([#7503](#7503))
([1a8c85a](1a8c85a))
* migrate gateway, rsources, reporting, batchrouter and manager tests
from ginkgo to testify
([#7507](#7507))
([ffdd505](ffdd505))
* remove ginkgo and gomega from tests
([#7508](#7508))
([d3e7e0f](d3e7e0f))

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