10000 chore(agent/agentcontainers): skip TestDockerCLIContainerLister by default by johnstcn · Pull Request #16502 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore(agent/agentcontainers): skip TestDockerCLIContainerLister by default #16502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(agent/agentcontainers): exit early if there are no container IDs
  • Loading branch information
johnstcn committed Feb 10, 2025
commit 6f1731ec9d5c54feb4b9d8745b8b3b05656e63ce
5 changes: 5 additions & 0 deletions agent/agentcontainers/containers_dockercli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading
0