Viktor Vaczi
ad5c4f6772
Fix pthread deadlock by using dynamic PTHREAD_POOL_SIZE
...
The KiCad WASM build was freezing during initialization due to a pthread
deadlock. When hardware_concurrency() > PTHREAD_POOL_SIZE, new Web Worker
creation requires the event loop, but the main thread busy-waits blocking it.
Changes:
- Use navigator.hardwareConcurrency for PTHREAD_POOL_SIZE in KiCad build
- Add threadpool test to reproduce and verify the fix
- Add single-target build support to build-wasm-test.sh
- Default docker/build.sh to -j 10 for faster builds
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 11:47:50 +01:00
..
baseline-screenshots
Fix wxGrid test crash and add debug build support
2025-11-29 22:15:56 +01:00
kicad
Add KiCad PCBnew WASM test infrastructure
2025-12-12 15:34:15 +01:00
utils
Implement wxClipboard and add button finder utility for canvas testing
2025-12-03 10:19:50 +01:00
aui.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
auinotebook.spec.ts
Complete remaining wxWidgets feature tests: DataViewVirtual, AuiNotebook, Wizard, GridEdit, Calendar
2025-12-03 17:16:14 +01:00
bitmapbuttons.spec.ts
Add Phase 2 wxWidgets test coverage: grid renderers, print preview, specialized controls
2025-12-03 17:58:47 +01:00
bitmask.spec.ts
Add WASM feature tests: font enum, text decor, bitmap mask, regions
2025-12-04 11:06:33 +01:00
button-finder.spec.ts
Implement wxClipboard and add button finder utility for canvas testing
2025-12-03 10:19:50 +01:00
calendar.spec.ts
Complete remaining wxWidgets feature tests: DataViewVirtual, AuiNotebook, Wizard, GridEdit, Calendar
2025-12-03 17:16:14 +01:00
clipboard.spec.ts
Implement wxClipboard and add button finder utility for canvas testing
2025-12-03 10:19:50 +01:00
collapsible.spec.ts
Add 5 new wxWidgets feature tests: PropertyGrid, Pickers, Collapsible, ListCtrl, InfoBar
2025-12-03 16:57:02 +01:00
dataview.spec.ts
Add wxDataViewCtrl, wxHtmlWindow, and wxStyledTextCtrl test apps
2025-12-03 11:27:00 +01:00
dataviewvirtual.spec.ts
Complete remaining wxWidgets feature tests: DataViewVirtual, AuiNotebook, Wizard, GridEdit, Calendar
2025-12-03 17:16:14 +01:00
dialog.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
dialogs.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
dnd.spec.ts
Add wxDragDrop test app and document coverage gaps
2025-12-03 16:33:27 +01:00
earlysize.spec.ts
Add earlysize test for GetClientSize() before Show()
2025-12-14 16:10:08 +01:00
filedialog.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
fontenum.spec.ts
Add WASM feature tests: font enum, text decor, bitmap mask, regions
2025-12-04 11:06:33 +01:00
grid.spec.ts
Fix wxGrid test crash and add debug build support
2025-11-29 22:15:56 +01:00
gridedit.spec.ts
Complete remaining wxWidgets feature tests: DataViewVirtual, AuiNotebook, Wizard, GridEdit, Calendar
2025-12-03 17:16:14 +01:00
gridrenderers.spec.ts
Add Phase 2 wxWidgets test coverage: grid renderers, print preview, specialized controls
2025-12-03 17:58:47 +01:00
htmlwin.spec.ts
Add wxDataViewCtrl, wxHtmlWindow, and wxStyledTextCtrl test apps
2025-12-03 11:27:00 +01:00
infobar.spec.ts
Add 5 new wxWidgets feature tests: PropertyGrid, Pickers, Collapsible, ListCtrl, InfoBar
2025-12-03 16:57:02 +01:00
layout.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
listctrl.spec.ts
Add 5 new wxWidgets feature tests: PropertyGrid, Pickers, Collapsible, ListCtrl, InfoBar
2025-12-03 16:57:02 +01:00
maximize.spec.ts
Add stamp source hashing and maximize test infrastructure
2025-12-14 13:28:43 +01:00
menu.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
opengl.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
ownerdrawn.spec.ts
Add Phase 3 test coverage: validators, ownerdrawn, popup, graphicsctx, xml, wasmedge
2025-12-03 18:54:40 +01:00
pickers.spec.ts
Add 5 new wxWidgets feature tests: PropertyGrid, Pickers, Collapsible, ListCtrl, InfoBar
2025-12-03 16:57:02 +01:00
popup.spec.ts
Add Phase 3 test coverage: validators, ownerdrawn, popup, graphicsctx, xml, wasmedge
2025-12-03 18:54:40 +01:00
print.spec.ts
Add wxPrinting test app and verify printing infrastructure works
2025-12-03 15:51:44 +01:00
printpreview.spec.ts
Add Phase 2 wxWidgets test coverage: grid renderers, print preview, specialized controls
2025-12-03 17:58:47 +01:00
propgrid.spec.ts
Add 5 new wxWidgets feature tests: PropertyGrid, Pickers, Collapsible, ListCtrl, InfoBar
2025-12-03 16:57:02 +01:00
regions.spec.ts
Add WASM feature tests: font enum, text decor, bitmap mask, regions
2025-12-04 11:06:33 +01:00
specialized.spec.ts
Add Phase 2 wxWidgets test coverage: grid renderers, print preview, specialized controls
2025-12-03 17:58:47 +01:00
stc.spec.ts
Add wxDataViewCtrl, wxHtmlWindow, and wxStyledTextCtrl test apps
2025-12-03 11:27:00 +01:00
textdecor.spec.ts
Add WASM feature tests: font enum, text decor, bitmap mask, regions
2025-12-04 11:06:33 +01:00
threadpool.spec.ts
Fix pthread deadlock by using dynamic PTHREAD_POOL_SIZE
2025-12-15 11:47:50 +01:00
timer.spec.ts
Fix timer tests and add baseline screenshot update script
2025-11-29 21:20:40 +01:00
toolbar.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
tree.spec.ts
Fix tree test console logging during initialization
2025-11-29 22:47:39 +01:00
validators.spec.ts
Add Phase 3 test coverage: validators, ownerdrawn, popup, graphicsctx, xml, wasmedge
2025-12-03 18:54:40 +01:00
wasmedge.spec.ts
Add Phase 3 test coverage: validators, ownerdrawn, popup, graphicsctx, xml, wasmedge
2025-12-03 18:54:40 +01:00
wizard.spec.ts
Complete remaining wxWidgets feature tests: DataViewVirtual, AuiNotebook, Wizard, GridEdit, Calendar
2025-12-03 17:16:14 +01:00
wxwidgets.spec.ts
Refactor test logging into shared utilities
2025-11-29 20:54:54 +01:00
xml.spec.ts
Add Phase 3 test coverage: validators, ownerdrawn, popup, graphicsctx, xml, wasmedge
2025-12-03 18:54:40 +01:00