Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@types/three": "^0.180.0",
"@uploadthing/react": "^7.3.0",
"@upstash/ratelimit": "^2.0.5",
"@vercel/analytics": "^1.5.0",
"@vercel/sandbox": "^0.0.21",
"@vercel/sdk": "^1.7.1",
"ai": "^5.0.60",
Expand Down
2 changes: 2 additions & 0 deletions apps/app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { env } from '@/env.mjs';
import { auth } from '@/utils/auth';
import { cn } from '@comp/ui/cn';
import { Analytics as DubAnalytics } from '@dub/analytics/react';
import { Analytics as VercelAnalytics } from '@vercel/analytics/next';
import { GeistMono } from 'geist/font/mono';
import type { Metadata } from 'next';
import localFont from 'next/font/local';
Expand Down Expand Up @@ -112,6 +113,7 @@ export default async function Layout({ children }: { children: React.ReactNode }
</Providers>
</NuqsAdapter>
<Toaster richColors />
<VercelAnalytics />
</body>
</html>
);
Expand Down
5 changes: 1 addition & 4 deletions apps/app/src/jobs/tasks/integration/integration-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ export const sendIntegrationResults = schemaTask({
logger.error(`Failed to create error record: ${createError}`);
}

return {
success: false,
error: error instanceof Error ? error.message : String(error),
};
throw error;
}
},
});
27 changes: 18 additions & 9 deletions apps/app/src/jobs/tasks/integration/run-integration-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,24 @@ export const runIntegrationTests = task({

try {
const batchHandle = await sendIntegrationResults.batchTriggerAndWait(batchItems);


// Check if any child runs failed
const failedRuns = batchHandle.runs.filter((run) => !run.ok);

if (failedRuns.length > 0) {
const errorMessages = failedRuns
.map((run) => {
const errorMsg = run.error instanceof Error ? run.error.message : String(run.error);
return errorMsg;
})
.join('; ');

logger.error(`Integration tests failed for organization ${organizationId}: ${errorMessages}`);
throw new Error(errorMessages);
}

logger.info(`Successfully completed batch integration tests for organization: ${organizationId}`);

return {
success: true,
organizationId,
Expand All @@ -68,13 +83,7 @@ export const runIntegrationTests = task({
};
} catch (error) {
logger.error(`Failed to run integration tests for organization ${organizationId}: ${error}`);

return {
success: false,
error: error instanceof Error ? error.message : String(error),
organizationId,
integrationsCount: integrations.length,
};
throw error;
}
},
});
3 changes: 3 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading