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

@@ -40,7 +40,6 @@ const REQUIRED_COMMANDS_IN_ORDER = [
"pnpm lint",
"pnpm run test:foundation",
"pnpm run test:packages",
"pnpm run test:mobile",
"pnpm test",
"pnpm run build:ci",
"pnpm run verify:bundle-size",
@@ -49,33 +48,34 @@ const REQUIRED_COMMANDS_IN_ORDER = [
const SERVICE_JOB_CONTRACTS = {
api: [
"pnpm run verify:openapi-security",
"pnpm --filter @toolctrl/api typecheck",
"pnpm --filter @hivegrid/api typecheck",
"pnpm exec vitest run apps/api/src",
"pnpm --filter @toolctrl/api build",
"pnpm --filter @hivegrid/api build",
],
worker: [
"pnpm --filter @toolctrl/worker typecheck",
"pnpm --filter @toolctrl/worker exec vitest run",
"pnpm --filter @toolctrl/worker build",
"pnpm --filter @toolctrl/worker health",
"pnpm --filter @hivegrid/worker typecheck",
"pnpm --filter @hivegrid/worker exec vitest run",
"pnpm --filter @hivegrid/worker build",
"pnpm --filter @hivegrid/worker health",
],
};
const DATABASE_JOB = "database";
const DOCKER_SMOKE_JOB = "docker-smoke";
const DATABASE_STATUS_COMMAND = "pnpm run verify:db-migrate-status";
const DATABASE_GENERATE_COMMAND = "pnpm run db:generate";
const DATABASE_PARITY_COMMAND = "pnpm run verify:migrations-parity";
const DATABASE_URL_SECRET = "${{ secrets.DATABASE_URL }}";
const DATABASE_URL_DUMMY = "postgresql://toolctrl:toolctrl@localhost:5432/toolctrl?schema=public";
const DATABASE_URL_DUMMY = "postgresql://hivegrid:hivegrid@localhost:5432/hivegrid?schema=public";
const DOCKER_COMPOSE_CONFIG_COMMAND = "docker compose config";
const DOCKER_WEB_ARTIFACT_COMMAND = "docker run --rm --entrypoint /bin/sh toolctrl-web:smoke -lc 'test -f /myapp/apps/web/build/server/index.js && test -d /myapp/apps/web/build/client && test -f /myapp/build/server-runtime/server.js'";
const DOCKER_WEB_RUNTIME_COMMAND = "bash scripts/docker-web-runtime-smoke.sh toolctrl-web:smoke";
const DOCKER_API_RUNTIME_COMMAND = "bash scripts/docker-api-runtime-smoke.sh toolctrl-api:smoke";
const DOCKER_WORKER_RUNTIME_COMMAND = "bash scripts/docker-worker-runtime-smoke.sh toolctrl-worker:smoke";
const DOCKER_WEB_ARTIFACT_COMMAND = "docker run --rm --entrypoint /bin/sh hivegrid-web:smoke -lc 'test -f /myapp/apps/web/build/server/index.js && test -d /myapp/apps/web/build/client && test -f /myapp/build/server-runtime/server.js'";
const DOCKER_WEB_RUNTIME_COMMAND = "bash scripts/docker-web-runtime-smoke.sh hivegrid-web:smoke";
const DOCKER_API_RUNTIME_COMMAND = "bash scripts/docker-api-runtime-smoke.sh hivegrid-api:smoke";
const DOCKER_WORKER_RUNTIME_COMMAND = "bash scripts/docker-worker-runtime-smoke.sh hivegrid-worker:smoke";
const DOCKER_SMOKE_REVISION_ARG_PATTERN = /(?:^|\s)--build-arg(?:=|\s+)APP_REVISION=ci-smoke-revision(?:\s|$)/;
const DOCKER_SMOKE_TARGET_CONTRACTS = {
web: { tag: "toolctrl-web:smoke", scope: "toolctrl-web-smoke" },
api: { tag: "toolctrl-api:smoke", scope: "toolctrl-api-smoke" },
worker: { tag: "toolctrl-worker:smoke", scope: "toolctrl-worker-smoke" },
web: { tag: "hivegrid-web:smoke", scope: "hivegrid-web-smoke" },
api: { tag: "hivegrid-api:smoke", scope: "hivegrid-api-smoke" },
worker: { tag: "hivegrid-worker:smoke", scope: "hivegrid-worker-smoke" },
};
const FORBIDDEN_DATABASE_MUTATION_PATTERN = /\b(?:prisma\s+migrate\s+deploy|migrate:deploy|db:deploy|db:push|prisma\s+db\s+push|seed)\b/i;
const FORBIDDEN_DOCKER_PUBLISH_PATTERN = /\b(?:docker\s+(?:login|push)|docker\s+buildx\s+build[^\n]*--push|docker\s+build[^\n]*--push|publish)\b/i;
@@ -628,6 +628,21 @@ export function verifyGithubCiWorkflow(rootDir = process.cwd()) {
failures.push(`${WORKFLOW_PATH}: database job "${DATABASE_JOB}" missing command "${DATABASE_GENERATE_COMMAND}"`);
}
}
if (getExecutableRunCommandEntries(databaseSection).some((entry) => matchesExecutableCommand(entry.command, DATABASE_PARITY_COMMAND))) {
const softeningReason = getRequiredCommandSofteningReason(databaseSection, DATABASE_PARITY_COMMAND);
if (softeningReason) {
failures.push(`${WORKFLOW_PATH}: database job "${DATABASE_JOB}" command "${DATABASE_PARITY_COMMAND}" must not use ${softeningReason}`);
} else {
passes.push(`${WORKFLOW_PATH}: database job "${DATABASE_JOB}" includes command "${DATABASE_PARITY_COMMAND}"`);
}
} else {
const softeningReason = getRequiredCommandSofteningReason(databaseSection, DATABASE_PARITY_COMMAND);
if (softeningReason) {
failures.push(`${WORKFLOW_PATH}: database job "${DATABASE_JOB}" command "${DATABASE_PARITY_COMMAND}" must not use ${softeningReason}`);
} else {
failures.push(`${WORKFLOW_PATH}: database job "${DATABASE_JOB}" missing command "${DATABASE_PARITY_COMMAND}"`);
}
}
if (hasStepEnvValue(databaseSection, DATABASE_STATUS_COMMAND, "DATABASE_URL", DATABASE_URL_SECRET)) {
passes.push(`${WORKFLOW_PATH}: database job "${DATABASE_JOB}" scopes DATABASE_URL to the migrate-status step`);
} else {