Skip to content

fix(broker): migrate legacy lock files#83

Merged
zikolach merged 1 commit into
mainfrom
fix/migrate-legacy-broker-lock
Jul 12, 2026
Merged

fix(broker): migrate legacy lock files#83
zikolach merged 1 commit into
mainfrom
fix/migrate-legacy-broker-lock

Conversation

@zikolach

Copy link
Copy Markdown
Owner

Summary

  • remove regular lock files left by older scoped broker supervision
  • preserve current directory locks for proper-lockfile coordination
  • cover legacy migration and lock release with regression tests

Validation

  • npm run typecheck
  • npm test

Copilot AI review requested due to automatic review settings July 12, 2026 10:27
@zikolach zikolach merged commit 9d7f987 into main Jul 12, 2026
3 checks passed
@zikolach zikolach deleted the fix/migrate-legacy-broker-lock branch July 12, 2026 10:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the scoped broker supervisor to proactively migrate legacy “regular file” locks to the current proper-lockfile directory-lock format, and adjusts/regresses tests to ensure the lock directory is created while held and fully released/removed afterward.

Changes:

  • Add a legacy lock migration step that unlinks a stale regular file at paths.lockPath before acquiring the proper-lockfile directory lock.
  • Update the scoped-concurrency test to assert against the current lock path (directory lock) rather than the previous default “.lock.lock” behavior.
  • Add a regression test ensuring a legacy regular lock file at paths.lockPath is replaced by a directory lock and removed after release.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
extensions/relay/broker/supervisor.ts Adds legacy lock-file removal to support migration to proper-lockfile directory locks for scoped broker supervision.
tests/relay/broker-supervisor.test.ts Updates lock assertions and adds a regression test for legacy lock-file migration and lock release.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants