CI from the suites; providers pinned in the repo; the image tests itself #166

Merged
merge-queue merged 3 commits from pipt-12-suites into main 2026-11-16 19:28:47 -08:00
Owner

Part of https://openproject.home.romaine.life/wp/PIPT-12. Needs pipeline-templates PR 105 (romaine-life/pipeline-templates#105) first.

  • Deletes ci.yaml and tofu.yaml. The suites test Go (Linux, Windows) and the server (typecheck, contract checks and tests, as npm run lint and npm test), plan OpenTofu on PRs and apply on merge, and release the clients, the Go module and the image under one v0.1.N.
  • tofu/ pins its own providers: versions.tf requires azurerm 4.70.0 and random 3.9.0, the versions infra-bootstrap's shared file pinned, and .terraform.lock.hcl carries exactly those providers' entries from its lock. CI no longer fetches provider files at run time. .terraform/ is ignored.
  • The image runs --self-test (new src/entry.ts and src/self-test.ts): the built server's module graph loads in TEST_MODE, /health answers, and it runs as nodejs (uid 1001), owning everything under /app, the check the old image step made. server.ts exports app and doesn't serve during the self-test.
  • The chart takes one image value by tag and digest (v0.1.54@sha256:e4443ab3…, the image running now), which the suite's pin PR rewrites.
  • The repository conventions (trailing newline, .yaml, no underscores) stay as a PR-only checks.yaml; tofu fmt is the tofu suite's.

Checked locally: typecheck, contract checks, 190 tests, the self-test against the built server, tofu init -lockfile=readonly and validate, the conventions, and ci-check's rules and fetches with PR 105's entry.

Part of https://openproject.home.romaine.life/wp/PIPT-12. Needs pipeline-templates PR 105 (https://forgejo.romaine.life/romaine-life/pipeline-templates/pulls/105) first. - Deletes ci.yaml and tofu.yaml. The suites test Go (Linux, Windows) and the server (typecheck, contract checks and tests, as `npm run lint` and `npm test`), plan OpenTofu on PRs and apply on merge, and release the clients, the Go module and the image under one v0.1.N. - `tofu/` pins its own providers: `versions.tf` requires azurerm 4.70.0 and random 3.9.0, the versions infra-bootstrap's shared file pinned, and `.terraform.lock.hcl` carries exactly those providers' entries from its lock. CI no longer fetches provider files at run time. `.terraform/` is ignored. - The image runs `--self-test` (new `src/entry.ts` and `src/self-test.ts`): the built server's module graph loads in TEST_MODE, `/health` answers, and it runs as nodejs (uid 1001), owning everything under /app, the check the old image step made. `server.ts` exports `app` and doesn't serve during the self-test. - The chart takes one `image` value by tag and digest (`v0.1.54@sha256:e4443ab3…`, the image running now), which the suite's pin PR rewrites. - The repository conventions (trailing newline, .yaml, no underscores) stay as a PR-only `checks.yaml`; `tofu fmt` is the tofu suite's. Checked locally: typecheck, contract checks, 190 tests, the self-test against the built server, `tofu init -lockfile=readonly` and `validate`, the conventions, and ci-check's rules and fetches with PR 105's entry.
Run the suites
All checks were successful
merge-queue landed on main
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 12s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / dispatch (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite web-app / scope (pull_request) Successful in 11s
Suite tofu / scope (pull_request) Successful in 11s
Suite web-app / check-image (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 tofu / apply (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Successful in 7s
Suite default / check-rules (pull_request) Successful in 7s
Suite go / reused-checks (pull_request) Successful in 7s
Suite default / reused-checks (pull_request) Successful in 7s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 42s
Suite tofu / check-plan (pull_request) Successful in 46s
Suite tofu / reused-checks (pull_request) Successful in 7s
Suite web-app / check-test (pull_request) Successful in 1m6s
Suite web-app / reused-checks (pull_request) Successful in 6s
Suite release / check-package (pull_request) Successful in 44s
Suite release / reused-checks (pull_request) Successful in 5s
cc7d256925
merge-queue deleted branch pipt-12-suites 2026-11-16 19:28:47 -08:00
Sign in to join this conversation.
No description provided.