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

Upgrade to Python 3.11 #1370

Closed
1 task
AetherUnbound opened this issue Nov 2, 2022 · 4 comments
Closed
1 task

Upgrade to Python 3.11 #1370

AetherUnbound opened this issue Nov 2, 2022 · 4 comments
Labels
💻 aspect: code Concerns the software code in the repository dependencies Pull requests that update a dependency file ✨ goal: improvement Improvement to an existing user-facing feature 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: catalog Related to the catalog and Airflow DAGs ⛔ status: blocked Blocked & therefore, not ready for work 🔧 tech: airflow Involves Apache Airflow 🐳 tech: docker Involves Docker
Projects

Comments

@AetherUnbound
Copy link
Contributor

Description

Python 3.11 is finally out, and with it comes a tremendous potential speedup:

Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite.

There are also some other exciting changes, including TypedDict optional fields improvements, enriched exceptions, and finer-grained exceptions.

We should try to get on this version as soon as possible, but unfortunately we're dependent on Airflow being Python 3.11 compatible. Work is being done upstream to accomplish this, and we should try to monitor it closely!

apache/airflow#27292

apache/airflow#27264

Additional context

Implementation

  • 🙋 I would be interested in implementing this feature.
@AetherUnbound AetherUnbound added dependencies Pull requests that update a dependency file ⛔ status: blocked Blocked & therefore, not ready for work ✨ goal: improvement Improvement to an existing user-facing feature 🐳 tech: docker Involves Docker 💻 aspect: code Concerns the software code in the repository 🔧 tech: airflow Involves Apache Airflow 🟨 priority: medium Not blocking but should be addressed soon labels Nov 2, 2022
@dhruvkb
Copy link
Member

dhruvkb commented Nov 2, 2022

This issue should go in WordPress/openverse. We would definitely want Python 3.11 in the API and ingestion-server as well!

@AetherUnbound
Copy link
Contributor Author

Agreed, we'll want them upgraded too! I'm assuming dependabot will actually cover those two repos next month, but I think a separate issue in this repo is reasonable since we're pretty heavily dependent on Airflow supporting 3.11 before advancing on this.

@obulat obulat added the 🧱 stack: catalog Related to the catalog and Airflow DAGs label Feb 23, 2023
@openverse-bot openverse-bot added this to Backlog in Openverse Apr 17, 2023
@obulat obulat transferred this issue from WordPress/openverse-catalog Apr 17, 2023
@dhruvkb
Copy link
Member

dhruvkb commented Apr 18, 2023

😄 The action item from 2022-11-03 was finally completed.

@sarayourfriend
Copy link
Contributor

Closing this as finished, in favour of just using #663 to upgrade Airflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository dependencies Pull requests that update a dependency file ✨ goal: improvement Improvement to an existing user-facing feature 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: catalog Related to the catalog and Airflow DAGs ⛔ status: blocked Blocked & therefore, not ready for work 🔧 tech: airflow Involves Apache Airflow 🐳 tech: docker Involves Docker
Projects
Archived in project
Openverse
  
Backlog
Development

No branches or pull requests

4 participants