Repository navigation
Split mount-tree tests into focused suites - #11834
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
lpcox
marked this pull request as ready for review
November 19, 2026 17:00
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of the mount-tree test refactor.
No open issues 🎉
What changed in this PR
Refactors the Cloud Hypervisor mount-tree tests into focused suites, addressing #11828 without changing production code.
Changes:
- Separates helper checks, staging/remount/rollback tests, and masked-path tests.
- Extracts shared mount-table and staging fixtures while keeping helper tests independent.
- Preserves existing test cases and mount-enforcement assertions.
| File | Description |
|---|---|
src/cloud-hypervisor/staged-host-mount-tree.test.ts |
Retains staging, remount, and rollback coverage using shared fixtures. |
src/cloud-hypervisor/staged-host-mount-tree-masked-paths.test.ts |
Isolates masked-path behavior and validation tests. |
src/cloud-hypervisor/mount-tree.test-utils.ts |
Provides shared mount-table fakes and staging utilities. |
src/cloud-hypervisor/mount-tree-helpers.test.ts |
Isolates mount-plan selection, tool-version checks, and mountinfo parsing tests. |
Review effort: Balanced (adaptive)
Contributor
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 94.35% | 94.35% | ➡️ +0.00% |
| Statements | 92.96% | 92.95% | ➡️ -0.01% |
| Functions | 93.55% | 93.53% | 📉 -0.02% |
| Branches | 87.23% | 87.22% | 📉 -0.01% |
📁 Per-file Coverage Changes (2 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/nvx/one-shot-process.ts |
84.0% → 81.5% (-2.47%) | 76.8% → 74.7% (-2.11%) |
src/routing/bootstrap.ts |
91.0% → 90.0% (-1.00%) | 86.6% → 85.3% (-1.34%) |
✨ New Files (1 files)
src/cloud-hypervisor/mount-tree.test-utils.ts: 96.9% lines
Coverage comparison generated by scripts/ci/compare-coverage.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 1,290-line mount-tree suite mixes helper checks with security-critical mount enforcement tests.