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

Infra: Upload rendered PEPs as GitHub artifact #2410

Merged
merged 3 commits into from
Mar 11, 2022

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 10, 2022

Similar to python/cpython#30419.

Whilst we're deciding whether to use something like Read the Docs that builds hosted previews of PRs, we can use https://github.com/actions/upload-artifact to create a zip of the rendered PEPs built on the CI.

This makes testing/reviewing a bit easier: no need to checkout the branch and build locally. Also reviewable on mobile.

@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label Mar 10, 2022
@hugovk
Copy link
Member Author

hugovk commented Mar 10, 2022

The zip can be found from "Render PEPs" > Summary > Artifacts > 📦 peps:

image

https://github.com/python/peps/actions/runs/1965215444

@AA-Turner
Copy link
Member

Is there a way to set an expiration date (1 week?) -- I don't want to over-use any free resource.

A

@hugovk
Copy link
Member Author

hugovk commented Mar 10, 2022

Yes, we can set a retention period between 1 and 90 days:

@AA-Turner AA-Turner merged commit 719347a into python:main Mar 11, 2022
@hugovk hugovk deleted the upload-artifact branch March 11, 2022 05:33
@CAM-Gerlach
Copy link
Member

Thanks @hugovk ; this is very useful. I'd been thinking for a while of adding something similar, but just hadn't gotten around to it yet.

@AA-Turner
Copy link
Member

@hugovk uploads take ~60s which means CI takes longer to pass for merging quick-fix PRs -- is there a way to speed it up at all?

A

@hugovk
Copy link
Member Author

hugovk commented Mar 11, 2022

Now we have RTD build previews (I wasn't expecting them to be ready so quick :), I think we can remove this artifact upload?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants