Skip to content

test: isolate push/pull unit tests from shared .sync-lock - #438

Merged
jeff-r2026 merged 1 commit into
mainfrom
hotfix/push-tests-sync-lock
Sep 8, 2026
Merged

test: isolate push/pull unit tests from shared .sync-lock#438
jeff-r2026 merged 1 commit into
mainfrom
hotfix/push-tests-sync-lock

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • push() / pull() take a real ~/.teamai/.sync-lock. Parallel Vitest workers race on that file, so unit tests fail flakily (Coding CI #535: 27 failures in push-role / push-skill-flag).
  • Mock acquireLock / releaseLock in the user-scope tests that call push() / pull() directly. Product lock behavior is unchanged.
  • GitHub CI can miss this because the overlap is scheduling-dependent; serial runs pass, overlapping files fail.

Test plan

  • npx vitest run src/__tests__/push-role.test.ts src/__tests__/push-skill-flag.test.ts (parallel, previously failed)
  • npx vitest run --coverage (197 files / 2728 tests)
  • GitHub Actions CI on this PR
  • After merge: re-sync GitHub main to TGit and re-run Coding CI on the sync MR

Made with Cursor

Parallel vitest workers race on ~/.teamai/.sync-lock and fail flakily in CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jeff-r2026
jeff-r2026 merged commit 1d4da26 into main Sep 8, 2026
7 checks passed
@jeff-r2026
jeff-r2026 deleted the hotfix/push-tests-sync-lock branch September 8, 2026 09:15
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.

1 participant