Fix split-fs test to use actual effectiveHome instead of hardcoded /home#5781
Conversation
The compose-generator test 'filters out workDir and home dot-directory bind mounts on split-fs' hardcoded '/host/home' as the prefix for filtering home-target volumes. This only works on Linux where home directories are under /home/. On macOS (home under /Users/), the filter matched nothing, causing the workspace mount assertion to fail. Use getRealUserHome() to derive the actual home prefix, making the test portable across platforms. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes a platform-specific unit test failure in generateDockerCompose’s split-filesystem (“split-fs” / arc-dind) coverage by removing a Linux-specific assumption about home directory paths. The test now derives the effective home directory dynamically so it works on macOS (/Users/...) as well as Linux (/home/...).
Changes:
- Update the split-fs compose-generator test to filter home-target bind mounts using
getRealUserHome()instead of a hardcoded/home-based prefix. - Adjust the “home dot-directory mounts should be dropped” assertion to use the derived home path.
Show a summary per file
| File | Description |
|---|---|
src/compose-generator.test.ts |
Makes the split-fs volume filtering logic in the test use the actual effective home directory, improving cross-platform portability. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Low
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
|
✅ Smoke Claude passed |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
✅ Smoke Gemini completed. All facets verified. 💎 Smoke test completed with partial failures. Results reported to PR #5781. |
|
✅ Build Test Suite completed successfully! |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
🚀 Security Guard has started processing this pull request |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
✅ Contribution Check completed successfully! Contribution guidelines review complete for PR #5781: no important missing items found; the PR follows applicable CONTRIBUTING.md guidance. |
|
🔌 Smoke Services — Service connectivity failed |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
Smoke Test: Claude Engine Validation
Overall result: PASS ✅
|
🔥 Smoke Test: Copilot PAT — PASS
PR: Fix split-fs test to use actual effectiveHome instead of hardcoded /home Overall: PASS
|
🔬 Smoke Test ResultsPR: Fix split-fs test to use actual effectiveHome instead of hardcoded /home
Overall: FAIL — pre-computed smoke data (
|
Smoke Test: Copilot BYOK (Direct) Mode
Status: PASS
|
Chroot Version Comparison Results
Overall: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot environments.
|
|
Smoke test summary
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Smoke Test Results
PR Titles:
Overall status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
|
@lpcox Smoke Test Results:
|
Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Overall: PASS
|
🔍 Smoke Test: API Proxy OpenTelemetry Tracing
All 5 scenarios pass. The OTEL tracing integration is fully implemented and all tests are green.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Problem
The compose-generator test "filters out workDir and home dot-directory bind mounts on split-fs" was failing on macOS because it hardcoded
/host/homeas the prefix for filtering home-target volumes. This only works on Linux where home directories are under/home/.On macOS (home under
/Users/), the filter matched nothing, so thehomeTargetsarray was empty and the workspace mount assertion failed:Fix
Use
getRealUserHome()to derive the actual home prefix dynamically, making the test portable across platforms (Linux/home/runnerand macOS/Users/...).Testing