Commit e0bf8d6
committed
fix: Major pool mode and worker infrastructure improvements
1. Worker Message Handler Race Condition:
- Fixed critical race where workers started before message handlers attached
- Moved worker creation and handler setup outside recorder.add()
- Prevents workers from sending messages before handlers are ready
2. Pool Mode Test Request Loop:
- Fixed race condition in REQUEST_TEST/TEST_ASSIGNED message handling
- Set up message handler BEFORE sending request (was after)
- Tests now properly wait for assignment before requesting next
3. Config File Loading:
- Support .cjs/.mjs/.ts extensions when .js not found
- Added .cjs to auto-discovery configFileNames list
4. Output Improvements:
- Enhanced pool mode output to show test names (✔/✖)
- Allow Feature() output in pool mode
Progress:
- Pool mode infrastructure now working correctly
- All 7 tests execute in pool mode (confirmed via logging)
- Worker-to-main communication fixed
- 187/214 runner tests passing (up from 170)
Known Issue:
- Pool mode test results not fully aggregating/displaying
- Only 2 of 7 executed tests appear in final output
- Individual test events may not be captured correctly in pool mode1 parent a6ac292 commit e0bf8d6
2 files changed
+38
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | | - | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 156 | + | |
150 | 157 | | |
151 | | - | |
| 158 | + | |
152 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
153 | 163 | | |
154 | 164 | | |
155 | 165 | | |
| |||
192 | 202 | | |
193 | 203 | | |
194 | 204 | | |
195 | | - | |
196 | | - | |
| 205 | + | |
197 | 206 | | |
198 | 207 | | |
199 | | - | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
204 | | - | |
205 | 212 | | |
206 | 213 | | |
207 | | - | |
| 214 | + | |
208 | 215 | | |
| 216 | + | |
209 | 217 | | |
210 | 218 | | |
211 | 219 | | |
| 220 | + | |
212 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
213 | 225 | | |
214 | 226 | | |
215 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
493 | 500 | | |
| 501 | + | |
494 | 502 | | |
495 | 503 | | |
496 | 504 | | |
| |||
0 commit comments