Investigate integration test failures when temporary space schemas disappear
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- postgresql, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 43
- Fork
- 3
- Merge trung bình
- 6 giờ 30 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
simstudioai/sim#10710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug:new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
callstackincubator/simlock#2088 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 74/100
juspay/odu#193 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày