Skip to content

fix(db): renumber colliding migration 0156 to 0157 - #6484

Merged
JSONbored merged 1 commit into
mainfrom
fix/migration-0156-number-collision
Jul 16, 2026
Merged

fix(db): renumber colliding migration 0156 to 0157#6484
JSONbored merged 1 commit into
mainfrom
fix/migration-0156-number-collision

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Test plan

  • npm run db:migrations:check — passes (contiguous 0001..0157, next free 0158)
  • npm run db:schema-drift:check — passes (no drift from the rename)

PR #6454 (draft-pr-close-policy) and PR #6467
(screenshot-table-gate-head-sha-correlation) both grabbed migration
number 0156, merging 23 minutes apart without seeing each other's
number. db:migrations:check now fails on main for every PR. Renumber
the later-merged one (#6467) to the next free number.
@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 16, 2026
@JSONbored
JSONbored merged commit 73ab63b into main Jul 16, 2026
12 of 14 checks passed
@JSONbored
JSONbored deleted the fix/migration-0156-number-collision branch July 16, 2026 10:54
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 16, 2026
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
17533 4 17529 13
View the top 2 failed test(s) by shortest run time
test/integration/api.test.ts > api routes > serves installation repair diagnostics and refreshes installation health
Stack Traces | 0.884s run time
AssertionError: expected { …(11) } to match object { installation: { …(3) }, …(3) }
(8 matching properties omitted from actual)

- Expected
+ Received

@@ -17,8 +17,8 @@
      "path": ".../777/repair/refresh",
    },
    "requiredPermissions": {
      "issues": "write",
      "metadata": "read",
-     "pull_requests": "read",
+     "pull_requests": "write",
    },
  }

 ❯ test/integration/api.test.ts:2195:24
test/unit/backfill.test.ts > GitHub backfill > marks comment, label, and check repair impacts disabled by repo settings
Stack Traces | 0.898s run time
AssertionError: expected { metadata: 'read', …(3) } to not have property "contents"

- Expected:
undefined

+ Received:
"write"

 ❯ test/unit/backfill.test.ts:1203:44
View the full list of 2 ❄️ flaky test(s)
test/unit/backfill.test.ts > GitHub backfill > repair diagnostics require contents:write for merge autonomy (#audit-install-health display)

Flake rate in main: 23.33% (Passed 23 times, Failed 7 times)

Stack Traces | 0.635s run time
AssertionError: expected 'write' to be 'read' // Object.is equality

Expected: "read"
Received: "write"

 ❯ test/unit/backfill.test.ts:1267:54
test/unit/queue-5.test.ts > queue processors > REGRESSION (#slop-commit-messages): the live slop gate fetches the PR's own commit messages, so low_quality_commit_message can actually fire

Flake rate in main: 16.67% (Passed 5 times, Failed 1 times)

Stack Traces | 0.633s run time
AssertionError: expected null to be 15 // Object.is equality

- Expected:
15

+ Received:
null

 ❯ test/unit/queue-5.test.ts:2708:31

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

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