Repository navigation
Multiwrite union - #3782
Multiwrite union#3782
Conversation
a14689b to
e27830c
Compare
01b5fe0 to
35cb33d
Compare
7b40e19 to
7292ec2
Compare
7292ec2 to
99987a4
Compare
|
Can you rebase on master to pick up cb97239 - that should help with the test failures. |
e950587 to
bb4754d
Compare
bb4754d to
2e2be2f
Compare
|
Have no idea why it still fails... @ncw could you help? |
|
The The |
|
@ncw I ran goimports and it ended with no modification on the file. Is it because I run it on windows? |
2e2be2f to
37b412f
Compare
|
@ncw I have fixed goimports. Could we merge this? |
ncw
left a comment
There was a problem hiding this comment.
This looks like a sold bit of work well done :-)
I've given it a light review - see inline comments. I think it probably needs more time but I thought it start the process.
Can you explain when the different sort of policies get used? For example I wasn't really clear on when the search policy was used. This could do with some more docs. The docs go in docs/content/union.md.
Did you check the integration tests work? They didn't appear to for me with go test -v in the union directory.
I think the policies directory needs tests - how do you think we should do that? Making a test framework would probably be a good idea - let me know if you need help with this.
Thanks
|
Hi @Max-Sum did you have any comments on the notes above? |
|
@ncw I am quite busy recently. I will update this week. |
5d70731 to
058020f
Compare
|
As for the testing, I am not quite sure. Maybe we can have a pseudo entry list? |
|
I've pushed up a new beta here https://beta.rclone.org/branch/v1.50.2-102-g769dc85d-pr-3782-union-beta/ (uploaded in 15-30 mins) |
I think something went wrong in the Windows build again. |
|
I stuck up a rebased version here https://beta.rclone.org/branch/v1.51.0-112-g7da83346-pr-3782-union-beta/ (uploaded in 15-30 mins) |
Thanks! |
|
It looks like the union tests are timing out on Windows... When testing locally use the The first test to fail is this - what it looks like is that the encoding for the I wouldn't have though the union backend would need to worry about encoding, it should assume everything in and out is in standard encoding. What do you think @Max-Sum ? |
|
I did encounter this problem when I run on Windows. I just changed the encoding to include |
The windows local backend already encodes rclone/backend/local/encode_windows.go Line 29 in a433698 Where did you add the encoding? |
I added EncodeBackSlash to lib/encoder/standard.go:12. |
|
All paths in rclone should be in "Standard" format so they should be encoded in Standard encoding using unix So I think any uses of I pushed 98ad80b to the pr-3782-union branch which fixes the problem for me - let's see if it works on the CI. This should also make a beta for @thestigma and other testers https://beta.rclone.org/branch/v1.51.0-113-g98ad80be-pr-3782-union-beta/ (uploaded in 15-30 mins) |
769dc85 to
4044d4d
Compare
|
@ncw It still fails with the latest patch. I cannot figure out why... |
|
@ncw Is this timeout problem on windows something that will probably happen a lot in normal use, or something pretty spesific the test is triggering in this case? Would be nice to have an indication for now, so I have some idea of how likely any issues I find are to be related to this spesific bug. |
|
Sorry for the delay! I think the build failures aren't related to your code. I think, now that this has had a bit of testing, we should merge it into master and evolve it there. So @Max-Sum can you squash into one commit with a nice commit log, rebase on master and force push. Hopefully the tests will go green and I'll merge! Can I put you down as maintainer for the union backend? Thank you |
4044d4d to
78588ef
Compare
|
Thank you all for your help. I'm glad to be a maintainer of this. |
|
You are a real hero Max! |
|
I've merged this now :-) Thank you very much! Check the integration tests tomorrow morning: https://pub.rclone.org/integration-tests/current/ for stuff which might need fixing! I've added you to the MAINTAINERS file for the union backend. Do you want to be a member of the rclone dev team? If so I'll send you an invite. There is a lot of new issues and things which makes it quite busy! |
|
Is the vfs/refresh with --fast-list something that could be fixed to go with this? Thanks a bunch for all this by the way! You guys are great. |
Good idea, I made a note on the issue for the union maintainer :-) |
|
Thanks a bunch!! |
I am fixing the integration tests but failed to reproduce the error in vfs and TestIntegration/FsMkdir/FsPutFiles/ObjectAbout. Could you provide the rclone.conf of the official test? |
Super :-)
This is what the integration test server uses, so quite simple |
What is the purpose of this change?
Enable multiple write support for union backend
Was the change discussed in an issue or in the forum before?
#2737 #3709
Known issues
Checklist