You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pattern: The Docker-socket and workspace-mount test suites each define the same makeConfig helper with identical baseline WrapperConfig values.
Locations: src/services/agent-volumes/docker-socket-branches.test.ts:21-28 and src/services/agent-volumes/workspace-mounts.test.ts:17-24.
Impact: These tests cover security-sensitive bind-mount and Docker-socket behavior; duplicated defaults can drift and cause suites to exercise different effective policies while appearing equivalent.
Extract a shared makeAgentVolumeConfig fixture into src/services/agent-volumes/test-utils.ts and import it from all agent-volume suites. Keep suite-specific parameter builders, such as makeParams, local where their fields differ.
Duplicate Code Opportunity
Summary
makeConfighelper with identical baselineWrapperConfigvalues.src/services/agent-volumes/docker-socket-branches.test.ts:21-28andsrc/services/agent-volumes/workspace-mounts.test.ts:17-24.Evidence
src/services/agent-volumes/docker-socket-branches.test.ts:21-28:src/services/agent-volumes/workspace-mounts.test.ts:17-24:Suggested Refactoring
Extract a shared
makeAgentVolumeConfigfixture intosrc/services/agent-volumes/test-utils.tsand import it from all agent-volume suites. Keep suite-specific parameter builders, such asmakeParams, local where their fields differ.Affected Files
src/services/agent-volumes/docker-socket-branches.test.ts— lines 21-28src/services/agent-volumes/workspace-mounts.test.ts— lines 17-24Effort Estimate
Low
Detected by Duplicate Code Detector workflow. Run date: 2026-07-13
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.