Investigate integration test failures when temporary space schemas disappear
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- postgresql, typescript
調査の方向性
Start with packages/server/device-flow.integration.test.ts and the integration test command configured to run files with --parallel=2; compare the failures against the linked CI logs. Reproduce the missing-schema error and identify the failing query or add an equivalent regression test. Done means the race is fixed or tests are isolated without hiding failures, repeated integration runs pass, and the production startup risk is assessed.
索引モデルが issue の本文から書いたものです。
説明
Problem
The integration CI job fails intermittently while initializing Better Auth in the device authorization tests. PostgreSQL reports that a temporary me_<slug> schema does not exist. This blocks CI even for unrelated changes.
Examples:
- main CI run:
device-code requests are rate limitedfailed with a missing space schema. - changelog PR CI run: the trailing-slash verification URL test and the rate-limit test failed with the same class of error.
Investigation so far
- Integration test files run with
--parallel=2against one PostgreSQL database. They create and drop separate temporary auth, core, and space schemas. - The affected tests create new Better Auth instances in
packages/server/device-flow.integration.test.ts. Better Auth 1.7 uses Kysely to inspect database tables across schemas during initialization. - Likely race: another test drops a temporary space schema while that database-wide inspection is running. The logs do not identify the exact failing query, so this remains a hypothesis.
- The same CI integration command passed locally with 467 tests. Full local checks also passed. The failure may depend on timing.
- Similar schema creation or deletion during application startup could matter outside tests; determine whether this is a production risk rather than assuming it is test-only.
Done when
- Identify and reproduce the root cause, including the failing query or an equivalent regression test.
- Fix the race or otherwise isolate the integration tests without masking real failures.
- Verify the integration suite repeatedly and confirm whether production startup needs a separate fix.
Running integration files serially may be a temporary workaround, but it would slow CI and would not necessarily address production startup.
- 主要言語
- TypeScript
- スター
- 43
- フォーク
- 3
- 平均マージ
- 6時間 30分
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
simstudioai/sim#10710 ·
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
callstackincubator/simlock#2088 ·
メンテナーはふだん 1 日以内に返信
-
Make the HTTP server's keep-alive and headers timeouts configurable対応中かも @mattgodbolt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
compiler-explorer/compiler-explorer#9902 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信