Repository navigation
test: pytransformer pooling contract tests - #6883
Merged
Merged
Conversation
…connection pool behaviour Covers 5 scenarios required by tasks/03-contract-tests.md: - Geo timeout with a shorter sandbox HTTP timeout cap fires first (503 retryable) - Sandbox cap honoured when user timeout exceeds it (400 non-retryable) - User timeout honoured when shorter than the sandbox cap (400 non-retryable) - New TCP connection per request when ENABLE_CONN_POOL=false - Connection reused across requests when ENABLE_CONN_POOL=true Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
fracasula
marked this pull request as ready for review
April 16, 2026 11:57
itsmihir
approved these changes
Apr 20, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6883 +/- ##
==========================================
+ Coverage 79.68% 79.99% +0.31%
==========================================
Files 565 565
Lines 63317 63317
==========================================
+ Hits 50451 50650 +199
+ Misses 9876 9667 -209
- Partials 2990 3000 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ktgowtham
approved these changes
Apr 20, 2026
This was referenced Apr 27, 2026
Closed
Merged
mihir20
pushed a commit
that referenced
this pull request
Apr 27, 2026
🤖 I have created a release *beep* *boop* --- ## [1.74.0-rc.1](v1.73.0...v1.74.0-rc.1) (2026-04-27) ### Features * add configurable batch size for bulk inserting failed rsources records ([#6873](#6873)) ([d8f6ea0](d8f6ea0)) * add native deletion support for identity removal in gzip files ([#6896](#6896)) ([c1e27d0](c1e27d0)) * deep job pickups when no results cache is cold ([#6850](#6850)) ([03e9d88](03e9d88)) * **jobsdb:** improve migration compaction ([#6844](#6844)) ([b7f2b9f](b7f2b9f)) ### Bug Fixes * add correct host for salesforceBU destination ([#6906](#6906)) ([2430cb4](2430cb4)) * batch router drained events metrics ([#6898](#6898)) ([c5b2927](c5b2927)) * build action failing ([#6899](#6899)) ([691a812](691a812)) * snowpipe struck scenarios ([#6895](#6895)) ([35b07a8](35b07a8)) * use tid instead of vid ([#6908](#6908)) ([954dcf7](954dcf7)) ### Miscellaneous * avoid marshalling proc error job payloads ([#6872](#6872)) ([145826b](145826b)) * bump build-scan-push-action from v2.1.0 to v2.2.0 ([#6903](#6903)) ([e917f9b](e917f9b)) * contract tests for dns regressions and overrides ([#6864](#6864)) ([b105678](b105678)) * pin and bump action refs (SEC-171) ([#6863](#6863)) ([8089953](8089953)) * pytransformer pooling contract tests ([#6883](#6883)) ([0530c8c](0530c8c)) * scope workflow permissions to least privilege (SEC-167) ([#6911](#6911)) ([5600dbe](5600dbe)) * update Slack notification method in scheduled release workflow ([#6879](#6879)) ([3b67dcb](3b67dcb)) * **vuln:** zizmor --fix=all findings (SEC-199) ([#6905](#6905)) ([d8cc34f](d8cc34f)) --- 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>
mihir20
pushed a commit
that referenced
this pull request
Apr 28, 2026
🤖 I have created a release *beep* *boop* --- ## [1.74.0](v1.73.0...v1.74.0) (2026-04-27) ### Features * add configurable batch size for bulk inserting failed rsources records ([#6873](#6873)) ([d8f6ea0](d8f6ea0)) * add native deletion support for identity removal in gzip files ([#6896](#6896)) ([c1e27d0](c1e27d0)) * deep job pickups when no results cache is cold ([#6850](#6850)) ([03e9d88](03e9d88)) * **jobsdb:** improve migration compaction ([#6844](#6844)) ([b7f2b9f](b7f2b9f)) ### Bug Fixes * add correct host for salesforceBU destination ([#6906](#6906)) ([2430cb4](2430cb4)) * batch router drained events metrics ([#6898](#6898)) ([c5b2927](c5b2927)) * build action failing ([#6899](#6899)) ([691a812](691a812)) * snowpipe struck scenarios ([#6895](#6895)) ([35b07a8](35b07a8)) * use tid instead of vid ([#6908](#6908)) ([954dcf7](954dcf7)) ### Miscellaneous * avoid marshalling proc error job payloads ([#6872](#6872)) ([145826b](145826b)) * bump build-scan-push-action from v2.1.0 to v2.2.0 ([#6903](#6903)) ([e917f9b](e917f9b)) * contract tests for dns regressions and overrides ([#6864](#6864)) ([b105678](b105678)) * pin and bump action refs (SEC-171) ([#6863](#6863)) ([8089953](8089953)) * pytransformer pooling contract tests ([#6883](#6883)) ([0530c8c](0530c8c)) * scope workflow permissions to least privilege (SEC-167) ([#6911](#6911)) ([5600dbe](5600dbe)) * update Slack notification method in scheduled release workflow ([#6879](#6879)) ([3b67dcb](3b67dcb)) * **vuln:** zizmor --fix=all findings (SEC-199) ([#6905](#6905)) ([d8cc34f](d8cc34f)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Add contract and backwards-compatibility tests for pytransformer HTTP timeout capping, connection pooling, cookie isolation, and
requestsmodule wrapper behaviour. Also simplifies Docker container lifecycle in existing tests (cleanup is now handled bystartRudderPytransformer/startOpenFaasFlaskinternally) and fixes the Slack notification payload format in the scheduled-release workflow.Test scenarios
HTTP timeout and connection pool (
http_timeout_conn_pool_contract_test.go)SANDBOX_HTTP_TIMEOUT_Sdoes not cap internal geolocation traffic (geolocation calls are bound exclusively byGEOLOCATION_TIMEOUT_SECS)SANDBOX_HTTP_TIMEOUT_Swhen the user-supplied timeout is larger than the sandbox capSANDBOX_HTTP_TIMEOUT_Srequests.get()opens a fresh TCP connection whenENABLE_CONN_POOL=falserequests.get()calls to the same host reuse the pooled TCP connection whenENABLE_CONN_POOL=truetransformation_version_ids open separate TCP connections whenCONN_POOL_PER_TRANSFORMATION=true(default), even through the same worker subprocesstransformation_version_ids share a single TCP connection whenCONN_POOL_PER_TRANSFORMATION=falseSANDBOX_HTTP_TIMEOUT_Sand does not pin the sandbox worker for the full body durationCookie isolation (
cookie_isolation_contract_test.go)ENABLE_CONN_POOL=true, single worker subprocess)headers,auth,params,cookies,hooks) attached to a barerequests.get()call never persist as session defaults on the shared pooled session, matching old-arch (vanillarequests) behaviourSet-Cookieis parsed byrequests(proof the leak channel exists) but never forwarded to the next callBare
requestspositional params (bare_requests_backwards_compatibility_test.go)requests.get(url, {"q": "hello"})(second positional = params) produces identical results on old arch, new arch with pool disabled, and new arch with pool enabledrequests.post(url, {"q": "hello"})(second positional = data) produces identical results across all three architecturesrequests.put(url, {"q": "hello"})andrequests.patch(url, {"q": "hello"})produce identical results across all three architecturesrequests.post(url, data, json)with all three arguments passed positionally completes withoutTypeErroron the pooled path and matches old-arch outputrequestsmodule wrapper (requests_api_contract_test.go)from requests.api import get(bound at import time) produces identical results to old-arch vanillarequestsrequests.api.get(url)(attribute chain resolved at call time) produces identical results to old-arch vanillarequestsrequests.request("GET", url)(verb-parameterized entry point) produces identical results to old-arch vanillarequestsENABLE_CONN_POOL=falseandENABLE_CONN_POOL=trueENABLE_CONN_POOL=true,from requests.api import getandrequests.request("GET", url)reuse the pooled TCP connection across sequential calls (proving they flow through the pooling wrapper)Geolocation timeout (
geolocation_backwards_compatibility_test.go)GeolocationServerErrorinheritsBaseException, bypassing userexcept Exception) rather than a per-event 400Other changes
Linear Ticket
< Fixes PIPE-2902 >
Security