repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

ci: migrate pipeline to luci

772ec903986d5655b0e535d8ecbaa91dac6a07d1

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

.ci/ci.kdl

Added
new file mode 100644
1 +job "ci" {
2 + image "mcr.microsoft.com/playwright:v1.61.0-noble"
3 + run "curl https://mise.run | sh"
4 + run "export PATH=\"$HOME/.local/bin:$PATH\""
5 + run "mise install"
6 + run "CI=true mise run ci"
7 +}

.github/workflows/check.yml

Deleted
deleted file mode 100644
1 -name: check
2 -on:
3 - push:
4 - pull_request_target:
5 -permissions:
6 - contents: read
7 -jobs:
8 - extensions:
9 - runs-on: ubuntu-latest
10 - steps:
11 - - name: Checkout
12 - env:
13 - CHECKOUT_REPO: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
14 - CHECKOUT_REF: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
15 - run: |
16 - git init .
17 - git remote add origin "https://github.com/${CHECKOUT_REPO}.git"
18 - git fetch --depth=1 origin "$CHECKOUT_REF"
19 - git checkout --detach FETCH_HEAD
20 - - name: Install mise
21 - run: |
22 - curl https://mise.run | sh
23 - echo "$HOME/.local/bin" >> "$GITHUB_PATH"
24 - - name: Install tools
25 - run: mise install
26 - - name: CI
27 - run: mise run ci

AGENTS.md

Modified
31 31 Run one from the root with `mise //extensions/<name>:<task>`.
32 32 Use `mise tasks --all` to list root and extension-local tasks.
34 +### CI hosting
36 +Luci at `ci.bugabinga.net` auto-discovers `.ci/*.kdl` from the public Soft Serve repository.
37 +The repository CI job must delegate to `CI=true mise run ci`; do not duplicate checks in Luci config.
34 39 ### Invariant
36 41 `mise run ci` must pass before pushing.

docs/super/plans/2026-07-12-mise-task-architecture-phase-4-tune-e2e-ci.md

Modified
7 7 **Architecture:** Extract tune’s embedded dashboard HTTP/SSE server into one focused module used by production and Playwright. Tune owns its local suite and task, while root mise installs browser system dependencies only under CI and runs the release gate in `check → lint → test → e2e` order.
9 -**Tech Stack:** Playwright 1.61, Chromium, Firefox, Node HTTP/SSE, mise monorepo tasks, TypeScript, GitHub Actions.
9 +**Tech Stack:** Playwright 1.61, Chromium, Firefox, Node HTTP/SSE, mise monorepo tasks, TypeScript, Luci, Podman.
11 11 **Roadmap:** [`docs/super/roadmaps/2026-07-12-mise-task-architecture-roadmap.md`](../roadmaps/2026-07-12-mise-task-architecture-roadmap.md)
28 28 - `extensions/tune/playwright.config.ts`: local overlay on shared browser policy.
29 29 - `extensions/tune/__e2e__/dashboard.spec.ts`: real dashboard load, interaction, and live-update smoke test.
30 30 - `extensions/tune/mise.toml`: local E2E task ownership.
31 +- `.ci/ci.kdl`: Luci job using the pinned Playwright image.
32 33 **Modify:**
38 39 - `AGENTS.md`: document E2E as part of CI.
39 40 - `extensions/tune/README.md`: document dashboard E2E usage.
42 +**Delete:**
44 +- `.github/workflows/check.yml`: obsolete workflow for the previous host.
41 46 **Unchanged:**
43 48 - `extensions/tune/assets/template.html`: browser behavior remains unchanged.
44 49 - Existing tune Vitest suites remain detailed logic coverage.
45 -- `.github/workflows/check.yml`: continues to call only `mise install` and `mise run ci`.
46 50 - Benchmark tasks remain outside CI.
48 52 ### Task 1: Extract The Dashboard Server Behind A Tested API
470 474 **Files:**
472 476 - Modify: `mise.toml:54-86`
473 -- Verify: `.github/workflows/check.yml`
477 +- Create: `.ci/ci.kdl`
478 +- Delete: `.github/workflows/check.yml`
475 480 - [ ] **Step 1: Verify the current CI order excludes E2E**
493 498 Local `mise run e2e` downloads browser engines without mutating host system packages.
494 -GitHub Actions sets `CI`, so the same root task uses Playwright’s supported dependency installation path.
499 +Luci runs the job with `CI=true`, so the same root task uses Playwright’s supported dependency installation path.
496 501 - [ ] **Step 3: Set the final release-gate order**
534 539 Expected: browser install includes `--with-deps`.
536 -- [ ] **Step 5: Verify GitHub Actions remains generic**
541 +- [ ] **Step 5: Migrate repository CI to Luci**
538 -Read `.github/workflows/check.yml`.
539 -Expected: it installs mise/tools and invokes only `mise run ci`; no extension-specific test command is added.
543 +Delete `.github/workflows/check.yml`.
544 +Create `.ci/ci.kdl` with one push-triggered `ci` job using `mcr.microsoft.com/playwright:v1.61.0-noble`.
545 +The job installs mise, runs `mise install`, then runs `CI=true mise run ci`.
546 +Validate the KDL with Luci’s real parser and run the exact job command in a clean ephemeral Podman worktree.
541 548 - [ ] **Step 6: Commit release-gate promotion**
647 654 - Aggregate four-extension E2E results.
648 655 - Final `mise run ci` order and result.
649 656 - Commits created.
650 -- Confirmation that GitHub Actions remains extension-agnostic.
657 +- Confirmation that Luci parser validation and local ephemeral-container parity pass.
651 658 - Confirmation that Phase 5 remains unimplemented.

docs/super/roadmaps/2026-07-12-mise-task-architecture-roadmap.md

Modified
173 173 - Make tune automatically participate in the aggregate E2E command.
174 174 - Change root `ci` order to check, lint, test, then e2e.
175 175 - Update Git-hook and task documentation for the final command surface.
176 -- Verify GitHub Actions needs no extension-specific browser logic beyond `mise run ci`.
176 +- Replace the obsolete GitHub Actions workflow with Luci `.ci/ci.kdl` running only `CI=true mise run ci`.
178 178 **Out of scope:**
190 190 - `extensions/tune/index.ts`: minimal deterministic test seam only if required.
191 191 - `mise.toml`: final CI ordering.
192 192 - `AGENTS.md`, extension READMEs, and task documentation: final commands.
193 -- `.github/workflows/check.yml`: verification, with changes only if browser system dependencies require them.
193 +- `.ci/ci.kdl`: Luci job definition using the pinned Playwright image.
195 195 **Dependencies:**
197 197 - Phases 1 through 3.
198 -- Stable aggregate E2E execution on local and GitHub Actions environments.
198 +- Stable aggregate E2E execution locally and in a Luci-parity ephemeral container.
200 200 **Verification:**
203 203 - Root `mise run e2e` runs diff-review, UI, mockup, and tune in both browsers.
204 204 - Root `mise run test` runs Vitest only.
205 205 - Root `mise run bench` remains sequential and excluded from CI.
206 -- `mise run ci` passes in the documented order locally and in GitHub Actions.
206 +- `mise run ci` passes locally and in the Luci-parity ephemeral container.
207 207 - Root and all-task listings satisfy the design acceptance criteria.
209 209 **Phase boundary health:** Browser task architecture ends with one complete release gate and no partial migration or extension-specific root task leakage.