Skip to content

Honor no-preview before a website upload - #407

Draft
tony wants to merge 1 commit into
check-closed-preview-readfrom
recheck-website-preview
Draft

tony wants to merge 1 commit into
check-closed-preview-readfrom
recheck-website-preview

Conversation

@tony

@tony tony commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Summary

A maintainer can add no-preview while libtmux.org is building a pull request. The audit, preview artifact and publishing dry-run can still finish. Immediately before requesting AWS credentials, the publisher reads the PR’s current labels and skips the upload when it finds no-preview.

The publisher also checks that the PR is still open and that its current head and base are the two parents of the merge it tested. A closed PR or a changed source stops publication. An ordinary unlabeled draft can still publish.

Fixes #406. This ships the upload check separately from the scheduled removal of closed previews in #404. The small read-only workflow in #405 is already in the base of this draft.

Verification

  • Exercise a late label, an unlabeled draft, a changed source and the existing port and manual Lua previews through the website workflow tests.
  • Run the actual publishing steps with mock storage. A late label skips both credentials and writes. An eligible preview writes only to its own folder.
  • Read current public GitHub metadata. The new check approved the ordinary website PR and skipped the labeled draft. Website audit for #378 · Label event on #405.
  • Run the ordinary website audit and publishing dry-run on the branch. The opening commit held CI while the opt-out label was applied.

what:
Open the draft with the five reviewed files.

why:
Adding no-preview after opening cannot stop an upload already queued.
Start the normal check after the label is in place.
@tony tony added enhancement New feature or request no-preview Run CI without publishing a PR preview. p3 Optional improvement to consider after the core work is measured. area:publishing Artifact verification, promotion, publication and rollback. topic:test-reliability Fixture timing, cleanup, or checks affected by scheduling and isolation. labels Dec 6, 2026

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

area:publishing Artifact verification, promotion, publication and rollback. enhancement New feature or request no-preview Run CI without publishing a PR preview. p3 Optional improvement to consider after the core work is measured. topic:test-reliability Fixture timing, cleanup, or checks affected by scheduling and isolation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant