Skip to content

[Bug]: Remaining release verification failures after audit cleanup and worker test fixes #775

Closed

Description

@jimhoyd

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:

  1. 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.
  2. 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.
  3. 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

  1. jimhoyd commented on Sep 26, 2026

    @jimhoyd
    CollaboratorAuthor

    The teardown-order defect recurred in the new packages/form-records/test/reload.test.ts added by #798. On main 7e27b5f14d83d013f25e4fed7c3385edb5c9fa12, release run https://github.com/jimhoyd-com/urlcode/actions/runs/36271512976 fails that test on Windows Node 22, 24 and 26 while unlinking data/audit.sqlite or audit.sqlite-shm with EBUSY.

    The test registers directory removal before host.close() using separate t.after hooks, which run in registration order. Its explicit app.close() releases extension activations, but the audit database is owned by the composed host and stays open until host.close(). The existing cleanup helper 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions