test: stabilize clock-dependent auth and usage fixtures - #3950
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe changes update two tests. The DST test isolates the Santiago timezone in a child process. The authentication test reuses the credential written to ChangesDST test isolation
Authentication credential consistency
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This test-only change prevents timezone leakage and JWT timing mismatches, improving test stability without changing product behavior. No current merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
3/4 boxes ticked. This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
리뷰 · 우선순위 48 / 80지금 이 PR(#3950)이 고치는 문제는 한 줄로 말하면 “산티아고 서머타임 테스트가 공유 프로세스의 왜 지금 다만 아직 draft이고 라인 / 심볼 문제: 라인 156–181 (HEAD 기준, PR에서는 자식 분기로 교체) - 부모에서 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
The current head Following the earlier recommendation to land this prerequisite independently, could a maintainer confirm the screenshot waiver? The diff changes only |
Preserve the stored JWT as the comparison oracle across clock boundaries. Carries only the JWT slice of #3950. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
|
Both independently delivered fixes are now on dev: JWT fixture via #3962 (eb4188a) and timezone isolation via #3967 (c46c22f). Original author luvs01 is preserved in both landed commits. The timezone carry adds explicit child identity/cwd, completion proof and aligned timeout boundaries; exact final candidate passed ten scenarios each on hosted Linux, Windows and macOS (34170111719). Standard timezone PR CI34170093095 completed on attempt2 (19success/2skip); attempt1 macOS root client-test timeout is retained as an unresolved CI reliability residual, not claimed fixed. Both actual landing trees, files and dev ancestry were checked before closing this mixed source PR as carried. |
Summary
Two clock-dependent fixtures can fail without a product regression.
The Santiago DST case in
usage-custom-range.test.tsxchangesprocess.env.TZinside the shared test process. On Windows with Bun 1.4.0, restoring an initially absent variable can change the effective timezone from the one used to calculate the module's date-bound expectations. Four later URL assertions then differ by nine hours, even when this file runs alone.Run the unchanged Santiago UI assertions in a child Bun process started with
TZ=America/Santiago. The parent retains the presence and value ofTZand its local Date epoch. The child is limited to this exact test name, has a 12-second process deadline, and reports timeout, signal and nonzero-exit failures with captured diagnostics. The admission-substitution test also generated its expected JWT a second time after storing the original. Crossing a wall-clock second changes its expiry claim and therefore its bytes. Capture one token for both storage and comparison.No product code or date interpretation changes.
Verification
Current standalone head
9b9e4d28bebf58dcb07c161914b3b9e324c55713.dev514350e6f79ed4539378388bc39d3fc79ff2c70cchanged only devlog files; test and build inputs remained identical.This changes two test files and has no visible UI change to capture. Please apply the documented maintainer screenshot waiver for this test-only change if the path-based gate requests an image.
Checklist
Review readiness checklist