Deduplicate baseline agent-volume test config fixture - #6180
Conversation
There was a problem hiding this comment.
Pull request overview
Centralizes the baseline WrapperConfig fixture used across agent-volume unit tests to prevent drift in security-sensitive bind-mount and Docker socket coverage.
Changes:
- Added a shared
makeAgentVolumeConfig()helper for agent-volume test suites. - Updated the workspace mounts, docker socket, and docker-host staging tests to use the shared helper instead of duplicated inline fixtures.
Show a summary per file
| File | Description |
|---|---|
| src/services/agent-volumes/test-utils.ts | Introduces shared baseline WrapperConfig fixture helper for agent-volume tests. |
| src/services/agent-volumes/workspace-mounts.test.ts | Replaces local makeConfig() fixture with makeAgentVolumeConfig(). |
| src/services/agent-volumes/docker-socket-branches.test.ts | Uses shared fixture helper for docker socket branch tests. |
| src/services/agent-volumes/docker-host-staging.test.ts | Uses shared fixture helper for docker-host staging tests. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Low
| export function makeAgentVolumeConfig(overrides: Partial<WrapperConfig> = {}): WrapperConfig { | ||
| return { | ||
| allowDomains: 'example.com', | ||
| agentCommand: 'echo test', | ||
| workDir: '/tmp/awf-test', |
| @@ -0,0 +1,10 @@ | |||
| import { WrapperConfig } from '../../types'; | |||
|
@copilot address review feedback |
Done in af77c66's follow-up commit:
|
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
🔌 Smoke Services — All services reachable! ✅ |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed... |
|
✅ Smoke Gemini completed. All facets verified. 💎 Attempting to list PRs via safeoutputs noop as a probe (this is a placeholder) |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
🚀 Security Guard has started processing this pull request |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
✅ Smoke Claude passed |
|
✅ Build Test Suite completed successfully! |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
📰 VERDICT: Smoke Docker Sbx has concluded. All systems operational. This is a developing story. 🎤 |
|
✅ Contribution Check completed successfully! PR #6180 follows the applicable CONTRIBUTING.md guidelines: it is a focused TypeScript test-fixture refactor, keeps tests alongside source, includes the relevant test changes, and has a clear description. No documentation update or related-issue reference is required for this test-only cleanup. |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
✨ New Files (1 files)
Coverage comparison generated by |
Smoke Test: Copilot BYOK (Direct) Mode✅ GitHub.com connectivity (HTTP 200) Overall: PARTIAL — File test failed; inference path working. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: Services Connectivity
Overall: FAIL — Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: PAT Auth
Overall: PARTIAL - MCP OK; template vars not expanded. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Gemini Smoke Test Results
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.
|
Smoke Test: Claude Engine Validation
Overall Result: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: API Proxy OTEL Tracing
All 5 scenarios pass. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
|
Smoke test: PASS\nMerged PRs:\n- fix: add mode: gh-proxy to smoke-sink-visibility workflows\n- docs: add D5 failure mode — stale gVisor release pin returns 404\nChecks: PR history ✅ | GitHub title ✅ | file write ✅ | build ✅ | discussion ✅\nOverall: PASS Warning Firewall blocked 2 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"
- "registry.npmjs.org"See Network Configuration for more information.
|
|
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
🔥 Smoke Test: Docker Sbx — PARTIAL PASS
PR: Deduplicate baseline agent-volume test config fixture
|
Chroot Version Comparison Results
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test Results
Overall: Author: Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
The agent-volume test suites were carrying identical baseline
WrapperConfigfixtures in multiple files. That duplication risks silent drift in security-sensitive bind-mount and Docker-socket coverage.What changed
makeAgentVolumeConfig()test helper insrc/services/agent-volumes/test-utils.tsmakeConfig()fixtures in the affected agent-volume suites with the shared helperTouched suites
src/services/agent-volumes/docker-socket-branches.test.tssrc/services/agent-volumes/workspace-mounts.test.tsRelated cleanup
src/services/agent-volumes/docker-host-staging.test.tsto use the same shared fixture so the baseline config is defined in one place across adjacent agent-volume testsEffect
WrapperConfigcoverage over time