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

Add python 3.12 testing to buildkite #19588

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Add python 3.12 testing to buildkite #19588

merged 1 commit into from
Feb 15, 2024

Conversation

gibsondan
Copy link
Member

@gibsondan gibsondan commented Feb 4, 2024

Summary & Motivation

Leaving the default at 3.11 since not all packages are supported yet, but with the release of universal_pathlib 0.2 today we are ready to support 3.12 in many of the core packages. The only changes that were required here were in tests.

resolves #17350

Test Plan: BK

@gibsondan gibsondan force-pushed the python312 branch 26 times, most recently from 15fda99 to 41dfa4a Compare February 11, 2024 20:09
@gibsondan gibsondan force-pushed the python312 branch 2 times, most recently from a3a5b2e to 11f07b6 Compare February 13, 2024 04:15
Copy link

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-k12lpj0p0-elementl.vercel.app
https://python312.dagster.dagster-docs.io

Direct link to changed pages:

@gibsondan gibsondan changed the title add python 3.12 to buildkite Add python 3.12 to buildkite Feb 13, 2024
@gibsondan gibsondan changed the title Add python 3.12 to buildkite Add python 3.12 testing to buildkite Feb 13, 2024
Comment on lines -10 to -11
# https://github.com/great-expectations/great_expectations/issues/7990
"typing_extensions<4.6.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

linked issue is resolved and was failing tests

@@ -152,7 +152,7 @@ def test_successful_host_dagster_ui_from_workspace():
log_level="warning",
)

assert server_call.called_with(mock.ANY, host="127.0.0.1", port=2343, log_level="warning")
server_call.assert_called_with(mock.ANY, host="127.0.0.1", port=2343, log_level="warning")
Copy link
Member Author

Choose a reason for hiding this comment

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

this was fun, CPython in 3.12 got smart enough to realize that this was just asserting that a Mock object was not None (always true), instead of the intended behavior


if sys.version_info >= (3, 12):
# pendulum sometimes raises DeprecationWarning on python3.12
warnings.filterwarnings("ignore", category=DeprecationWarning, module="pendulum")
Copy link
Member Author

Choose a reason for hiding this comment

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

unrelated pendulum DeprecationWarnings were failing tests that tried to suppress dagster ExperimentalWarnings


from dagster_tests.cli_tests.command_tests.test_cli_commands import (
Copy link
Member Author

Choose a reason for hiding this comment

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

this (and a couple of other similar fixes below) are no longer needed anymore now that we are installing in legacy editable mode, but can't hurt to keep either

Copy link
Member

@alangenfeld alangenfeld left a comment

Choose a reason for hiding this comment

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

Nice, thanks for pushing through all the BS to get this over the line

believe we should add "Programming Language :: Python :: 3.12", to the appropriate setup.py files

@gibsondan
Copy link
Member Author

#19780 adds the setup.py markers

@gibsondan gibsondan force-pushed the python312 branch 7 times, most recently from 8e05997 to 3e4fb08 Compare February 15, 2024 16:10
@gibsondan gibsondan merged commit a116c44 into master Feb 15, 2024
1 check was pending
@gibsondan gibsondan deleted the python312 branch February 15, 2024 17:06
PedramNavid pushed a commit that referenced this pull request Mar 28, 2024
## Summary & Motivation
Leaving the default at 3.11 since not all packages are supported yet,
but with the release of universal_pathlib 0.2 today we are ready to
support 3.12 in many of the core packages. The only changes that were
required here were in tests.

resolves #17350

Test Plan: BK
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.

Officialy support python 3.12
2 participants