Skip to content

Fix doc-preview S3 path for workflow_dispatch runs#3688

Merged
jerryzh168 merged 5 commits intomainfrom
fix-preview-doc-build-dispatch
Jan 23, 2026
Merged

Fix doc-preview S3 path for workflow_dispatch runs#3688
jerryzh168 merged 5 commits intomainfrom
fix-preview-doc-build-dispatch

Conversation

@svekars
Copy link
Copy Markdown
Contributor

@svekars svekars commented Jan 22, 2026

When triggered via workflow_dispatch, the s3-prefix was resolving to pytorch/ao/{empty string},
causing files to upload to pytorch/ao//index.html (double slash). This made the preview inaccessible since the URL path didn't match.

Fix: Use github.run_id as fallback when PR number is unavailable, ensuring a valid path like
pytorch/ao/{run_id}/index.html.

When triggered via `workflow_dispatch`, the `s3-prefix`
was resolving to `pytorch/ao/`(empty string),
causing files to upload to `pytorch/ao//index.html` (double slash).
This made the preview inaccessible since the URL path didn't match.

Fix: Use `github.run_id` as fallback when PR number is
unavailable, ensuring a valid path like
`pytorch/ao/{run_id}/index.html`.
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Jan 22, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3688

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

✅ No Failures

As of commit 243f8cf with merge base 2a8714f (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 22, 2026
@svekars svekars added module: not user facing Use this tag if you don't want this PR to show up in release notes topic: documentation Use this tag if this PR adds or improves documentation labels Jan 22, 2026
@jerryzh168
Copy link
Copy Markdown
Contributor

let's test with manual run, seems the doc is not generated here by default (which is expected I guess)

@github-actions
Copy link
Copy Markdown
Contributor

📄 Doc Preview (workflow_dispatch)

You triggered a doc build manually via workflow_dispatch.
The pytorchbot doc preview link will not work for this build.

Use this link instead: https://docs-preview.pytorch.org/pytorch/ao/21261536097/index.html

@github-actions
Copy link
Copy Markdown
Contributor

📄 Doc Preview (workflow_dispatch)

You triggered a doc build manually via workflow_dispatch.
The pytorchbot doc preview link will not work for this build.

Use this link instead: https://docs-preview.pytorch.org/pytorch/ao/21262643383/index.html

@jerryzh168 jerryzh168 merged commit 789f07a into main Jan 23, 2026
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: not user facing Use this tag if you don't want this PR to show up in release notes topic: documentation Use this tag if this PR adds or improves documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants