Skip to content

SNOW-2912540: mock-patch try_add_log_to_batch instead of reading _log_batch - #4321

Open
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-request-id-compatfrom
SNOW-2912540-log-batch-mock-patch
Open

SNOW-2912540: mock-patch try_add_log_to_batch instead of reading _log_batch#4321
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-request-id-compatfrom
SNOW-2912540-log-batch-mock-patch

Conversation

@sfc-gh-fpawlowski

Copy link
Copy Markdown
  1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-NNNNNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
      • If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am adding new credentials
    • I am adding a new dependency
    • If this is a new feature/behavior, I'm adding the Local Testing parity changes.
    • I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: Thread-safe Developer Guidelines
    • If adding any arguments to public Snowpark APIs or creating new public Snowpark APIs, I acknowledge that I have ensured my changes include AST support. Follow the link for more information: AST Support Guidelines
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from SNOW-2912540-request-id-compat to graphite-base/4321 August 20, 2026 17:14
@sfc-gh-fpawlowski
sfc-gh-fpawlowski force-pushed the SNOW-2912540-log-batch-mock-patch branch from a450af0 to dc6bd66 Compare August 20, 2026 17:14
@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from graphite-base/4321 to SNOW-2912540-request-id-compat August 20, 2026 17:14

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@codecov-commenter

codecov-commenter commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (939ff2a) to head (2257b69).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           SNOW-2912540-request-id-compat    #4321   +/-   ##
===============================================================
  Coverage                           95.44%   95.44%           
===============================================================
  Files                                 172      172           
  Lines                               44771    44771           
  Branches                             7682     7682           
===============================================================
  Hits                                42730    42730           
  Misses                               1264     1264           
  Partials                              777      777           

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

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from SNOW-2912540-request-id-compat to graphite-base/4321 August 21, 2026 07:00
@sfc-gh-fpawlowski
sfc-gh-fpawlowski force-pushed the SNOW-2912540-log-batch-mock-patch branch from dc6bd66 to a654ad9 Compare August 21, 2026 08:35
@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from graphite-base/4321 to SNOW-2912540-request-id-compat August 21, 2026 08:35

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from SNOW-2912540-request-id-compat to graphite-base/4321 August 21, 2026 09:36
@sfc-gh-fpawlowski
sfc-gh-fpawlowski force-pushed the SNOW-2912540-log-batch-mock-patch branch from a654ad9 to 98c0936 Compare August 21, 2026 09:37
@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from graphite-base/4321 to SNOW-2912540-request-id-compat August 21, 2026 09:37

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

…_batch

The Universal Driver (drivers#1104, BD#58) moves TelemetryClient's batch
buffer into the Rust core, so `_log_batch` no longer exists on Python and
conn._telemetry._log_batch raises AttributeError there. Replace the two
direct reads of that buffer with a spy on try_add_log_to_batch (the one
call Snowpark actually makes), matching the pattern already dominant in
modin/test_telemetry.py's other tests. Works unchanged under both drivers
since try_add_log_to_batch exists on both.
@sfc-gh-fpawlowski
sfc-gh-fpawlowski force-pushed the SNOW-2912540-log-batch-mock-patch branch from 98c0936 to 2257b69 Compare August 21, 2026 09:59

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

@snowflake-security-bot snowflake-security-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

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