Skip to content

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

Closed

Description

@vybe

Problem

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)
  • trinity-dev: /validate-pr Step 6.5 tiered, +schema fork mechanical, coverage question in 5.3; /merge-train 2.4; DEVELOPMENT_WORKFLOW.md reconciled

Explicit quality trade

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

  1. added
    priority-p1
    type-refactor
    theme-reliability
    status-in-progress
    complexity-high
    on Sep 22, 2026
  2. self-assigned this
    on Sep 22, 2026
  3. added
    status-in-dev
    and removed
    status-in-progress
    on Sep 22, 2026
  4. added a commit that references this issue on Sep 30, 2026
  5. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-highpriority-p1theme-reliabilitytype-refactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions