CI from the suites; Argo CD deploys main through pin PRs; the image tests itself #1000

Merged
merge-queue merged 5 commits from pipt-12-suites into main 2026-11-16 20:10:29 -08:00
Owner

Part of https://openproject.home.romaine.life/wp/PIPT-12. Needs pipeline-templates PR 109 (PR pin fields) and chess-tactics' fleet entry first; infra-bootstrap PR 14 (romaine-life/infra-bootstrap#14), which points Argo CD at main, follows this.

Removed first: the prod deploy branch stops being written (Argo CD moves to main through infra-bootstrap PR 14), pull requests no longer build or push candidate images or the sha-<commit> aliases Glimmung test slots used, a manual dispatch no longer prebuilds a ref, and the chart's appVersion is no longer bumped per deploy (nothing renders it; the app's version is the frontend's own).

  • Deletes ci.yml and tofu.yaml, and the scripts only they used (write-build-info.mjs, image-fingerprint.sh, immutable-image-release.test.mjs). ADR-0645 records the move and supersedes ADR-0644.
  • On a PR the web-app suite runs each package's npm run lint and npm test: the backend against a PostgreSQL service (its schema mirror, smoke and netplay tests), the frontend's guards and type check as lint and vitest as test (npm run check is still both), on Linux. It builds the image and runs --self-test: the page and every script and stylesheet of its own it loads, the trainer bundle, the board renderer, and every entry point parsing (backend/self-check.js, reached through the supervisor).
  • checks.yml runs the Markdown guards when a PR changes Markdown, so a documentation-only PR is still checked.
  • A release is v0.1.N (continuing v0.1.539). Its pin PR writes the image by tag and digest and the build provenance Settings → About shows (the release commit, and the PR it merged) into k8s/values.yaml, which now holds exactly what prod runs: app-a7686a…@sha256:d97b3c27… and PR 999's build info.
  • tofu/ pins its own providers (azurerm 4.70.0, azuread 3.8.0, random 3.9.0, lock entries from infra-bootstrap's); OpenTofu stays at 1.9.0.
  • sync-bgm-metadata.yml stays (manual) with the concurrency block the suites' rules require. The backend installs from its lock in the image (npm ci).

Checked locally: the backend's lint, the frontend's lint (every guard and tsc), the doc guards (618 ADRs indexed, links resolve), the self-check against a real frontend, trainer and board-render build (and failing with the page's code removed), and tofu init -lockfile=readonly, validate and fmt. Vitest and the backend's database tests run on the PR.

Part of https://openproject.home.romaine.life/wp/PIPT-12. Needs pipeline-templates PR 109 (PR pin fields) and chess-tactics' fleet entry first; infra-bootstrap PR 14 (https://forgejo.romaine.life/romaine-life/infra-bootstrap/pulls/14), which points Argo CD at main, follows this. Removed first: the `prod` deploy branch stops being written (Argo CD moves to main through infra-bootstrap PR 14), pull requests no longer build or push candidate images or the `sha-<commit>` aliases Glimmung test slots used, a manual dispatch no longer prebuilds a ref, and the chart's `appVersion` is no longer bumped per deploy (nothing renders it; the app's version is the frontend's own). - Deletes ci.yml and tofu.yaml, and the scripts only they used (`write-build-info.mjs`, `image-fingerprint.sh`, `immutable-image-release.test.mjs`). ADR-0645 records the move and supersedes ADR-0644. - On a PR the web-app suite runs each package's `npm run lint` and `npm test`: the backend against a PostgreSQL service (its schema mirror, smoke and netplay tests), the frontend's guards and type check as `lint` and vitest as `test` (`npm run check` is still both), on Linux. It builds the image and runs `--self-test`: the page and every script and stylesheet of its own it loads, the trainer bundle, the board renderer, and every entry point parsing (`backend/self-check.js`, reached through the supervisor). - `checks.yml` runs the Markdown guards when a PR changes Markdown, so a documentation-only PR is still checked. - A release is v0.1.N (continuing v0.1.539). Its pin PR writes the image by tag and digest and the build provenance Settings → About shows (the release commit, and the PR it merged) into `k8s/values.yaml`, which now holds exactly what prod runs: `app-a7686a…@sha256:d97b3c27…` and PR 999's build info. - `tofu/` pins its own providers (azurerm 4.70.0, azuread 3.8.0, random 3.9.0, lock entries from infra-bootstrap's); OpenTofu stays at 1.9.0. - `sync-bgm-metadata.yml` stays (manual) with the concurrency block the suites' rules require. The backend installs from its lock in the image (`npm ci`). Checked locally: the backend's lint, the frontend's lint (every guard and `tsc`), the doc guards (618 ADRs indexed, links resolve), the self-check against a real frontend, trainer and board-render build (and failing with the page's code removed), and `tofu init -lockfile=readonly`, `validate` and `fmt`. Vitest and the backend's database tests run on the PR.
CI from the suites; Argo CD deploys main through pin PRs; the image tests itself (PIPT-12, ADR-0645)
All checks were successful
Checks / check-docs (pull_request) Successful in 16s
298e1e00bc
Run the suites
Some checks failed
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite web-app / scope (push) Has been skipped
Suite web-app / check-test (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
Suite cluster-service / scope (pull_request) Successful in 28s
Suite default / scope (pull_request) Successful in 27s
Suite cluster-service / publish (pull_request) Has been skipped
Suite cluster-service / check-image (pull_request) Has been skipped
Checks / check-docs (pull_request) Successful in 32s
Suite tofu / scope (pull_request) Successful in 27s
Suite tofu / apply (pull_request) Has been skipped
Suite web-app / scope (pull_request) Successful in 21s
Suite web-app / publish (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite cluster-service / check-manifests (pull_request) Successful in 7s
Suite default / check-fetches (pull_request) Successful in 8s
Suite default / check-rules (pull_request) Successful in 7s
Suite tofu / check-plan (pull_request) Failing after 17s
merge-queue CI failed: Suite tofu / check-plan (pull_request)
Suite cluster-service / reused-checks (pull_request) Successful in 8s
Suite default / reused-checks (pull_request) Successful in 11s
Suite tofu / reused-checks (pull_request) Successful in 11s
Suite web-app / check-test (pull_request) Failing after 55s
Suite web-app / check-image (pull_request) Successful in 1m16s
Suite web-app / reused-checks (pull_request) Successful in 5s
0f4ab44717
First-time contributor

merge-queue stopped this at 0f4ab44: CI failed: Suite tofu / check-plan (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the queue label.

merge-queue stopped this at 0f4ab44: CI failed: Suite tofu / check-plan (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the `queue` label.
OpenTofu stays at 1.9.0, so versions.tf requires 1.9.0 or later
Some checks failed
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite web-app / scope (push) Has been skipped
Suite web-app / check-test (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
merge-queue CI failed: Suite web-app / check-test (pull_request)
Suite tofu / scope (pull_request) Successful in 25s
Suite cluster-service / scope (pull_request) Successful in 27s
Suite web-app / scope (pull_request) Successful in 26s
Suite default / scope (pull_request) Successful in 27s
Suite tofu / apply (pull_request) Has been skipped
Suite cluster-service / check-image (pull_request) Has been skipped
Suite cluster-service / publish (pull_request) Has been skipped
Checks / check-docs (pull_request) Successful in 29s
Suite web-app / publish (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite cluster-service / check-manifests (pull_request) Successful in 14s
Suite default / check-fetches (pull_request) Successful in 6s
Suite default / check-rules (pull_request) Successful in 6s
Suite web-app / check-image (pull_request) Successful in 14s
Suite cluster-service / reused-checks (pull_request) Successful in 7s
Suite default / reused-checks (pull_request) Successful in 7s
Suite web-app / check-test (pull_request) Failing after 42s
Suite tofu / check-plan (pull_request) Successful in 46s
Suite tofu / reused-checks (pull_request) Successful in 7s
Suite web-app / reused-checks (pull_request) Successful in 7s
ede6ee9eab
First-time contributor

merge-queue stopped this at ede6ee9: CI failed: Suite web-app / check-test (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the queue label.

merge-queue stopped this at ede6ee9: CI failed: Suite web-app / check-test (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the `queue` label.
Run the suites with the base branch's history
Some checks failed
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite web-app / scope (push) Has been skipped
Suite web-app / check-test (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
Suite cluster-service / scope (pull_request) Successful in 36s
Suite cluster-service / check-image (pull_request) Has been skipped
Suite cluster-service / publish (pull_request) Has been skipped
Checks / check-docs (pull_request) Successful in 41s
Suite default / scope (pull_request) Successful in 33s
Suite tofu / scope (pull_request) Successful in 30s
Suite tofu / apply (pull_request) Has been skipped
Suite web-app / scope (pull_request) Successful in 24s
Suite cluster-service / check-manifests (pull_request) Successful in 11s
Suite web-app / publish (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Successful in 11s
Suite default / check-rules (pull_request) Successful in 13s
Suite cluster-service / reused-checks (pull_request) Successful in 14s
Suite default / reused-checks (pull_request) Successful in 10s
Suite web-app / check-image (pull_request) Successful in 17s
Suite tofu / check-plan (pull_request) Successful in 44s
Suite tofu / reused-checks (pull_request) Successful in 19s
Suite web-app / check-test (pull_request) Failing after 3m0s
merge-queue CI failed: Suite web-app / check-test (pull_request)
Suite web-app / reused-checks (pull_request) Successful in 8s
cd5e2ac01f
First-time contributor

merge-queue stopped this at cd5e2ac: CI failed: Suite web-app / check-test (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the queue label.

merge-queue stopped this at cd5e2ac: CI failed: Suite web-app / check-test (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the `queue` label.
The smoke test declares its database disposable, so a CI job service's database is accepted
All checks were successful
merge-queue landed on main
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite web-app / scope (push) Has been skipped
Suite web-app / check-test (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
Suite cluster-service / scope (pull_request) Successful in 20s
Suite tofu / scope (pull_request) Successful in 20s
Suite web-app / scope (pull_request) Successful in 20s
Suite default / scope (pull_request) Successful in 21s
Suite cluster-service / check-image (pull_request) Has been skipped
Suite cluster-service / publish (pull_request) Has been skipped
Checks / check-docs (pull_request) Successful in 22s
Suite tofu / apply (pull_request) Has been skipped
Suite web-app / publish (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 7s
Suite default / check-fetches (pull_request) Successful in 7s
Suite cluster-service / check-manifests (pull_request) Successful in 8s
Suite cluster-service / reused-checks (pull_request) Successful in 7s
Suite default / reused-checks (pull_request) Successful in 7s
Suite tofu / check-plan (pull_request) Successful in 34s
Suite web-app / check-image (pull_request) Successful in 39s
Suite tofu / reused-checks (pull_request) Successful in 5s
Suite web-app / check-test (pull_request) Successful in 3m9s
Suite web-app / reused-checks (pull_request) Successful in 5s
de84c24dc0
merge-queue deleted branch pipt-12-suites 2026-11-16 20:10:29 -08:00
Sign in to join this conversation.
No description provided.