fix(test): stabilize lifecycle, sleep, queue, and run edge cases#4660
fix(test): stabilize lifecycle, sleep, queue, and run edge cases#4660NathanFlurry wants to merge 1 commit intobreak-up/reenable-gateway-url-coveragefrom
Conversation
PR #4660 Review: fix(test): stabilize lifecycle, sleep, queue, and run edge casesOverviewThis PR stabilizes driver test flakes across lifecycle, sleep, queue, and run suites. Changes fall into four categories: fixture correctness fixes, test timing/sequencing hardening, API usage fixes, and a sandbox-specific workaround in the kitchen-sink example. Issues1. File: Detecting the runtime via 2. Race window in File: There is a TOCTOU race: the connection can transition to 3. Polling loop without a justification comment File: CLAUDE.md requires a comment immediately before every polling loop explaining why direct awaiting is insufficient. The new 4. Unsafe type cast on abort error File:
5. File: The Suggestions
Good changes: SummaryThe stabilization direction is sound. Actionable items before merge:
|
ecf268c to
4c4e267
Compare
dcb82e8 to
1d9c571
Compare
4c4e267 to
e823f78
Compare
1d9c571 to
8e50d57
Compare
8e50d57 to
f2052c1
Compare
e823f78 to
83bf5c0
Compare
f2052c1 to
5aeb5f4
Compare
83bf5c0 to
c25da72
Compare
5aeb5f4 to
4d25019
Compare
4d25019 to
d893b81
Compare
c25da72 to
6cbcfce
Compare
6cbcfce to
c4f0322
Compare
d893b81 to
8ceea0a
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: