Skip to content

Verify manual Lua PR previews in the reusable workflows - #393

Open
tony wants to merge 1 commit into
mainfrom
feat/lua-manual-preview-dispatch
Open

tony wants to merge 1 commit into
mainfrom
feat/lua-manual-preview-dispatch

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Lua maintainers can dispatch a new build for an open pull request through the shared workflows. The builder resolves the PR to GitHub's test merge and freezes that commit for the build. The publisher rechecks the verified artifact's merge against the live PR and both merge parents before requesting AWS credentials. Fork PRs and dispatches with publication disabled produce build artifacts only.

Lua caller

Keep publish-previews: true on the builder. Dispatch version-kind: pr and version: pr-N with source-ref: refs/pull/N/merge or its exact current commit SHA, is-default: false, and an empty resolves-to. Set publish: true to request publication. The publish job must pass require-current-pr: true and use the existing docs-preview environment and preview role.

This is one prerequisite for Lua #214, alongside the exporter in #383 and the maintenance branch mode in #391.

Verification

  • Five positive dispatch checks failed on current main. The dispatch, identity, publisher, and provenance suites pass 319 checks with the changes.
  • Local read-only replay used an open same-repository Lua PR. Both accepted input forms pinned the same GitHub merge, and the publisher's pre-AWS guard accepted the artifact source. The negative tests cover closed and fork PRs, stale merges and parents, wrong source, wrong environment, and unavailable GitHub metadata.
  • Bash syntax, ShellCheck, changed-test Oxlint and diff checks passed. Actionlint reported the same diagnostics as main for both workflows. The provider merges cleanly with the current Export Lua API in the reusable port docs workflow #383 and Retain numbered maintenance docs builds for Lua #391 heads in local Git merge-tree checks.

The no-preview label holds the website preview publication job while hosted CI runs. Codex implemented and verified the change.

Closes #390.

@tony tony added the no-preview Run CI without publishing a PR preview. label Dec 5, 2026
why: Lua maintainers can rebuild a pull request preview from a
     dispatch. The shared workflows need to verify its tested merge.

what:
- Resolve open Lua pull requests to their tested merge before building.
- Recheck the artifact's merge, base and head before preview upload.
- Keep the dispatch opt-in and restrict forks to build-only artifacts.

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.

Verify manual Lua PR preview dispatch in the shared workflow

1 participant