Repository navigation
Closed
Labels
Description
Part of #5246 and #5200, split off by the Lead's decision on both: the capture they need.
Goal
A documentation screenshot can be retaken without a person's machine. A GitHub Actions workflow:
- boots the disposable stack of
services/platform/tests/docs-screenshots/README.md; - runs
bun run docs:screenshotsfor the shots it is asked for; - returns the WebP files as an artifact, which an agent commits on its branch.
Two retakes wait for it:
- docs: retake the consent page screenshot that still offers AI subscriptions #5246: one shot,
agent-consent; - docs: retake the governance screenshots that still say Competences #5200: eight governance shots in English, and
governance-audit-logsin German and French.
What it has to do
- Start on demand, for a branch. Its inputs are the shots (
--only) and the locales (--locales, defaulten).- Only someone who can already push to the repository may start it:
workflow_dispatch. - Optionally also a
pushto a dedicated branch prefix, so the workflow can be proven before it reachesmain. GitHub only starts aworkflow_dispatchworkflow that is on the default branch. - Never
pull_request_target,issue_comment,workflow_run, or any trigger a fork can start.
- Only someone who can already push to the repository may start it:
- Least access.
permissions: contents: read, and nothing more.- No repository secret beyond the read-only
GITHUB_TOKENthat the existing setup steps take. persist-credentials: false.
- Safe inputs. The inputs reach the shell only through
env:. Before use, they are checked againstbun run docs:screenshots -- --listand the shipped locales. Never put${{ inputs.* }}inside arun:script. - The runbook's stack, nothing else.
- The synthetic seed and the mock gateway.
- The repository's database image and an object store, started on the runner.
- The same runner selection as the E2E platform job.
- No model provider, no customer data, no external credential.
- The artifact.
- It holds only the captured files under
services/docs/public/images/and the generated manifest. - It is kept for 7 days at most.
- It never holds
.state/(which holds a session), or logs that carry a session.
- It holds only the captured files under
- Marketing posters (optional). Some posters derive from a docs shot: docs: retake the governance screenshots that still say Competences #5200's
governance-audit-logsfeedsservices/web/public/marketing/optimized/governance-audit-logs-*. If regenerating them needs the stack, the workflow may offerweb:screenshotsas a second mode, under the same constraints. - The runbook gets a section "Capture in CI" that says how to:
- start the workflow for a branch;
- download the artifact (
gh run download); - inspect each image at full size before committing it.
Done when
- The workflow and the runbook section are on the task's branch.
- The repository's workflow checks pass.
- A run of the workflow on the task's head captured at least one shot and uploaded it.
agent-consentis the natural shot to use.- The handover gives the run's ID.
- The image was inspected at full size.
- What could not be run is written down.
Line: stable. It is a ci change about the docs and the screenshot runner that main ships, and workflow_dispatch only starts from the default branch.
Kind: improvement. Priority: p3.
Activity
ci(docs): capture documentation screenshots in a workflow
ci(docs): capture documentation screenshots in a workflow