GeezerVison is showing github.com — feat(hosted-worker): deploy the fleet queue on D1 — database_id, real-D1 parity gate (#14870) by developing-today-fleet[bot] · Pull Request #14898 · developing-today/code
Conversation
What this is
The #14870 deployment slice of the #14866 Cloudflare-first programme (follow-on to PR #14868, which landed D1QueueStore): the fleet-queue D1 database is provisioned, bound in the config, and proven against the real database.
What landed
wrangler.toml — the [[d1_databases]] stanza gains database_id = "c17186b0-e27f-4b0b-9429-54c1ecf2f4fb". The database pre-existed in the fleet account of record (created 2026-11-25T03:14:57Z, empty, num_tables: 0); this slice adopted it rather than creating a second one. workers_dev = true added (the decision-events pattern). The header's local-only posture is retired for the queue door's versions deployment; stale local-only references in the stanza comments are corrected.
- Schema provisioned explicitly (step 2 of slice(#14866): deploy the fleet queue on D1 — create + bind QUEUE_D1, real-D1 parity, versions deploy #14870): the shared
LIBSQL_QUEUE_SCHEMA DDL — imported from src/libsql-queue-store.ts itself, so byte-identical — applied to the real database: 12 statements; tables checkpoints, events, lanes, leases, repo_task_lane_ledger, tasks, workers; 9 indexes.
test/d1-queue-parity.test.ts — a gated real-D1 suite beside the Hrana wire suite's pattern: with HOSTED_WORKER_D1_DATABASE_ID / CLOUDFLARE_ACCOUNT_ID / CLOUDFLARE_API_TOKEN set, two doors over the production D1DatabaseClient (one via openD1QueueStore, one via buildDeps) enqueue, claim and complete in the suite's own queue (d1-parity-smoke) on the deployed database, and the queue health verb reports backend: "d1". Unset, it skips.
Verification (laptop worktree, named fallback — CI runs on main only)
- Gated run against the real database: 7/7 pass in
test/d1-queue-parity.test.ts, including the real-D1 test (35.9 s of real D1 HTTP statements). Read-back from the database itself: task id 1, queue d1-parity-smoke, status done — left in place as the run's record.
- Full package suite: 255 tests, 252 pass, 0 fail, 3 skipped (pre-existing endpoint-gated skips + the new gate, ungated).
tsc --noEmit clean.
What remains after this PR (recorded on #14870)
- The versions deploy itself (upload + deploy from merged main), the
/health check at the workers.dev address, and the rollback rehearsal at the versions layer (deploy the no-D1-binding version, then re-deploy the D1 version) — executed by the claiming lane directly after this merges, with the record on slice(#14866): deploy the fleet queue on D1 — create + bind QUEUE_D1, real-D1 parity, versions deploy #14870 and the slice record on program: move PM Stack, queues, and all unblocked services to Workers + D1 (Cloudflare-first) #14866.
- Data-migration direction was stated on slice(#14866): deploy the fleet queue on D1 — create + bind QUEUE_D1, real-D1 parity, versions deploy #14870 before any cutover: no live data moves in this deploy (the native broker over Turso is untouched); rows move between backends by export/import over the shared schema, never by translation; unbinding
QUEUE_D1 restores the Hrana backend with no code change.
Refs #14870, #14866.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…-D1 parity gate (#14870)
Records the fleet-queue D1 database_id in wrangler.toml (the database
pre-existed in the account, empty; #14870 provisioned the shared
LIBSQL_QUEUE_SCHEMA on it explicitly — 7 tables, 9 indexes), enables
the workers.dev address, and retires the config's local-only posture
for the queue door's versions deployment.
Adds the gated real-D1 parity suite to test/d1-queue-parity.test.ts
(the Hrana wire suite's pattern): with HOSTED_WORKER_D1_DATABASE_ID /
CLOUDFLARE_ACCOUNT_ID / CLOUDFLARE_API_TOKEN set, two doors over the
production D1DatabaseClient — one via openD1QueueStore, one via
buildDeps — enqueue, claim and complete in the suite's own queue on
the deployed database, and the queue health verb reports backend
"d1". Unset, it skips. Recorded run: 7/7 pass against the real
database; the completed smoke task (id 1, queue d1-parity-smoke)
stays in the database as the run's record.
Refs #14870, #14866.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e63ba8dd-5ee2-441f-8eb5-c50ba0b628a3
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
This was referenced Nov 27, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|