Skip to content

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

Open
sfc-gh-fpawlowski wants to merge 4 commits into
mainfrom
SNOW-2912540-remove-connector-shims
Open

SNOW-2912540: define ASYNC_RETRY_PATTERN and compat.OK locally#4282
sfc-gh-fpawlowski wants to merge 4 commits 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 <noreply@anthropic.com>
@github-actions github-actions Bot added the local testing Local Testing issues/PRs label Jul 9, 2026
@codecov-commenter

codecov-commenter commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.45%. Comparing base (361cd43) to head (42128db).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4282      +/-   ##
==========================================
+ Coverage   95.21%   95.45%   +0.24%     
==========================================
  Files         171      171              
  Lines       44538    44523      -15     
  Branches     7617     7617              
==========================================
+ Hits        42406    42499      +93     
+ Misses       1320     1253      -67     
+ Partials      812      771      -41     

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

sfc-gh-fpawlowski and others added 2 commits July 22, 2026 16:38
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sfc-gh-fpawlowski
sfc-gh-fpawlowski marked this pull request as ready for review July 22, 2026 16:45
@sfc-gh-fpawlowski
sfc-gh-fpawlowski requested review from a team as code owners July 22, 2026 16:45
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