Skip to content

Honor no-preview added while a website preview is queued #406

Backlog

Description

@tony

Summary

Let a maintainer add no-preview while a website PR is building and still get the test results without publishing the preview. Today the upload job checks the labels from when GitHub started the run. Contributor guide.

Motivation

GitHub added the label to #405 one second after it opened the PR. We deliberately skipped that opening audit, so it did not upload a preview. A maintainer should also be able to stop an upload after an ordinary audit has started. On #383, the site test alone ran for 3 hours 19 minutes. Label event on #405 · Website check on #383.

Evidence

We replayed the website workflow with an unlabeled opening event, then returned the current no-preview label from a local GitHub API fixture. The PR was open and its head and base still matched the tested source. The upload check proposed in #404 exited successfully and would have continued to publishing. In a new event that already contained the label, the website skipped publication. Current workflow · Upload check in #404.

Proposal

Check the PR’s current labels immediately before the website requests publishing credentials. When the matching PR has no-preview, finish successfully and skip the upload. Its site tests, preview artifact and publisher dry-run should still finish. An open draft with a matching source and ordinary labels should still publish its website preview.

References

The November change documented the requirement to label before pushing. A later proposal covered opted-in port publishers. Its maintainer marked that part available for a follow-up when closing the PR. Original label change · Port-publisher discussion.

Activity

  1. added
    enhancement
    p3
    area:publishing
    topic:test-reliability
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:publishingenhancementp3topic:test-reliability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions