mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
* fix(docker): open long-lived exec streams on the streaming Docker pool CodeBuild build phases, SSM run commands, ECS Exec sessions, the EKS audit log follower, ECR garbage collection, EC2 and EKS user data scripts and EMR bootstrap actions held a control-plane connection for as long as their exec ran, so enough of them could leave the short Docker calls waiting for a lease. Their exec starts now use the @StreamingDocker client: ContainerLifecycleManager exposes getStreamingDockerClient(), CodeBuildRunner and SsmDirectCommandExecutor inject it, and UserDataPipeline and ContainerExec take it beside the control-plane client. Neither transport replays an exec start and both exempt it from the response timeout, so only the pool changes; creating, inspecting and resizing an exec stay on the control plane. The connection pool docs, the environment variable tables, the application.yml comment and the javadocs now name these streams. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * fix(codebuild): close a timed-out phase's output stream, and drop the test-only constructor runPhase discarded the callback of its exec start, so a phase that timed out or was interrupted left its output stream open, now holding a streaming connection for as long as the command ran on; it is now closed. ContainerLifecycleManager's public four-argument constructor existed only so tests could pass one client for both pools; it goes, and those tests name both clients through the injected constructor. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * test(docker): give the reachability test the streaming client the constructor now takes Signed-off-by: Hector Ventura <hectorvent@gmail.com> #8951 added ContainerLifecycleManagerReachabilityTest with the four-argument constructor this branch removes, so the two no longer compiled together on main. --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>