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

prepare doc preview s3-prefix for future change #7459

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Mar 24, 2023

This patch is correct but somewhat confusing. Right now we are using the $OWNER/$REPO scheme at the start of the s3-prefix:

s3-prefix: pytorch/vision/${{ github.event.pull_request.number }}

However, the CloudFront setup currently swallows a leading pytorch/. Thus, our docs are currently served under https://docs-preview.pytorch.org/$REPO/$PR/index.html, e.g. https://docs-preview.pytorch.org/vision/7453/index.html.

We want to get rid of this configuration in the future. To avoid disruption, this after this PR we will additionally upload to the future location and after a grace period disable the old path.

This means that right now we need to upload with s3-prefix: pytorch/pytorch/vision/ to counteract the CloudFront configuration. After the grace period we can go back to the current pytorch/vision/ since that already uses the $OWNER/$REPO scheme we want. Meaning, after we change the CloudFront configuration, our current setup will upload to https://docs-preview.pytorch.org/$OWNER/$REPO/$PR/index.html

cc @seemethere

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 24, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7459

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pmeier
Copy link
Collaborator Author

pmeier commented Mar 24, 2023

Doc preview can now be accessed through

with the former what the bot currently links to and the latter what it will link to in the future.

@pmeier pmeier merged commit db7dc02 into pytorch:main Mar 27, 2023
@pmeier pmeier deleted the prepare-doc-preview branch March 27, 2023 12:01
@github-actions
Copy link

Hey @pmeier!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

facebook-github-bot pushed a commit that referenced this pull request Apr 21, 2023
Reviewed By: vmoens

Differential Revision: D44552411

fbshipit-source-id: c292dba3d9c80c381462b55f8eb0f595ec1dc610
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants