Skip to content

fix(infra): update stale D1 database name in migration/deploy scripts - #5579

Merged
JSONbored merged 1 commit into
mainfrom
loopover/d1-migrate-script-hotfix
Jul 13, 2026
Merged

fix(infra): update stale D1 database name in migration/deploy scripts#5579
JSONbored merged 1 commit into
mainfrom
loopover/d1-migrate-script-hotfix

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Test plan

  • Confirmed the live Cloudflare-side D1 database (database_id: b2c79dd6-7771-4b1f-aa6b-085d5f3e9528) resolves correctly via wrangler d1 info loopover (matches wrangler.jsonc's current database_name).
  • Full local gate (npm run test:ci + npm audit --audit-level=moderate) green.

The D1/Worker rename (#5569) updated wrangler.jsonc's
d1_databases[].database_name from gittensory to loopover, but left 3
package.json scripts (deploy:api, db:migrate:local, db:migrate:remote)
passing the old name as a positional arg to `wrangler d1 migrations
apply`. Wrangler resolves that arg against wrangler.jsonc's own
database_name/binding fields, not the database's live Cloudflare-side
name, so every deploy since #5569 merged has failed with:

  Couldn't find a D1 DB with the name or binding 'gittensory'
  in your wrangler.jsonc file.

blocking every push to main from deploying the API worker.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jul 13, 2026
@JSONbored
JSONbored merged commit 7bc7adf into main Jul 13, 2026
13 checks passed
@JSONbored
JSONbored deleted the loopover/d1-migrate-script-hotfix branch July 13, 2026 07:02
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 13, 2026
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.99%. Comparing base (23c97a9) to head (2838077).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5579   +/-   ##
=======================================
  Coverage   94.99%   94.99%           
=======================================
  Files         573      573           
  Lines       45490    45490           
  Branches    14680    14680           
=======================================
  Hits        43212    43212           
  Misses       1527     1527           
  Partials      751      751           
Flag Coverage Δ
shard-1 44.03% <ø> (ø)
shard-2 35.66% <ø> (ø)
shard-3 32.16% <ø> (ø)
shard-4 32.86% <ø> (ø)
shard-5 31.86% <ø> (ø)
shard-6 44.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant