HYDI-36: Phase 5: Postgres integration tests for db/queries.ts (opt-in)#27
Draft
kasperwelner wants to merge 1 commit intomainfrom
Draft
HYDI-36: Phase 5: Postgres integration tests for db/queries.ts (opt-in)#27kasperwelner wants to merge 1 commit intomainfrom
kasperwelner wants to merge 1 commit intomainfrom
Conversation
Co-Authored-By: Oz <oz-agent@warp.dev>
|
The preview deployment for hyper-dispatch is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-05-07 20:02:47 CET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements HYDI-36
Changes
src/db/queries.integration.test.tsthat executessrc/db/schema.sqland validates SQL-heavy behavior insrc/db/queries.ts:upsertDispatchRuninsert + ON CONFLICT summary preservation viaCOALESCEremoveBlockerarray removal behavior, including last-blocker transition toqueuedfromblocked_cycleupdateRunStatuspartial update behavior and null-vs-undefined semantics (blocked_byclears onnull,pr_urlunchanged onnull)getRunsBlockedByarray containment andgetActiveRunCountscripts/test-db.shand wirednpm run test:db:5433when Docker is availablevitest.config.tsinclude globs to recognize*.integration.test.tsdocs/testing.mdwith a new DB integration test section (gating, invocation, fallback mode, and semantic examples)Validation
npm test(integration tests skipped cleanly by default)npm run test:dbRUN_DB_TESTS=1 TEST_DB_MODE=pglite ... npm run test:coverage -- --testNamePattern integrationsrc/db/queries.tscoverage:100%statementsnpm run typecheckCo-Authored-By: Oz oz-agent@warp.dev
Conversation: https://app.warp.dev/conversation/d456a216-89da-481f-b59c-5b75804085b1
Run: https://oz.warp.dev/runs/019e0401-2335-762a-bee5-7806f7179e4b
This PR was generated with Oz.