mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore(agent/agentcontainers): skip TestDockerCLIContainerLister by default (#16502)
Addresses a test flake seen here: https://github.com/coder/coder/actions/runs/13239819615/job/36952521742 Also addresses the case where we would try to run `docker inspect` with no container IDs, which is a silly thing to do.
This commit is contained in:
@ -59,6 +59,11 @@ func (dcl *DockerCLILister) List(ctx context.Context) (codersdk.WorkspaceAgentLi
|
||||
}
|
||||
|
||||
dockerPsStderr := strings.TrimSpace(stderrBuf.String())
|
||||
if len(ids) == 0 {
|
||||
return codersdk.WorkspaceAgentListContainersResponse{
|
||||
Warnings: []string{dockerPsStderr},
|
||||
}, nil
|
||||
}
|
||||
|
||||
// now we can get the detailed information for each container
|
||||
// Run `docker inspect` on each container ID
|
||||
|
Reference in New Issue
Block a user