WIP: Fix D1 verification for automerge and stack sync #1313

Draft
gmackie wants to merge 1 commit from fix/duo-d1-verification into main
Owner

Fixes the two suites that failed the D1 job in main run 8687. The preceding main run 8674 showed the same failures.

  • Project the existing PostgreSQL repositories.autoMergeGreen boolean and its default into the SQLite model and its 0153 migration fixture. Miniflare executes the real eligibility and opt-out queries. The checked-in migrations also reconstruct that model in an empty SQLite database.
  • Delete changeset events before their parent rows in the stack-sync fixture. Closing a changeset records an event with an enforced foreign key.

The local change passed 34 tests across the green-sweep and stack-sync suites, SQLite drift checks, and the Miniflare baseline. Production and staging use PostgreSQL.

The full D1 job passed all 584 API and 204 web tests selected by the existing D1 configuration. The separate known-failures report retained its non-blocking status. D1 job on the review revision · Full workflow · Required pull-request CI

Fixes the two suites that failed the D1 job in [main run 8687](https://git.forgegraf.com/gmackie/ForgeGraph/actions/runs/8687/jobs/8). The preceding main run 8674 showed the same failures. - Project the existing PostgreSQL `repositories.autoMergeGreen` boolean and its default into the SQLite model and its 0153 migration fixture. Miniflare executes the real eligibility and opt-out queries. The checked-in migrations also reconstruct that model in an empty SQLite database. - Delete changeset events before their parent rows in the stack-sync fixture. Closing a changeset records an event with an enforced foreign key. The local change passed 34 tests across the green-sweep and stack-sync suites, SQLite drift checks, and the Miniflare baseline. Production and staging use PostgreSQL. The full D1 job passed all 584 API and 204 web tests selected by the existing D1 configuration. The separate known-failures report retained its non-blocking status. [D1 job on the review revision](https://git.forgegraf.com/gmackie/ForgeGraph/actions/runs/8714/jobs/8) · [Full workflow](https://git.forgegraf.com/gmackie/ForgeGraph/actions/runs/8714) · [Required pull-request CI](https://git.forgegraf.com/gmackie/ForgeGraph/actions/runs/8712)
test(db): restore D1 coverage for automerge and stack sync
Some checks failed
Preview / cleanup (pull_request) Has been skipped
CI / superseded (pull_request) Successful in 28s
CI / gitleaks (pull_request) Successful in 34s
Preview / deploy (pull_request) Has been skipped
CI / storybook (pull_request) Has been skipped
CI / checks (pull_request) Successful in 2m14s
CI / database-d1 (pull_request) Has been skipped
CI / go (pull_request) Has been skipped
Preview / e2e (pull_request) Has been skipped
Preview / release (pull_request) Has been skipped
CI / unit-web (pull_request) Failing after 2m11s
CI / ci (pull_request) Has been cancelled
CI / web-build (pull_request) Has been cancelled
CI / database (pull_request) Has been cancelled
CI / unit-api (pull_request) Has been cancelled
6d4a28aeeb
gmackie force-pushed fix/duo-d1-verification from 6d4a28aeeb
Some checks failed
Preview / cleanup (pull_request) Has been skipped
CI / superseded (pull_request) Successful in 28s
CI / gitleaks (pull_request) Successful in 34s
Preview / deploy (pull_request) Has been skipped
CI / storybook (pull_request) Has been skipped
CI / checks (pull_request) Successful in 2m14s
CI / database-d1 (pull_request) Has been skipped
CI / go (pull_request) Has been skipped
Preview / e2e (pull_request) Has been skipped
Preview / release (pull_request) Has been skipped
CI / unit-web (pull_request) Failing after 2m11s
CI / ci (pull_request) Has been cancelled
CI / web-build (pull_request) Has been cancelled
CI / database (pull_request) Has been cancelled
CI / unit-api (pull_request) Has been cancelled
to e5e27351b4
All checks were successful
Preview / cleanup (pull_request) Has been skipped
CI / superseded (pull_request) Successful in 1m13s
CI / gitleaks (pull_request) Successful in 3m6s
Preview / deploy (pull_request) Has been skipped
CI / storybook (pull_request) Has been skipped
CI / database-d1 (pull_request) Has been skipped
CI / go (pull_request) Has been skipped
CI / checks (pull_request) Successful in 3m36s
CI / unit-api (pull_request) Successful in 5m42s
CI / web-build (pull_request) Successful in 6m24s
CI / database (pull_request) Successful in 5m8s
Preview / e2e (pull_request) Has been skipped
Preview / release (pull_request) Has been skipped
CI / unit-web (pull_request) Successful in 6m1s
CI / ci (pull_request) Successful in 4m5s
forgegraph/ci CI passed
2026-11-27 22:07:35 +00:00
Compare
All checks were successful
Preview / cleanup (pull_request) Has been skipped
CI / superseded (pull_request) Successful in 1m13s
CI / gitleaks (pull_request) Successful in 3m6s
Required
Details
Preview / deploy (pull_request) Has been skipped
CI / storybook (pull_request) Has been skipped
CI / database-d1 (pull_request) Has been skipped
CI / go (pull_request) Has been skipped
CI / checks (pull_request) Successful in 3m36s
CI / unit-api (pull_request) Successful in 5m42s
CI / web-build (pull_request) Successful in 6m24s
CI / database (pull_request) Successful in 5m8s
Preview / e2e (pull_request) Has been skipped
Preview / release (pull_request) Has been skipped
CI / unit-web (pull_request) Successful in 6m1s
CI / ci (pull_request) Successful in 4m5s
Required
Details
forgegraph/ci CI passed
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/duo-d1-verification:fix/duo-d1-verification
git switch fix/duo-d1-verification
Sign in to join this conversation.
No description provided.