bisync: fix koofr and chunker integration tests #8796
Merged
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 is the purpose of this change?
Two fixes for bisync integration tests on
koofr
andchunker
.@ncw For the
chunker
issue (which I think I tracked down), it should be noted that there is an underlying bug inoperations
that this PR does not fix, but just side-steps.The bug is that
operations.Move
(per its function comment) is supposed to be only accounted as a check. But on backends likeS3
which canCopy
but notMove
, the move falls back to server-side copy and ends up getting counted as a transfer anyway, even whenisTransfer == false
.rclone/fs/operations/operations.go
Lines 413 to 416 in 99e8a63
rclone/fs/operations/operations.go
Line 506 in 99e8a63
rclone/fs/operations/copy.go
Line 381 in 99e8a63
This could theoretically be fixed by making a similar
Copy
/CopyTransfer
scheme and/or passing anisTransfer
param toCopy
. But asCopy
has lots of callers, that's a potentially invasive change that I deemed out-of-scope for this PR 😅See the 68a9019 commit message for further explanation about why this affects
chunker
differently from other backends.Was the change discussed in an issue or in the forum before?
Checklist