Repository navigation
Description
Runtime revision and environment
Main f0349ed; release verification https://github.com/jimhoyd-com/urlcode/actions/runs/36209095331 . Observed completed jobs on Node 22, Ubuntu and Windows. Overall run was still in progress when inspected.
Minimal reproduction
Run the exact-commit CI matrix. The previous audit package cleanup and worker-lifecycle fixes are passing: Windows audit on Node 22/24/26 and core shard 1 on Node 22 across all three OSes succeeded. Remaining failures need separate fixes:
- Windows store and form-records audit integration tests register directory removal before host/database shutdown. packages/store/test/audit.test.ts tempRoot() registers rm first; packages/form-records/test/audit.test.ts does likewise. Extend ordered teardown to these fixtures and audit other consumers, closing runtime/attachments/host/database before removing files.
- Core shard 2 on Ubuntu and Windows fails test/mcp-next-tools.test.ts:49, listAgentCatalog(), because readAddonManifest cannot find its manifest. The job already ran build, and scripts/build.ts writes dist/addons.json. Cause remains unverified: inspect the actual candidate paths, URLCODE_ADDONS override and any concurrent build mutation before choosing a fix.
- Windows auth-core.test.ts reaches its 300000 ms file deadline. Subtests continue passing immediately before timeout (last observed: method removal preserves an independent primary and passkey factor combination). This is evidence of total suite duration, not proof of a deadlock. Profile and split the large suite into independently bounded files; investigate any remaining stalled individual test.
Relevant output
Store job https://github.com/jimhoyd-com/urlcode/actions/runs/36209095331/job/108313861359 : hookFailed, EBUSY unlink audit.sqlite / audit.sqlite-shm / audit.sqlite-wal, then file timeout at 120000 ms.
Form-records job https://github.com/jimhoyd-com/urlcode/actions/runs/36209095331/job/108313861414 : first audit integration test hookFailed, EBUSY unlink data/audit.sqlite, then 120000 ms timeout.
Core job https://github.com/jimhoyd-com/urlcode/actions/runs/36209095331/job/108313857799 : 'This core has no add-on manifest (dist/addons.json).' Same failure on Windows job 108313857837.
Auth job https://github.com/jimhoyd-com/urlcode/actions/runs/36209095331/job/108313861301 : auth-core.test.ts testTimeoutFailure after 300016.9495 ms. Last passing subtest logged approximately two seconds before cancellation.
Diagnosis only; no fix or Windows reproduction beyond these CI logs is claimed.
Activity
jimhoyd commentedon Sep 26, 2026
The teardown-order defect recurred in the new
packages/form-records/test/reload.test.tsadded by #798. On main7e27b5f14d83d013f25e4fed7c3385edb5c9fa12, release run https://github.com/jimhoyd-com/urlcode/actions/runs/36271512976 fails that test on Windows Node 22, 24 and 26 while unlinkingdata/audit.sqliteoraudit.sqlite-shmwithEBUSY.The test registers directory removal before
host.close()using separatet.afterhooks, which run in registration order. Its explicitapp.close()releases extension activations, but the audit database is owned by the composed host and stays open untilhost.close(). The existingcleanuphelper added for this issue already provides reverse-order cleanup and continues unwinding after a closer fails. The fix applies that helper to the new reload fixture, preserving all reload/data assertions. Local validation is in progress; Windows confirmation requires CI.