Skip to content

Split VMM identity tests by concern - #11543

Merged
lpcox merged 2 commits into
mainfrom
copilot/refactor-split-vmm-identity-tests
Nov 13, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/refactor-split-vmm-identity-tests

Conversation

Copilot AI commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The 1,678-line VMM identity suite interleaved classification, account/ACL lifecycle, and lock-race coverage. This refactor separates those concerns while preserving all 47 test declarations unchanged.

  • Focused suites: Separate classification, lifecycle, and locking tests, grouping interleaved lock-owner and stale-lock cases by topic.
  • Shared fixtures: Extract tool paths and the dependency mock factory into vmm-identity.test-utils.ts; keep lifecycle-only fixtures local.
  • Scope: Leave production code and adjacent cleanup suites unchanged.

Copilot AI changed the title [WIP] Refactor vmm-identity tests by splitting concerns Split VMM identity tests by concern Nov 13, 2026
Copilot AI requested a review from lpcox November 13, 2026 15:43
@lpcox
lpcox marked this pull request as ready for review November 13, 2026 15:44
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 15:44

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.

🔵 Needs a closer look

Human verification is needed to ensure the security-sensitive test and stateful mock refactor preserves account-lock lifecycle behavior under the repository’s actual Jest/ts-jest execution.

No open issues 🎉

What changed in this PR

This test-only refactor splits the VMM identity suite into focused classification, lifecycle, and locking suites while preserving all 47 test declarations and leaving production code unchanged.

Changes:

  • Extracts shared tool paths and dependency mocks into a reusable test utility.
  • Separates identity classification, lifecycle, and locking coverage into focused files.
  • Keeps lifecycle-specific fixtures local and groups lock and stale-lock scenarios together.
File Description
src/​cloud-hypervisor/​vmm-identity.test-utils.ts Provides shared VMM tool-path constants and dependency mock factories.
src/​cloud-hypervisor/​vmm-identity-lock.test.ts Contains account-lock, stale-lock, reaper, ownership, and concurrency tests.
src/​cloud-hypervisor/​vmm-identity-lifecycle.test.ts Contains account, ACL, cleanup, and resource lifecycle tests using shared fixtures.
src/​cloud-hypervisor/​vmm-identity-classification.test.ts Contains focused VMM ACL identity classification and validation tests.

Review effort: Lite (dynamic)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox
lpcox merged commit f788a95 into main Nov 13, 2026
47 of 52 checks passed
@lpcox
lpcox deleted the copilot/refactor-split-vmm-identity-tests branch November 13, 2026 16:18
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.

[Refactoring] Split src/cloud-hypervisor/vmm-identity.test.ts by concern

3 participants