CI: the rest of the CI standard after #76/#77 (semgrep, zizmor, pip-audit, coverage floor, UI tests) #78

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

This is part of a pass to bring every repo up to the CI standard, the shared checklist built from Pulse's pipeline. #55 and its PRs #76 and #77 already cover the deploy half: gating, signed sha payloads, /health verification, rollback, pinned actions and images, gitleaks, actionlint, shellcheck and Matrix alerts. This issue lists what the standard still asks for after those merge. Don't hold #76/#77 for it.

Gaps after #76/#77

  • semgrep in the scan job: p/python, p/flask, p/javascript, p/secrets and p/security-audit, plus any Gandalf-specific rules with --test cases. Pulse's step is the model.
  • zizmor on the workflow (zizmor==1.32.0 in a venv, --offline).
  • pip-audit on requirements.txt, and npm audit (high) with npm audit signatures for the eslint toolchain. Both run in the weekly schedule too.
  • Coverage floor: 765 tests reach 76% today. Set --cov-fail-under=75 now and raise it as coverage grows (Thor uses 90). Add -W error::DeprecationWarning.
  • Integration tests against a real database: run the DB layer (db.py, schema.sql) against MariaDB installed in the job container (scripts/ci/mariadb.sh, as in Pulse and Thor), not only mocks.
  • UI tests (Playwright) for the web app:
    • every page renders at desktop and phone width, in dark and light mode, from seeded data;
    • a test fails on any page error, console error or HTTP ≥ 400.
  • Before/after screenshots on PRs that touch templates/ or static/.
  • The contract with Tinker: a test that pins the create-ticket payload Gandalf sends (dedup_key, title tags, the action values it handles). Tinker's contract changed in tinker_tickets#123/#126.
  • If Gandalf vendors web_template, add the drift check (scripts/ci/check-web-template.sh).
  • Branch protection: make the check jobs required on main.

Related: #55, #76, #77, and the gitleaks history scan done for #74.

🤖 Generated with Claude Code

This is part of a pass to bring every repo up to the [CI standard](https://wiki.lotusguild.org/Infrastructure/ci-standard), the shared checklist built from Pulse's pipeline. #55 and its PRs #76 and #77 already cover the deploy half: gating, signed sha payloads, `/health` verification, rollback, pinned actions and images, gitleaks, actionlint, shellcheck and Matrix alerts. This issue lists what the standard still asks for **after those merge**. Don't hold #76/#77 for it. ## Gaps after #76/#77 - [ ] **semgrep** in the scan job: `p/python`, `p/flask`, `p/javascript`, `p/secrets` and `p/security-audit`, plus any Gandalf-specific rules with `--test` cases. Pulse's step is the model. - [ ] **zizmor** on the workflow (`zizmor==1.32.0` in a venv, `--offline`). - [ ] **pip-audit** on `requirements.txt`, and **npm audit** (high) with `npm audit signatures` for the eslint toolchain. Both run in the weekly schedule too. - [ ] **Coverage floor:** 765 tests reach 76% today. Set `--cov-fail-under=75` now and raise it as coverage grows (Thor uses 90). Add `-W error::DeprecationWarning`. - [ ] **Integration tests against a real database:** run the DB layer (`db.py`, `schema.sql`) against MariaDB installed in the job container (`scripts/ci/mariadb.sh`, as in Pulse and Thor), not only mocks. - [ ] **UI tests (Playwright)** for the web app: - every page renders at desktop and phone width, in dark and light mode, from seeded data; - a test fails on any page error, console error or HTTP ≥ 400. - [ ] **Before/after screenshots on PRs** that touch `templates/` or `static/`. - [ ] **The contract with Tinker:** a test that pins the create-ticket payload Gandalf sends (`dedup_key`, title tags, the `action` values it handles). Tinker's contract changed in tinker_tickets#123/#126. - [ ] If Gandalf vendors web_template, add the drift check (`scripts/ci/check-web-template.sh`). - [ ] **Branch protection:** make the check jobs required on `main`. Related: #55, #76, #77, and the gitleaks history scan done for #74. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#78