CI: bring the pipeline up to the CI standard (tier 1) #136

Open
opened 2026-11-29 00:02:01 -05:00 by jared · 0 comments
Owner

Part of a fleet-wide pass to give every repo the CI standard, a shared checklist built from Pulse's pipeline. Reference implementations: LotusGuild/pulse and LotusGuild/thor, .gitea/workflows/ci.yml. The tinker_tickets session is working on this, starting from #120.

Today

  • lint.yml: phpcs, eslint, PHP requirements, deploy, notify.
  • security.yml: semgrep.
  • No tests at all. #120, which adds the Playwright UI tests and screenshots, is still open.
  • Deploy waits for lint only, and the payload isn't checked.
  • No gitleaks, actionlint, zizmor or composer audit. No timeouts or concurrency.

Gaps

  • #120: the Playwright UI tests and before/after screenshots. Rebase onto development and land it.
  • One ci.yml for both branches:
    • on PRs, on pushes to main and development (each deploys), and weekly;
    • permissions: contents: read, concurrency, and timeout-minutes on every job;
    • pinned actions with persist-credentials: false.
  • Pinned PHP: a job image with PHP 8.4, matching prod (CT 132). The E_STRICT deprecation in #130 only showed on 8.4.
  • Lint:
    • php -l on every file under 8.4, plus phpcs;
    • eslint through npm ci with a lockfile;
    • the em/en dash check (#118 has to land first).
  • Scan job:
    • gitleaks over the full history (#134);
    • actionlint;
    • shellcheck;
    • zizmor;
    • semgrep (moved in from security.yml).
  • Dependencies: composer audit for the root and mcp/, and npm audit for the test toolchain, weekly too.
  • API and contract tests against MariaDB:
    • Turn the local create_ticket_api.php checks from #124/#131 into CI tests:
      • keyed and keyless dedup;
      • escalation;
      • an invalid key gives 400;
      • reopen-window cases across the three workflow setups;
      • new_recurrence chains;
      • concurrent creates;
      • ?dedup_key= lookup;
      • the link API.
    • Plus the Bearer endpoints, and the MCP tools (mcp/).
  • Gated, verified deploy:
    • deploy needs every check;
    • a signed {ref, sha, ts} payload;
    • a server-side script that deploys exactly that sha and rolls back if /health (new; it reports the sha and DB status) never comes up;
    • a deploy tag.
  • Matrix alerts on any failure on main/development or in the weekly run, and on every deploy.
  • Branch protection: make the check jobs required on main and development.

Related: #120, #134, #118.

🤖 Generated with Claude Code

Part of a fleet-wide pass to give every repo the [CI standard](https://wiki.lotusguild.org/Infrastructure/ci-standard), a shared checklist built from Pulse's pipeline. Reference implementations: `LotusGuild/pulse` and `LotusGuild/thor`, `.gitea/workflows/ci.yml`. **The tinker_tickets session is working on this**, starting from #120. ## Today - **`lint.yml`:** phpcs, eslint, PHP requirements, deploy, notify. - **`security.yml`:** semgrep. - **No tests at all.** #120, which adds the Playwright UI tests and screenshots, is still open. - Deploy waits for lint only, and the payload isn't checked. - No gitleaks, actionlint, zizmor or `composer audit`. No timeouts or concurrency. ## Gaps - [ ] **#120:** the Playwright UI tests and before/after screenshots. Rebase onto `development` and land it. - [ ] **One `ci.yml`** for both branches: - on PRs, on pushes to `main` and `development` (each deploys), and weekly; - `permissions: contents: read`, `concurrency`, and `timeout-minutes` on every job; - pinned actions with `persist-credentials: false`. - [ ] **Pinned PHP:** a job image with **PHP 8.4**, matching prod (CT 132). The E_STRICT deprecation in #130 only showed on 8.4. - [ ] **Lint:** - `php -l` on every file under 8.4, plus phpcs; - eslint through `npm ci` with a lockfile; - the em/en dash check (**#118** has to land first). - [ ] **Scan job:** - gitleaks over the full history (**#134**); - actionlint; - shellcheck; - zizmor; - semgrep (moved in from `security.yml`). - [ ] **Dependencies:** `composer audit` for the root and `mcp/`, and npm audit for the test toolchain, weekly too. - [ ] **API and contract tests against MariaDB:** - Turn the local `create_ticket_api.php` checks from #124/#131 into CI tests: - keyed and keyless dedup; - escalation; - an invalid key gives 400; - reopen-window cases across the three workflow setups; - `new_recurrence` chains; - concurrent creates; - `?dedup_key=` lookup; - the link API. - Plus the Bearer endpoints, and the MCP tools (`mcp/`). - [ ] **Gated, verified deploy:** - `deploy` needs every check; - a signed `{ref, sha, ts}` payload; - a server-side script that deploys exactly that sha and rolls back if `/health` (new; it reports the sha and DB status) never comes up; - a deploy tag. - [ ] **Matrix alerts** on any failure on `main`/`development` or in the weekly run, and on every deploy. - [ ] **Branch protection:** make the check jobs required on `main` and `development`. Related: #120, #134, #118. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/tinker_tickets#136