rclone: Integration test breakage
It looks like the mega merge has broken some integration tests 😦
I’m pretty sure that these are a consequence of your changes @nielash - can you take a look?
| suite | test |
|---|---|
| fs/sync | TestFixCase |
| fs/operations | TestCaseInsensitiveMoveFileDryRun |
| fs/operations | TestApplyTransforms |
To run the tests for a suite do this
cd fs/sync
go test -v -run TestFixCase -remote TestWhicheverFails:
To see which remotes to try see the integration test results here: https://pub.rclone.org/integration-tests/current/ (these are generated daily). I would test and fix one remote and hope that the fix works for the others!
These ones were broken before the merge but need fixing too - I @ncw - will do these.
| suite | test |
|---|---|
| backend | TestIntegration/FsMkdir/FsPutFiles/FsIsFile/FsRoot |
The other breakages are known about.
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don’t comment if you have no relevant information to add. It’s just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (7 by maintainers)
Commits related to this issue
- operations: fix case-insensitive moves in operations.Move #7591 Before this change, operations.moveOrCopyFile had a special section to detect and handle changing case of a file on a case insensitive ... — committed to rclone/rclone by nielash 3 years ago
- operations: fix TestCaseInsensitiveMoveFileDryRun on chunker integration tests #7591 It appears that ci.DryRun = true affects the behavior of r.WriteObject on chunker only, and no other remotes. This... — committed to rclone/rclone by nielash 3 years ago
- operations: use --download for TestApplyTransforms #7591 This makes it possible to run the test even on remotes without MD5 support. — committed to rclone/rclone by nielash 3 years ago
- sync: fix dircache not getting flushed after move #7591 — committed to nielash/rclone by nielash 3 years ago
- operations: skip backends incapable of testing TestApplyTransforms - #7591 This adds a step to detect whether the backend is capable of supporting the feature, and skips the test if not. A backend ca... — committed to nielash/rclone by nielash 3 years ago
- sync: use operations.DirMove instead of sync.MoveDir for --fix-case - #7591 This should be more efficient for the purposes of --fix-case, as operations.DirMove accepts `srcRemote` and `dstRemote` arg... — committed to nielash/rclone by nielash 3 years ago
- operations: skip backends incapable of testing TestApplyTransforms - #7591 This adds a step to detect whether the backend is capable of supporting the feature, and skips the test if not. A backend ca... — committed to rclone/rclone by nielash 3 years ago
- sync: use operations.DirMove instead of sync.MoveDir for --fix-case - #7591 This should be more efficient for the purposes of --fix-case, as operations.DirMove accepts `srcRemote` and `dstRemote` arg... — committed to rclone/rclone by nielash 3 years ago
- opendrive: fix moving file/folder within the same parent dir - #7591 Before this change, moving (renaming) a file or folder to a different name within the same parent directory would fail, due to usi... — committed to nielash/rclone by nielash 3 years ago
- linkbox: add override for TestFixCase - #7591 linkbox already has an override for TestCaseInsensitiveMoveFile, and being able to handle case-insensitive moves is a prerequisite for TestFixCase. — committed to nielash/rclone by nielash 3 years ago
- mailru: add override for TestApplyTransforms - #7591 mailru is unable to handle filenames with certain combining characters (for example: йěáñ), and is therefore incapable of testing ApplyTransfo... — committed to nielash/rclone by nielash 3 years ago
- opendrive: fix moving file/folder within the same parent dir - #7591 Before this change, moving (renaming) a file or folder to a different name within the same parent directory would fail, due to usi... — committed to nielash/rclone by nielash 3 years ago
- linkbox: add override for TestFixCase - #7591 linkbox already has an override for TestCaseInsensitiveMoveFile, and being able to handle case-insensitive moves is a prerequisite for TestFixCase. — committed to nielash/rclone by nielash 3 years ago
- mailru: add override for TestApplyTransforms - #7591 mailru is unable to handle filenames with certain combining characters (for example: йěáñ), and is therefore incapable of testing ApplyTransfo... — committed to nielash/rclone by nielash 3 years ago
- opendrive: fix moving file/folder within the same parent dir - #7591 Before this change, moving (renaming) a file or folder to a different name within the same parent directory would fail, due to usi... — committed to rclone/rclone by nielash 3 years ago
- linkbox: add override for TestFixCase - #7591 linkbox already has an override for TestCaseInsensitiveMoveFile, and being able to handle case-insensitive moves is a prerequisite for TestFixCase. — committed to rclone/rclone by nielash 3 years ago
- mailru: add override for TestApplyTransforms - #7591 mailru is unable to handle filenames with certain combining characters (for example: йěáñ), and is therefore incapable of testing ApplyTransfo... — committed to rclone/rclone by nielash 3 years ago
- operations: fix case-insensitive moves in operations.Move #7591 Before this change, operations.moveOrCopyFile had a special section to detect and handle changing case of a file on a case insensitive ... — committed to Fornaxian/rclone by nielash 3 years ago
- operations: fix TestCaseInsensitiveMoveFileDryRun on chunker integration tests #7591 It appears that ci.DryRun = true affects the behavior of r.WriteObject on chunker only, and no other remotes. This... — committed to Fornaxian/rclone by nielash 3 years ago
- operations: use --download for TestApplyTransforms #7591 This makes it possible to run the test even on remotes without MD5 support. — committed to Fornaxian/rclone by nielash 3 years ago
Yes that looks much better. I just need to fix the Error IsFile Root ones and then we should be back below 10 failures again before I merge the directory modtime/ metadata which is bound to break more stuff!
Add in an override in config.yaml is probably what I’d do at this point!
The encoder only really works for ASCII punctuation. It doesn’t deal with other sorts of replacements. Not sure what to do about this
A bit of testing indicates that mailru doesn’t like any of the accented characters
йěáñIt is the combining characters it doesn’t like by the look of it
I guess mailru just can’t cope with this, so I’d mark it so in config.yaml
I suspect that the opendrive API has improved since the backend was written…
Yes your fix seems like the correct one if you want to have a go 😃
Thanks, good to know!
Makes sense, thanks for clarifying!
I noticed this recently while experimenting with making a new wrapping backend! It was surprising to me coming from the user side where the
remote:path/subpathsyntax always makes it totally clear where we are relative to the (same) root. I found myself wishing there was something that simple for anFs! Maybe whatever is replacingcache.Getwill bring one.I think the one for
TestCaseInsensitiveMoveFileis telling… that’s exactly what--fix-caseneeds to do! So if that was deemed impossible, I suspect we’ll reach the same conclusion here.I agree.
Sounds good! I’ll do that now and check the results tomorrow 😅
In general you should always use
cache.Getinstead of calling NewFs directly. That said, we are going to ditch that code path so this is just an FYI!Odd but we are probably ditching that bit too!
Backends don’t share directory caches for quite a few reasons. The main one is that it is difficult to tell whether backends are pointing to the same thing, and if the root is different the contents of the directory cache will be different.
Sounds good to me.
😃
Note that linkbox has some overrides in the integration test config
https://github.com/rclone/rclone/blob/f4c058e13e3b0af3bed5c4e6db39599e5e440694/fstest/test_all/config.yaml#L376-L382
I’m not sure what is up with it though - I think there may be a PR in the queue.
That fix looks OK if we need it, but I think we probably won’t with DirMove.
Fixing the integration tests is an iterative process, I tend to fix one set of stuff a day until it is all clean!
Happy for you to merge fixes for integration tests when you are happy with them.
Yes DirMove seems like a good idea. That was made for the vfs to rename directories and will use the underlying
DirMoveprimitives if available so will be much more efficient.Got it - your explanation sounds correct to me.
Will reply to other queries above later!
Great
Yes I think you are right. Good fix 😃 I have merged that.
I haven’t merged that patch. The pacer should be retrying these and backing off I think - that is the best place to fix the problem I think. Dropbox is stingy with there iops and a lot of rclone users run with
--tpslimit 12which seems to be the right number for uploading lots of files - not sure about moves.OK, weird, but good enough for now! Merged.
I prefer not to have backends named in the tests.
This can be done in two ways
NoUnicodeNormalization.I don’t think the Feature flag is useful except in the tests, so I’d probably go with 1. What do you think?
Thanks for fixing those @nielash . I pulled those locally gave them a test and I’ve merged them now and we can check the integration tests tomorrow to see how we did!
Yep, looking at it now.