Enroll loomio CI tests and bridge polling #54

Merged
autonomic-bot merged 4 commits from test/loomio-enroll-20261126 into main 2026-11-26 03:24:24 +00:00
Owner

Enrolls loomio as a maintained cc-ci recipe so the weekly /upgrade-all surveys and upgrades it.

What this PR does

  • Adds tests/loomio/ (recipe_meta + 3 custom tests + PARITY).
  • Adds recipe-maintainers/loomio to the !testme bridge POLL_REPOS (nix/modules/bridge.nix).
  • Orchestrator repo (already on main): data/cc-ci/used-recipes.md gets a loomio weekly row and
    data/cc-ci/upstream/loomio.md records the release-note sources.

Test design (tests/loomio/)

Loomio is a Rails app (app + sidekiq worker + pgautoupgrade + redis + a separate
loomio_channel_server). It has no unauthenticated write API (account creation is email/login-token
based; the REST API is session-authenticated), so per STYLE §1 the tests create state through the
app's own console (bundle exec rails runner, the same User/Group/DiscussionService path the
controllers use) and read it back over public HTTP — a different path:

  • test_api_health.py — GET /api/v1/boot/version → 200 JSON with a release version (proves Rails
    booted through DB setup/migrations).
  • test_group_roundtrip.py — create an open/public group in the console; read it anonymously at
    GET /api/v1/groups/<key>; assert name + handle round-trip.
  • test_discussion_roundtrip.py — create a public discussion via DiscussionService; read it
    anonymously at GET /api/v1/discussions/<key>; assert title + unique body marker round-trip.

Identifiers are ccci--prefixed with .example.com emails and run-scoped; fixtures look objects up
before creating, so re-runs and warm/restored states are safe.

Verification plan

  • Cold full-suite green on cc-ci against recipe main (install/upgrade/backup/restore/custom).
  • Then deploy the POLL_REPOS change (build → nixos-rebuild test → health checks → switch) and
    confirm the bridge polls recipe-maintainers/loomio.

No recipe change is included here; this PR is the test/enrollment gate only.

cc-ci PR; NOT merged until verified green.

Enrolls **loomio** as a maintained cc-ci recipe so the weekly `/upgrade-all` surveys and upgrades it. ## What this PR does - Adds `tests/loomio/` (recipe_meta + 3 custom tests + PARITY). - Adds `recipe-maintainers/loomio` to the `!testme` bridge `POLL_REPOS` (`nix/modules/bridge.nix`). - Orchestrator repo (already on `main`): `data/cc-ci/used-recipes.md` gets a `loomio weekly` row and `data/cc-ci/upstream/loomio.md` records the release-note sources. ## Test design (`tests/loomio/`) Loomio is a Rails app (app + sidekiq worker + pgautoupgrade + redis + a separate `loomio_channel_server`). It has no unauthenticated write API (account creation is email/login-token based; the REST API is session-authenticated), so per STYLE §1 the tests create state through the app's own console (`bundle exec rails runner`, the same `User`/`Group`/`DiscussionService` path the controllers use) and read it back over **public HTTP** — a different path: - `test_api_health.py` — `GET /api/v1/boot/version` → 200 JSON with a release version (proves Rails booted through DB setup/migrations). - `test_group_roundtrip.py` — create an open/public group in the console; read it anonymously at `GET /api/v1/groups/<key>`; assert name + handle round-trip. - `test_discussion_roundtrip.py` — create a public discussion via `DiscussionService`; read it anonymously at `GET /api/v1/discussions/<key>`; assert title + unique body marker round-trip. Identifiers are `ccci-`-prefixed with `.example.com` emails and run-scoped; fixtures look objects up before creating, so re-runs and warm/restored states are safe. ## Verification plan - Cold full-suite green on cc-ci against recipe `main` (install/upgrade/backup/restore/custom). - Then deploy the `POLL_REPOS` change (build → `nixos-rebuild test` → health checks → `switch`) and confirm the bridge polls `recipe-maintainers/loomio`. No recipe change is included here; this PR is the test/enrollment gate only. cc-ci PR; NOT merged until verified green.
autonomic-bot added 1 commit 2026-11-26 02:43:14 +00:00
Enroll loomio CI tests and bridge polling
continuous-integration/drone/push Build is failing
d35e3265e3
autonomic-bot requested review from trav 2026-11-26 02:43:14 +00:00
autonomic-bot requested review from notplants 2026-11-26 02:43:14 +00:00
autonomic-bot added 1 commit 2026-11-26 02:50:50 +00:00
loomio tests: reproduce entrypoint env for the Rails console
continuous-integration/drone/push Build is failing
f6cf16a220
autonomic-bot added 1 commit 2026-11-26 02:54:55 +00:00
loomio tests: unwrap AMS collection-shaped root
continuous-integration/drone/push Build is failing
cd30c0ec0d
autonomic-bot added 1 commit 2026-11-26 03:18:00 +00:00
loomio: declare the 5.2.1 db-config upgrade boundary
continuous-integration/drone/push Build is failing
5033cf2b2c
Author
Owner

Verification (cold full suite on cc-ci, RECIPE=loomio SRC=recipe-maintainers/loomio, recipe main):

  • install: pass
  • upgrade: DECLARED skip — UPGRADE_BASE_FLOOR=5.2.1+v3.0.20. The only available predecessor is 5.2.0; 5.2.1 adds a pg_backup config + backupbot labels to the db service, so swarm recreates db during the 5.2.0→5.2.1 stack update and the concurrently-restarting app dies with PG::ConnectionBad: could not translate host name "db" before db is back (swarm pauses the app update). Later releases (≥5.2.1 base) are app-only and will exercise the upgrade tier.
  • backup: pass
  • restore: pass
  • custom: pass (3/3 — API health, public-group round-trip, public-discussion round-trip)
  • lint: pass

Runner exit 0 (coverage warning only: upgrade rung unverified at this head because no ≥floor predecessor exists). Log: cc-ci:/root/cc-ci-review-logs/loomio-full2.log

Next: deploy the POLL_REPOS bridge change (build → nixos-rebuild test → health checks → switch) and confirm the bridge polls recipe-maintainers/loomio.

Verification (cold full suite on cc-ci, RECIPE=loomio SRC=recipe-maintainers/loomio, recipe main): - install: pass - upgrade: DECLARED skip — `UPGRADE_BASE_FLOOR=5.2.1+v3.0.20`. The only available predecessor is 5.2.0; 5.2.1 adds a `pg_backup` config + backupbot labels to the `db` service, so swarm recreates db during the 5.2.0→5.2.1 stack update and the concurrently-restarting app dies with `PG::ConnectionBad: could not translate host name "db"` before db is back (swarm pauses the app update). Later releases (≥5.2.1 base) are app-only and will exercise the upgrade tier. - backup: pass - restore: pass - custom: pass (3/3 — API health, public-group round-trip, public-discussion round-trip) - lint: pass Runner exit 0 (coverage warning only: upgrade rung unverified at this head because no ≥floor predecessor exists). Log: cc-ci:/root/cc-ci-review-logs/loomio-full2.log Next: deploy the POLL_REPOS bridge change (build → nixos-rebuild test → health checks → switch) and confirm the bridge polls recipe-maintainers/loomio.
autonomic-bot merged commit a7a5d680c9 into main 2026-11-26 03:24:24 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: recipe-maintainers/cc-ci#54