Skip to content

SNOW-2912540: define ASYNC_RETRY_PATTERN and compat.OK locally#4282

Draft
sfc-gh-fpawlowski wants to merge 1 commit into
mainfrom
SNOW-2912540-remove-connector-shims
Draft

SNOW-2912540: define ASYNC_RETRY_PATTERN and compat.OK locally#4282
sfc-gh-fpawlowski wants to merge 1 commit into
mainfrom
SNOW-2912540-remove-connector-shims

Conversation

@sfc-gh-fpawlowski

Copy link
Copy Markdown

Removes two imports from snowflake-connector-python that the Universal Driver connector no longer provides as shims.

  • async_job.py: ASYNC_RETRY_PATTERN defined locally (was imported from connector.cursor)
  • mock/_telemetry.py: from http.client import OK (was imported from connector.compat)

Companion changes in snowflake-eng/universal-driver PR #512 and #513.

🤖 Generated with Claude Code

These constants were previously imported from snowflake-connector-python.
The Universal Driver connector no longer owns them (it has no internal use
for either symbol), so define them locally to remove the coupling.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions github-actions Bot added the local testing Local Testing issues/PRs label Jul 9, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.20%. Comparing base (029656c) to head (c46a533).
⚠️ Report is 35 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4282      +/-   ##
==========================================
+ Coverage   95.16%   95.20%   +0.04%     
==========================================
  Files         171      171              
  Lines       44158    44463     +305     
  Branches     7535     7606      +71     
==========================================
+ Hits        42022    42331     +309     
- Misses       1312     1320       +8     
+ Partials      824      812      -12     

☔ 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

local testing Local Testing issues/PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants