Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1878542: Enable python 3.12 #2852

Merged
merged 8 commits into from
Jan 14, 2025
Merged

Conversation

sfc-gh-jrose
Copy link
Contributor

@sfc-gh-jrose sfc-gh-jrose commented Jan 10, 2025

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

    Fixes SNOW-1878542

  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
  3. Please describe how your code solves the related issue.

    This PR adds python 3.12 to our support matrix. The 3.12 test suite has been enabled for all OSs and CSPs in order to fully check compatibility. Once we've cut a release with 3.12 we should narrow the test matrix and enable the udf tests for 3.12.

@sfc-gh-stan
Copy link
Collaborator

Thank you for handling this! Here's some changes you might need too: #2641

@sfc-gh-jrose sfc-gh-jrose added the NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md label Jan 11, 2025
@sfc-gh-jrose sfc-gh-jrose force-pushed the jrose_snow_1878542_python_3_12 branch from 6117933 to 9c275df Compare January 13, 2025 20:11
@sfc-gh-jrose sfc-gh-jrose requested a review from a team January 14, 2025 17:51
Comment on lines +4276 to +4279
df = session.create_dataframe(
[["xyz", int("1" * 19)] for _ in range(200000)], schema=["a1", "b1"]
)
else:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This create statement was causing timeouts in live-mode tests. When running in live it will generate the data server side instead which seems more stable.

t0 = time()
async_job = session.sql("select system$wait(3)").collect_nowait()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

3.12 was about a tenth of a second faster which broke the assert in this test. moving the start time to before the collect is start fixes this issue.

@sfc-gh-jrose sfc-gh-jrose marked this pull request as ready for review January 14, 2025 19:16
@sfc-gh-jrose sfc-gh-jrose requested review from a team as code owners January 14, 2025 19:16
Copy link
Contributor

@sfc-gh-helmeleegy sfc-gh-helmeleegy left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@sfc-gh-jrose sfc-gh-jrose merged commit e633e96 into main Jan 14, 2025
61 checks passed
@sfc-gh-jrose sfc-gh-jrose deleted the jrose_snow_1878542_python_3_12 branch January 14, 2025 22:40
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants