Repository navigation
Conversation
|
Refer to this link for build results (access rights to CI server needed): Build result: FAILURE[...truncated 16 lines...]Fetching upstream changes from https://github.com/owncloud/core.gitusing GIT_SSH to set credentials using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git1005879802005631867.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git config --local --remove-section credential # timeout=10 > git rev-parse origin/pr/13312/merge^{commit} # timeout=10 > git branch -a --contains eb75b5771f7fc9abcec58c63bc711bec9000ccc3 # timeout=10 > git rev-parse remotes/origin/pr/13312/merge^{commit} # timeout=10Checking out Revision eb75b5771f7fc9abcec58c63bc711bec9000ccc3 (origin/pr/13312/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f eb75b5771f7fc9abcec58c63bc711bec9000ccc3First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » SLAVEpull-request-analyser-ng-simple » SLAVE completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 0 seconds💣 Test FAILed. 💣 |
|
The inspection completed: 2 new issues, 3 updated code elements |
|
You rock! |
|
8.0 o.O |
|
It sounds quite tricky and is likely to break stuff, so very likely to be 8.1. Writing down some ideas here: Currently when moving a file between storages, it's a "rename" operation ( In the case of copy(), the tricky part is making sure that not only the copied folder keeps its file id but also all children. Approach 1): prevent any file cache update until completion of the operation. At the end, find all source entries for the source files, then update the "storage" column to be the new storage, update "path", "path_hash" and "parent" to match the new location. Approach 2): same as approach 1), but the files + cache are updated one by one instead of all at the end of the copy. This means we'll need a special implementation of "copy" which is specific to this case (separate from the read Approach 3): gather fileid of cache entries that match the file to be copied, then delete them. Perform the copy and update the new cache entries (that appears because of the copy) and change their fileid to the old ones. So far I prefer approach 2) |
|
I forgot about this branch... Merged it into this PR that has a partial fix: #13385 |
In the spirit of "test first" this PR contains failing tests to make file ids stable.
Ref #13310
@DeepDiver1975 @icewind1991 FYI