Skip to content
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

fix: new remove method in docker client to use in custom actions and don't get the error related with prune #8710

Merged

Conversation

renzodavid9
Copy link
Contributor

Description
This PR is to remove the warning message we get when running a custom action with more than one container, caused by a docker prune executed for each container.

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #8710 (bc74530) into main (290280e) will decrease coverage by 6.05%.
The diff coverage is 49.59%.

@@            Coverage Diff             @@
##             main    #8710      +/-   ##
==========================================
- Coverage   70.48%   64.43%   -6.05%     
==========================================
  Files         515      617     +102     
  Lines       23150    31177    +8027     
==========================================
+ Hits        16317    20090    +3773     
- Misses       5776     9583    +3807     
- Partials     1057     1504     +447     
Impacted Files Coverage Δ
cmd/skaffold/app/cmd/completion.go 13.04% <0.00%> (-1.25%) ⬇️
cmd/skaffold/app/cmd/config/list.go 65.21% <ø> (ø)
cmd/skaffold/app/cmd/config/set.go 88.72% <ø> (ø)
cmd/skaffold/app/cmd/config/util.go 54.28% <ø> (ø)
cmd/skaffold/app/cmd/credits.go 100.00% <ø> (ø)
cmd/skaffold/app/cmd/credits/export.go 0.00% <0.00%> (ø)
cmd/skaffold/app/cmd/deploy.go 40.90% <0.00%> (-12.94%) ⬇️
cmd/skaffold/app/cmd/generate_pipeline.go 60.00% <ø> (ø)
cmd/skaffold/app/cmd/inspect_modules.go 65.00% <ø> (ø)
cmd/skaffold/app/cmd/inspect_profiles.go 66.66% <ø> (ø)
... and 40 more

... and 406 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@renzodavid9 renzodavid9 marked this pull request as ready for review April 26, 2023 20:05
@@ -127,7 +127,8 @@ func (t Task) Cleanup(ctx context.Context, out io.Writer) error {
return nil
}

if err := t.client.Delete(ctx, out, id); err != nil {
t.client.Stop(ctx, id, nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be used in verify and possibly the docker deployer as well?

Copy link
Contributor

@aaron-prindle aaron-prindle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aaron-prindle aaron-prindle merged commit 75ab8fc into GoogleContainerTools:main May 1, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants