Skip to content

Check whether a closed website preview still has files - #405

Draft
tony wants to merge 1 commit into
qa-preview-read-base-393from
check-closed-preview-read
Draft

tony wants to merge 1 commit into
qa-preview-read-base-393from
check-closed-preview-read

Conversation

@tony

@tony tony commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

The website kept serving the preview for merged PR #383. Before the hourly cleanup can be enabled, we need to know whether its scheduled job can see that preview folder. Issue #403 · Cleanup fix #404.

On the first scheduled run from main, the job uses the existing cleanup role to ask S3 whether pr-383/ contains an object. It requests one result and prints true or false. A denied lookup fails the job. Temporary session permissions limit the read to that folder in the website bucket. The workflow can be removed after the result is recorded.

Verification

  • The AWS CLI queried a local test server. Empty and nonempty folders returned the expected result. Access denials, service errors and unexpected counts failed the check.
  • Actionlint and ShellCheck passed. All 202 existing deployment and manual Lua preview tests passed on the proposed commit.
  • The AWS SDK can retry a request signed for a different region after a redirect. The temporary session permits a read only in us-east-1.
  • The hosted schedule and its live answer remain to be verified after merge. A preview still being present would explain what the cleanup needs to remove.

All three earlier website renders have runners. The opening commit holds the ordinary audit until capacity is available. Its workflow file matches the reviewed version. The regular checks will run with the no-preview label before this PR lands.

The base branch currently holds the reviewed files from #393 so the website can test this one workflow while earlier PRs finish. This PR can move to main after #393 lands. Website preview dispatch #393.

why:
A new PR has to acquire the no-preview label before its first site
audit. GitHub reads the labels that were on the triggering event.

what:
- Hold the opening run while labeling the pull request.
- Test the reviewed replacement commit after the label is present.

[skip ci]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-preview Run CI without publishing a PR preview.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant