Skip to content

chore: address the review notes left on #14528 and #14449 - #14562

Open
htoyoda18 wants to merge 2 commits into
docker:mainfrom
htoyoda18:chore/review-notes-14528-14449
Open

htoyoda18 wants to merge 2 commits into
docker:mainfrom
htoyoda18:chore/review-notes-14528-14449

Conversation

@htoyoda18

@htoyoda18 htoyoda18 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

Follows up on two non-blocking notes ndeloof left: the test that #14528 left out for the deletion that stops at the first failing rm chunk, and the nil sentinel #14449 introduced for the service scope of down -v. One commit per note. A test and a refactor, no behavior change.

Related issue

No issue. This follows up on these review notes:

Changes made

  • internal/sync/tar_test.go: the fake client can now fail a given Exec call (execErrs, like the existing untarErrs). TestSync_StopsDeletingAtTheFirstFailingExec fails the 2nd of 19 rm chunks and checks that the chunks after it are not run, that the failure is reported once, and that the files to copy are still copied.
  • pkg/compose/down.go: ensureVolumesDown takes the scope as an explicit scoped bool instead of inferring it from a non-empty list of services. A scoped down -v that ended up with no service torn down now keeps the volumes in use instead of removing every volume of the project. That list is never empty when services are given today, so nothing changes for current callers.
  • pkg/compose/down_test.go: the existing calls pass the new argument, and TestEnsureVolumesDown_ScopedWithNoServiceKeepsVolumesInUse covers the scoped case with no service.

Testing done

  • Unit tests pass: make test
  • E2E tests pass: make e2e-compose or make e2e-compose-standalone
  • Linting passes: make lint
  • Code formatted: make fmt
  • Manually tested (describe):

AI tool used (if applicable)

AI Tool:

Additional context

(not mandatory) A picture of a cute animal, if possible in relation to what you did

image

Signed-off-by: Hiroto Toyoda <hirototoyoda20020927@gmail.com>
Signed-off-by: Hiroto Toyoda <hirototoyoda20020927@gmail.com>
@htoyoda18
htoyoda18 marked this pull request as ready for review November 29, 2026 08:47
@htoyoda18
htoyoda18 requested review from a team as code owners November 29, 2026 08:47
@htoyoda18
htoyoda18 requested review from glours and ndeloof November 29, 2026 08:47

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant