Upskii Production E2E workflow
(.github/workflows/upskii-production-e2e.yaml) runs Playwright suites
against the production hosts tuturuuu.com, meet.tuturuuu.com,
app.upskii.com, upskii.com and admin.upskii.com. Every account it uses is a
disposable QA identity, and it removes everything it creates, including on
failure. The hosts are fixed in code (apps/web/e2e-upskii-production/policy.ts),
so the suite cannot be pointed at another deployment.
Suites
The
educator and learner suites make at most one AI model call per run.
Triggers and bounds
- Trusted triggers only. A credential-free
gatejob re-proves everyworkflow_runcompletion with the canonical trust step (producer path, workflow ID, exact branch, event, conclusion and same repository) and applies the kill switch before the production job starts. - One run at a time. Runs share the concurrency group
upskii-production-e2e, which never cancels a run that is cleaning up. - No retries. Playwright retries are
0, and production writes are not repeated. - Hard timeouts. The job has 35 minutes, the suites 22, each test 120 seconds and each API request 20 seconds. Cleanup has a 5-minute deadline.
- Daily runs. The Tuturuuu operator allows at most 12 QA runs per rolling 24 hours. Each suite run uses two (members and the non-member), so about six suite runs a day fit.
Kill switch
Set the repository variableUPSKII_PRODUCTION_E2E_ENABLED to anything other
than true to stop every trigger; the job is skipped. The suite code repeats
the check (readRunConfig), so a local or forked invocation cannot reach
production either. Cleanup-only runs (mode: sweep) need the switch on as well.
Two upstream switches also stop provisioning:
private.qa_test_user_controlfor Tuturuuu QA accounts (see QA test users);QA_PROVISIONER_ENABLEDon the Upskii Admin Worker.
Credentials
Passwords that the provisioners return stay in a
0600 file in the runner’s
temp directory and are deleted in global teardown. Traces and video are off,
because they can capture session cookies. Failure screenshots are kept for
3 days.
Cleanup guarantees
Cleanup works through two kinds of owner, recorded in an append-only run ledger (tmp/upskii-production-e2e/ledger.jsonl) before each create call
returns:
- A Tuturuuu QA run. Deleting it deletes its accounts and run workspace. The meetings, meeting records, uploads and external account links in that workspace go with it.
- An Upskii QA identity. The admin purge hard-deletes everything the identity owns, then disables it. The purge refuses any account without the provisioner-only QA marker.
coveredBy), and the test also deletes it through the product API in a
finally block. The workflow runs four passes:
- Sweep before the tests: removes owners that earlier runs left behind. The workflow allows only one run at a time, so every remaining suite owner is an orphan.
- Global teardown (Playwright) cleans up in-process.
cli.ts cleanup(if: always()) runs again, even if Playwright crashed.cli.ts verify(if: always()) re-reads both servers. The step fails if any owner in this ledger still exists, any tracked object has no owner, or anyupskii-e2eQA account or run-labelled Upskii identity is still live from any run.
mode: sweep is safe.
The sweep is bounded: it reads at most five provisioner pages (500 Upskii
identities) per run. Provisioning allows far fewer per day, so one sweep
normally clears everything. If more remain, the sweep and verify steps fail
and name the incomplete listing; dispatch mode: sweep again until verify
passes.
Reading a failure
Failures keep one open issue labelledupskii-production-e2e-alert. Fleet
monitors watch the label, and the next green run comments on the issue and
closes it.
Run locally only with an operator’s explicit approval: the suites write to
production. Set the same variables, then run
bun x playwright test --config playwright.upskii-production.config.ts from
apps/web. The cli.ts commands are sweep, cleanup and verify.
Regression coverage
apps/web/e2e-upskii-production/harness.test.tscovers the kill switch, QA-only addresses, the host and egress fences, the ledger fold, cleanup order and idempotency, purge looping, leak detection and the sweep’s current-run protection.scripts/ci/upskii-production-e2e-alert.test.mjscovers the alert issue lifecycle.