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

Package causing Google Cloud Composer environment update to time out #1173

Open
emilaleksanteri opened this issue Oct 4, 2024 · 6 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification.

Comments

@emilaleksanteri
Copy link

Question

I dont't know if its neccesarily this library; however, as soon as I added cloud-sql-python-connector to my PyPI packages on google cloud composer, building the composer environment times out when installing packages after 35 minutes. Without cloud-sql-python-connector the build takes ~5 minutes. Is there a reason why this packagage specifically causes the build to timeout even when specifying a version for it?

Code

No response

Additional Details

No response

@emilaleksanteri emilaleksanteri added the type: question Request for information or clarification. label Oct 4, 2024
@jackwotherspoon jackwotherspoon added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Oct 4, 2024
@jackwotherspoon
Copy link
Collaborator

Hi @emilaleksanteri thanks for raising an issue on the Cloud SQL Python Connector 😄

This definitely seems like odd behavior as our package does not have many dependencies, and most are very commonly used packages.

dependencies = [
"aiofiles",
"aiohttp",
"cryptography>=42.0.0",
"Requests",
"google-auth>=2.28.0",
]

Maybe there is some type of dependency conflict with one of our dependencies and the Composer version you are using.

Which version of Cloud Composer are you using and seeing this behavior with?

Will take a look into this for you.

@emilaleksanteri
Copy link
Author

Hi @emilaleksanteri thanks for raising an issue on the Cloud SQL Python Connector 😄

This definitely seems like odd behavior as our package does not have many dependencies, and most are very commonly used packages.

dependencies = [
"aiofiles",
"aiohttp",
"cryptography>=42.0.0",
"Requests",
"google-auth>=2.28.0",
]

Maybe there is some type of dependency conflict with one of our dependencies and the Composer version you are using.

Which version of Cloud Composer are you using and seeing this behavior with?

Will take a look into this for you.

Thank you for the swift response! Current composer setup is on this composer-2.9.4-airflow-2.9.3 and trying to add cloud-sql-python-connector==1.12.1 to the PyPI.

@emilaleksanteri
Copy link
Author

Hi @emilaleksanteri thanks for raising an issue on the Cloud SQL Python Connector 😄
This definitely seems like odd behavior as our package does not have many dependencies, and most are very commonly used packages.

dependencies = [
"aiofiles",
"aiohttp",
"cryptography>=42.0.0",
"Requests",
"google-auth>=2.28.0",
]

Maybe there is some type of dependency conflict with one of our dependencies and the Composer version you are using.
Which version of Cloud Composer are you using and seeing this behavior with?
Will take a look into this for you.

Thank you for the swift response! Current composer setup is on this composer-2.9.4-airflow-2.9.3 and trying to add cloud-sql-python-connector==1.12.1 to the PyPI.

@jackwotherspoon found that version 1.6.0 is the latest version that works with Composer airflow

@jackwotherspoon
Copy link
Collaborator

@emilaleksanteri This seems like a duplicate issue of #1082 where the cryptography package version is causing the timeout as we force cryptography>=42.0.0 as of 1.7.0 of the Cloud SQL Python Connector (which is why 1.6.0 works for you).

Although I am surprised you are seeing this issue with composer-2.9.4-airflow-2.9.3 as I recently got the cryptography package bumped to cryptography==43.0.1 in newer Composer versions.

Do you mind giving the latest Composer version (composer-2.9.5-airflow-2.9.3) a try to see if the problem still persists?

@emilaleksanteri
Copy link
Author

@jackwotherspoon Unfortionately the latest version I'm able to upgrade to is composer-2.9.4-airflow-2.9.3 but once a newer version becomes available I'll be sure to test and let you know!

@jackwotherspoon
Copy link
Collaborator

Hi @emilaleksanteri, just wanted to follow up and see if you have had a change to try any of the latest few composer versions? (we are now on composer-2.9.8-airflow-2.9.3 as the latest)

Hoping one of these newer versions fixes the dependency conflict and allows you to take advantage of the latest Cloud SQL Python Connector version 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification.
Projects
None yet
Development

No branches or pull requests

2 participants