Skip to content

Build Lua reference pages with the shared docs workflow - #214

Draft
tony wants to merge 1 commit into
masterfrom
ci/shared-port-docs
Draft

tony wants to merge 1 commit into
masterfrom
ci/shared-port-docs

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Build Lua documentation with the shared port workflow. The Lua repository still selects the source, version and preview role. The workflow calls the builder and publisher at the same revision and checks that a preview is still current before publishing it.

Dependencies

  • The reusable Lua exporter landed on website main in #383. Both workflow calls still need a single website revision that includes maintenance branches (#391) and manual previews (#393). Lua exporter · Maintenance branches · Manual preview dispatch.
  • #185 lets the Lua exporter read the v0.1.1 example manifest and bundle its launcher.
  • Lua must opt in to numbered maintenance branches at the final workflow revision. Maintenance branch support.
  • Manual preview dispatch accepts the current PR merge ref or its exact SHA. Both the build and publisher verify the open PR and its tested merge. Manual preview support.

The draft currently uses different queues to upload and delete previews. An upload can leave files behind after close, and a delayed cleanup can delete a reopened PR’s fresh preview. GitHub also blocked the close event before a job started on seven PRs through #169. Cleanup issue · GitHub’s run annotation.

A local alternative puts cleanup in the same queue as publication and checks existing previews once an hour from the default branch. It rereads each PR’s state before deleting its preview. The local tests cover reopened PRs, duplicate listings and a failed deletion retried on the next sweep. The branch on GitHub still has the original close trigger.

Test plan

  • Validate the workflow with actionlint. This took under a second on Linux ARM64.
  • Run the workflow tests for paired pins, the Lua artifact and the preview role.
  • Run the Lua documentation and formatting gates.
  • Replay an open Lua PR with the local provider changes. The builder accepted both refs/pull/N/merge and the exact tested merge SHA. The publisher accepted the artifact’s source before AWS authentication.
  • Build the preview at its final provider pin and verify the supported dispatch modes.
  • Test the proposed hourly cleanup locally. All 17 Lua cases and 11 command-line cases passed using fixture services.
  • Verify the scheduled job can list Lua preview folders with the existing cleanup role.
  • Close a PR with a known preview and check that cleanup removes it at the origin and public URL. Reopen it, publish again and confirm that its preview and a neighboring PR’s preview stay accessible.

Related to #106 and #113.

why:
Port documentation should use the same version selection and artifact
checks as the shared documentation site.

what:
- Send the Lua checkout and requested version to the shared builder.
- Pin the builder and publisher together and verify the preview role.
- Keep the maintenance branch and manual preview inputs visible.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant