Commit 9a8f21d
committed
fix(windows): resolve CI failures with file locking and import resolution
Fixes multiple Windows-specific CI failures related to file system operations
and ESLint configuration.
Changes:
- Add retry logic with exponential backoff for file writes (EPERM/EBUSY errors)
- Add retry logic for temp directory cleanup in test afterEach hooks
- Add .mjs files to ESLint test file patterns for import resolution
- Handle transient Windows file handle locks during test cleanup
Technical details:
- EditableJson.save() retries up to 3 times with 10/20/40ms backoff
- Test cleanup retries up to 5 times with 50ms + 100ms delays
- ESLint now ignores import resolution for test/**/*.mjs files
- Fixes: json.test.ts EPERM errors and esm-imports.test.mjs lint failures1 parent 7a2b6d6 commit 9a8f21d
File tree
3 files changed
+61
-5
lines changed- .config
- src/json
- test/unit
3 files changed
+61
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
44 | 82 | | |
45 | 83 | | |
46 | 84 | | |
| |||
216 | 254 | | |
217 | 255 | | |
218 | 256 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 257 | + | |
| 258 | + | |
222 | 259 | | |
223 | 260 | | |
224 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
766 | 767 | | |
767 | 768 | | |
768 | 769 | | |
769 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
770 | 789 | | |
771 | 790 | | |
772 | 791 | | |
| |||
0 commit comments