-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve pull request previews #852
Comments
We should raise the priority for this item - the emails about amplify comments that are later deleted is annoying,
If no one else started implementing something - I'll do PS> We can avoid the second workflow by setting S3 lifecycle to auto-delete content > 90days (and mentioned it on the PR comment) it will save us a few $ on github-actions bill |
The plan make sense to me, I will be happy to see a working demo.
Less worries about the cost, and more about old, out dated preview floating around, maybe indexed by Google. |
No worry about google (and other search engines) - should be blocked by robots.txt |
@dgarcia360 I understand @benipeled already has a close-to-ready solution, so I need to work on this for now. |
Hi @benipeled, The solution outlined will only work for users who are invited to the repo and have write permissions. Note that contributors submitting pull requests from forks will not be able to access the encrypted variable that will contain the S3 key. Given this, I recommend triggering the docs build only when a label is added to a pull request by a maintainer or someone with direct write access, rather than on every push. I have availability too if you need anything from my side. |
Thanks @dgarcia360 for the input I'll check this option |
The Amplify PR preview recently added has no option to run against docs changes only but it triggers against all pull-requests and create a comment that is later deleted (part of the amplify-enhanced flow) - this flow creates too much noise This change removes the Amplify workflow and implements the preview solution as part of the existing github-action workflow, The workflow: - Triggers for all doc changes, not just master/enterprise - Docs preview will be published to S3 and hosted on a based-PR URL dev-docs.scylladb.com/repo-name/pr-number - A PR comment will be posted with direct links to changed pages. - The preview content will be deleted from S3 once the PR will be merged/closed Ref: scylladb/sphinx-scylladb-theme#852 (comment)
The docs-preview implemented by a new Jenkins pipeline (part of the pkg repo) |
@annastuchlik / @tzach please close this issue |
Amplify triggers on every build, not only if there are pull request related changes.
We are evaluating to push directly to Amplify / S3 Bucket / PushPreview the artifact generated with the "Docs / PR" workflow.
The text was updated successfully, but these errors were encountered: