Repository navigation
Conversation
Signed-off-by: Hiroto Toyoda <hirototoyoda20020927@gmail.com>
Signed-off-by: Hiroto Toyoda <hirototoyoda20020927@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
rmchunk, and thenilsentinel #14449 introduced for the service scope ofdown -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 givenExeccall (execErrs, like the existinguntarErrs).TestSync_StopsDeletingAtTheFirstFailingExecfails the 2nd of 19rmchunks 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:ensureVolumesDowntakes the scope as an explicitscoped boolinstead of inferring it from a non-empty list of services. A scopeddown -vthat 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, andTestEnsureVolumesDown_ScopedWithNoServiceKeepsVolumesInUsecovers the scoped case with no service.Testing done
make testmake e2e-composeormake e2e-compose-standalonemake lintmake fmtAI tool used (if applicable)
AI Tool:
Additional context
(not mandatory) A picture of a cute animal, if possible in relation to what you did