[PR #7506] [MERGED] test(adapters): use turbopack for caching #7361

Closed
opened 2026-03-13 13:33:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7506
Author: @himself65
Created: 1/20/2026
Status: Merged
Merged: 1/21/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/20/ci


📝 Commits (4)

📊 Changes

45 files changed (+349 additions, -176 deletions)

View changed files

.github/workflows/adapter-tests.yml (+0 -70)
📝 .github/workflows/ci.yml (+0 -8)
📝 .github/workflows/e2e.yml (+62 -6)
📝 e2e/adapter/package.json (+2 -17)
📝 e2e/adapter/test/adapter-factory/__snapshots__/adapter-factory.test.ts.snap (+0 -0)
📝 e2e/adapter/test/adapter-factory/adapter-factory.test.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/auth-flow.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/basic.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/index.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/joins.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/number-id.ts (+0 -0)
e2e/adapter/test/adapter-factory/package.json (+13 -0)
📝 e2e/adapter/test/adapter-factory/transactions.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/uuid.ts (+0 -0)
📝 e2e/adapter/test/adapter-factory/vitest.config.ts (+0 -0)
📝 e2e/adapter/test/drizzle-adapter/adapter.drizzle.mysql.test.ts (+1 -1)
📝 e2e/adapter/test/drizzle-adapter/adapter.drizzle.pg.test.ts (+1 -1)
📝 e2e/adapter/test/drizzle-adapter/adapter.drizzle.sqlite.test.ts (+1 -1)
e2e/adapter/test/drizzle-adapter/package.json (+14 -0)
e2e/adapter/test/drizzle-adapter/vitest.config.ts (+3 -0)

...and 25 more files

📄 Description

Upstream: https://github.com/better-auth/better-auth/pull/7495


Summary by cubic

Restructures adapter e2e tests into per-adapter packages, centralizes shared suites under adapter-factory, and configures Turbopack caching for tests to speed up CI. Simplifies CI by removing the dedicated adapter-tests workflow and skipping redundant builds.

  • Refactors

    • Split e2e/adapter into scoped test packages: adapter-factory, drizzle, kysely, memory, mongo, prisma.
    • Switched test imports to ../adapter-factory.
    • Trimmed adapter-base dependencies; Prisma generate moved to prisma-adapter.
    • Configured turbo.json test/e2e tasks with inputs/outputs and cache enabled for Turbopack.
    • Updated vitest projects and script filters to include nested e2e/** packages.
    • Updated @better-auth/test-utils adapter export path.
  • CI

    • Removed .github/workflows/adapter-tests.yml.
    • Dropped build steps; e2e.yml now runs cached integration tests and adds an adapter-integration matrix per adapter package with turbo filters.
    • Kept Docker start/stop steps for test databases.

Written for commit 2c0760aabd. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7506 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/20/2026 **Status:** ✅ Merged **Merged:** 1/21/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/20/ci` --- ### 📝 Commits (4) - [`e0e6d13`](https://github.com/better-auth/better-auth/commit/e0e6d1374c63d6e85791688272ead9fc85b8e884) test(adapters): use turbopack for caching - [`ea20575`](https://github.com/better-auth/better-auth/commit/ea20575cf621263e6a36768f5a71cade55cb762e) update - [`82de523`](https://github.com/better-auth/better-auth/commit/82de523ed96fc231f70194dbfa8650e45c2ff279) ci: fix name - [`2c0760a`](https://github.com/better-auth/better-auth/commit/2c0760aabd44f054a90293314498f900f3f99c85) ci: fix name ### 📊 Changes **45 files changed** (+349 additions, -176 deletions) <details> <summary>View changed files</summary> ➖ `.github/workflows/adapter-tests.yml` (+0 -70) 📝 `.github/workflows/ci.yml` (+0 -8) 📝 `.github/workflows/e2e.yml` (+62 -6) 📝 `e2e/adapter/package.json` (+2 -17) 📝 `e2e/adapter/test/adapter-factory/__snapshots__/adapter-factory.test.ts.snap` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/adapter-factory.test.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/auth-flow.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/basic.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/index.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/joins.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/number-id.ts` (+0 -0) ➕ `e2e/adapter/test/adapter-factory/package.json` (+13 -0) 📝 `e2e/adapter/test/adapter-factory/transactions.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/uuid.ts` (+0 -0) 📝 `e2e/adapter/test/adapter-factory/vitest.config.ts` (+0 -0) 📝 `e2e/adapter/test/drizzle-adapter/adapter.drizzle.mysql.test.ts` (+1 -1) 📝 `e2e/adapter/test/drizzle-adapter/adapter.drizzle.pg.test.ts` (+1 -1) 📝 `e2e/adapter/test/drizzle-adapter/adapter.drizzle.sqlite.test.ts` (+1 -1) ➕ `e2e/adapter/test/drizzle-adapter/package.json` (+14 -0) ➕ `e2e/adapter/test/drizzle-adapter/vitest.config.ts` (+3 -0) _...and 25 more files_ </details> ### 📄 Description Upstream: https://github.com/better-auth/better-auth/pull/7495 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Restructures adapter e2e tests into per-adapter packages, centralizes shared suites under adapter-factory, and configures Turbopack caching for tests to speed up CI. Simplifies CI by removing the dedicated adapter-tests workflow and skipping redundant builds. - **Refactors** - Split e2e/adapter into scoped test packages: adapter-factory, drizzle, kysely, memory, mongo, prisma. - Switched test imports to ../adapter-factory. - Trimmed adapter-base dependencies; Prisma generate moved to prisma-adapter. - Configured turbo.json test/e2e tasks with inputs/outputs and cache enabled for Turbopack. - Updated vitest projects and script filters to include nested e2e/** packages. - Updated @better-auth/test-utils adapter export path. - **CI** - Removed .github/workflows/adapter-tests.yml. - Dropped build steps; e2e.yml now runs cached integration tests and adds an adapter-integration matrix per adapter package with turbo filters. - Kept Docker start/stop steps for test databases. <sup>Written for commit 2c0760aabd44f054a90293314498f900f3f99c85. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:33:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7361