Skip to content

Fix/get applied versions failure boundary - #2864

Merged
Baskarayelu merged 5 commits into
QuickLendX:mainfrom
dunnidev:fix/get-applied-versions-failure-boundary
Oct 1, 2026
Merged

Baskarayelu merged 5 commits into
QuickLendX:mainfrom
dunnidev:fix/get-applied-versions-failure-boundary

Conversation

@dunnidev

Copy link
Copy Markdown
Contributor

Closes #2686

dunnidev and others added 4 commits September 30, 2026 12:28
…ppliedVersions

getAppliedVersions could surface raw driver errors, reject valid zero
versions, silently return duplicates, and hand back unsorted or
non-numeric values, so callers could not distinguish an empty ledger
from an unreadable one. Introduce MigrationStateReadError with a
retryable hint, validate and de-duplicate every row before returning,
and cover the boundaries with a dedicated suite. Also correct the
v006 backfill_progress version to match its file name.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Unknown event types were logged and dropped, the queue overflow counter
was written inside the transaction it was meant to record (so it rolled
back with it), and an unset CSRF header rejected every machine-to-machine
request. Reject unknown events, persist the overflow metric after the
failed transaction, and require the token only for browser-originated
requests.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Several suites ran against a shared on-disk database whose schema and
fixtures they did not own, so they failed with "no such table" or stale
connection errors depending on what ran first. Give each suite its own
temp database, supply the missing statements and columns, and make the
event-processing suite create the directory its database resolves from.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Contract tests had no schema to validate the health payload or the
canonical 404/401 bodies against, and the case extractor missed path
parameters declared on the operation rather than the path item. Add the
missing schemas and read parameters from both levels so generated
examples resolve.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@Baskarayelu

Copy link
Copy Markdown
Contributor

This pull request currently has a merge conflict with main and can't be merged yet.

Could you please resolve the conflict (merge or rebase on the latest main and push the update)? Once it's resolved, we'll merge it right away. Thanks for your contribution!

@drips-wave

drips-wave Bot commented Oct 1, 2026

Copy link
Copy Markdown

@dunnidev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add deterministic failure-boundary coverage for getAppliedVersions in ./backend/src/lib/migrations/runner.ts

2 participants