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

Avoid timeouts while publishing a package on Pypi #9

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

sduenas
Copy link
Member

@sduenas sduenas commented Nov 28, 2023

Publishing packages on PyPI using GitHub actions can take longer than expected. Poetry has a timeout of 15 seconds to check for new activity on the network but on GitHub actions sometimes that's not enough. This error was reported on python-poetry/poetry#6009 and it's fixed using the env variable POETRY_REQUESTS_TIMEOUT. We set this variable to 120 seconds that should be more that enough for PyPI to finish the work.

Publishing packages on PyPI using GitHub actions
can take longer than expected. Poetry has a timeout
of 15 seconds to check for new activity on the network
but on GitHub actions sometimes that's not enough.
This error was reported on
python-poetry/poetry#6009
and it's fixed using the env variable POETRY_REQUESTS_TIMEOUT.
We set this variable to 120 seconds that should be
more that enough for PyPI to finish the work.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
@zhquan
Copy link
Member

zhquan commented Nov 28, 2023

LGTM

@zhquan zhquan self-requested a review November 28, 2023 10:48
Copy link
Member

@zhquan zhquan left a comment

Choose a reason for hiding this comment

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

LGTM

@sduenas sduenas merged commit c2ccea8 into chaoss:master Nov 28, 2023
1 check passed
@sduenas sduenas deleted the poetry-timeout branch November 28, 2023 10:53
jesse-c added a commit to climatepolicyradar/cpr-sdk that referenced this pull request Jul 23, 2024
This was added in 2022, so it's been around for a while as an option.
Others have used this for similar issues [1][2].

[1] python-poetry/poetry#6009
[2] chaoss/grimoirelab-github-actions#9
jesse-c added a commit to climatepolicyradar/cpr-sdk that referenced this pull request Jul 23, 2024
This was added in 2022, so it's been around for a while as an option.
Others have used this for similar issues [1][2].

[1] python-poetry/poetry#6009
[2] chaoss/grimoirelab-github-actions#9
jesse-c added a commit to climatepolicyradar/cpr-sdk that referenced this pull request Jul 23, 2024
This was added in 2022, so it's been around for a while as an option.
Others have used this for similar issues [1][2].

[1] python-poetry/poetry#6009
[2] chaoss/grimoirelab-github-actions#9
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.

2 participants