You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: tiered validation — PR gate shrinks to Tier 1, dev carries Tier 2 per push and Tier 3 nightly; merge train gates on Tier 1 and treats Alembic forks as mechanical #2945
At 12-18 merges a day the per-PR CI cost is the merge-path bottleneck, and most of it is spent re-testing things that are identical across PRs:
backend-unit-test on a PR runs 6 pytest jobs (3 seeds × base and head). The 3 base runs re-test the same dev SHA for every PR. Median 21 min, max 42 min.
journey-smoke and frontend-e2e run on PRs but never on dev after the merge, so dev is tested less than the PR that produced it.
The merge train waits for the full per-member set before assembling, then assembles a train PR for every batch, then pays a CodeQL re-run per member for the learnings.md re-conflict.
The train treats two Alembic revisions off one parent as terminal (eject), although for unmerged revisions on disjoint tables it is a mechanical re-parent.
Design (approved 2026-09-22)
Tier
When
What
1
PR, blocking
CodeQL, secret-scan, schema-parity, verify-non-root, lint, frontend-build, ONE head seed diffed against the cached dev baseline
2
every push burst to dev
pytest absolute, journey-smoke, frontend-e2e, image-smoke, pg-migrations, deploy; a dev-ci commit status + dev-green tag mark the last green SHA
3
nightly on dev
3-seed matrix, live integration suite, no-cache deploy
Scope
backend-unit-test.yml: PR runs one head seed; base side comes from the junit-push artifact of the base SHA's push run, inline fallback when absent
journey-smoke.yml, frontend-e2e.yml: also run on push to dev
dev-ci-status.yml (new): aggregates Tier 2 per pushed SHA, writes the dev-ci commit status, moves the dev-green tag, upserts a red-dev issue
dev-nightly.yml (new): 3-seed unit + live integration on dev
scripts/ci/dev-last-green.sh: resolve the last green dev SHA for the train and pick-task
docs/memory/learnings/ fragments per PR (removes the train's per-member re-conflict)
A second-seed, integration or e2e failure now reaches dev and is caught by Tier 2 within ~25 min or Tier 3 overnight. Lane C keeps the full PR gate. A red dev blocks the next train until reverted or fixed.
Activity
ci(dev-nightly): one Slack message per scheduled night, green or red (#…
ci: record the new workflows' default-branch-registered triggers and …
ci: tiered validation — Tier 1 on the PR, Tier 2 on dev per push, Tie…
chore: bump .claude to trinity-dev main (merge-train 2.5, validate-pr…
docs(learnings): move the two ent#549 lessons into fragments (#2945 c…
fix(files): a shared file is for the person the turn was for (Ability…
ci(deploy-prod): address #2986 review — fail-closed health/backup, de…
ci(dependabot): auto-merge gate no longer counts by-design skipped py…