History

Make the test suite parallel-safe and speed up CI (#1273)

* Make self-host tests CI-safe * Await cloud db teardown * Give local e2e boots more headroom * Keep main CI runs alive * Cache CI dependencies and image layers * Wait for recorded introspection requests in graphql plugin tests * Size self-host test budget for loaded runners * Probe test http servers for readiness before use * Die on recorder wait timeout instead of typing a string error * Type the recorder wait timeout as a tagged error * Update e2e locators for the integration copy renames * Keep stale data rendered while a refresh is waiting * Guard create-org input against hydration clobbering * Match the new sign-in heading in the selfhost callback test

Rhys Sullivan committed 4 months ago

Commit 8652c991 parent 9c7e4a627 files · +252 −102Browse files

Showing the changes to apps/cloud/src (1 of 27 files). Show all

Unified · Split

apps/cloud/src/db/db.ts+6−10
@@ -73,16 +73,12 @@ const makePostgresResource = (): DbResource => { · 72 unmodified lines
73 sql,73 sql,
74 db: drizzle(sql, { schema: combinedSchema }) as DrizzleDb,74 db: drizzle(sql, { schema: combinedSchema }) as DrizzleDb,
75 close: () =>75 close: () =>
76 Effect.sync(() => {76 Effect.ignore(
77 void Effect.runFork(77 Effect.tryPromise({
78 Effect.ignore(78 try: () => sql.end({ timeout: 0 }),
79 Effect.tryPromise({79 catch: (cause) => cause,
80 try: () => sql.end({ timeout: 0 }),80 }),
81 catch: (cause) => cause,81 ),
82 }),
83 ),
84 );
85 }),
86 };82 };
87};83};
88 84