@@ -99,6 +99,12 @@ const CENTRALIZED_BUILD_SCRIPTS = [
9999 "scripts/test-install-sh-e2e-docker.sh" ,
100100 "scripts/test-live-build-docker.sh" ,
101101] as const ;
102+ const BOUNDED_CLIENT_LOG_DOCKER_E2E_SCRIPTS = [
103+ "scripts/e2e/cron-mcp-cleanup-docker.sh" ,
104+ "scripts/e2e/mcp-channels-docker.sh" ,
105+ "scripts/e2e/mcp-code-mode-gateway-docker.sh" ,
106+ "scripts/e2e/mcp-code-mode-gateway-live-docker.sh" ,
107+ ] as const ;
102108
103109function packageBackedDockerRunnerPaths ( ) : string [ ] {
104110 return readdirSync ( "scripts/e2e" )
@@ -185,6 +191,16 @@ describe("docker build helper", () => {
185191 expect ( installE2eSmoke ) . not . toContain ( "docker run --rm \\" ) ;
186192 } ) ;
187193
194+ it ( "prints Docker MCP client logs through the bounded helper" , ( ) => {
195+ for ( const scriptPath of BOUNDED_CLIENT_LOG_DOCKER_E2E_SCRIPTS ) {
196+ const script = readFileSync ( scriptPath , "utf8" ) ;
197+
198+ expect ( script , scriptPath ) . toContain ( 'source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"' ) ;
199+ expect ( script . match ( / d o c k e r _ e 2 e _ p r i n t _ l o g " \$ C L I E N T _ L O G " / g) , scriptPath ) . toHaveLength ( 2 ) ;
200+ expect ( script , scriptPath ) . not . toContain ( 'cat "$CLIENT_LOG"' ) ;
201+ }
202+ } ) ;
203+
188204 it ( "runs cleanup smoke on the native ARM platform instead of pulling an amd64 tag" , ( ) => {
189205 expect ( runCleanupDefaultPlatform ( { CI : "true" } , "aarch64" ) ) . toBe ( "linux/arm64" ) ;
190206 expect ( runCleanupDefaultPlatform ( { GITHUB_ACTIONS : "true" } , "x86_64" ) ) . toBe ( "linux/amd64" ) ;
0 commit comments