Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -1,6 +1,7 @@
import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
import { createDbClient } from "./client.server.js";
import { databaseTargetLabel, isDatabaseReachable } from "./database-reachable.js";
import {
OUTBOX_CLAIM_DEFAULT_LIMIT,
OUTBOX_CLAIM_LEASE_MS,
@@ -15,9 +16,17 @@ const DATABASE_URL = process.env.DATABASE_URL?.trim();
const integrationUrl =
process.env.OUTBOX_TEST_DATABASE_URL?.trim() ||
(DATABASE_URL && !DATABASE_URL.includes("example.invalid") ? DATABASE_URL : undefined);
const skipIntegration = !integrationUrl;
const describeIntegration = skipIntegration ? describe.skip : describe;
// A non-sentinel URL is necessary but not sufficient: the CI "Workspace
// package tests" job injects a localhost DATABASE_URL without running a
// Postgres service, so probe the server before connecting and skip (rather
// than fail with P1001) when nothing is reachable.
const databaseReachable = integrationUrl ? await isDatabaseReachable(integrationUrl) : false;
if (integrationUrl && !databaseReachable) {
console.warn(`[outbox-claim] skipped: no database reachable at ${databaseTargetLabel(integrationUrl)}`);
}
const describeIntegration = databaseReachable ? describe : describe.skip;
describeIntegration("claimPendingOutboxEvents (integration)", () => {
const prisma = createDbClient({ connectionString: integrationUrl });