-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etag propagation API tests are intermittent #249
Comments
@individual-it has done some local test runs and confirmed that the test scenario sometimes passes (maybe 1 in 20 times). He will add information here... |
how to reproduce:
|
it seems to have to do something with the tmtime: |
I guess when a file is renamed the modification time of all parent folders are changed to the same timestamp only sometimes its gets late and the etag is updated |
When manually debugging this we saw the tmtime was indeed not before mtime when executing a MOVE. Specifically renaming a file in the same folder, which caused the change not to be propagated further. @C0rby and I noticed that a stat would show a change as well as a modify time. But only the change time would update ... Which is correct for renaming a folder ... The question is if that translates to the os.Stat mtime .... Hm I doubt it... |
No the filings.modtime only reads the mtime. We would need to read the crime using syscall... Platform specific code... See https://stackoverflow.com/a/20877193 |
The tests mentioned here seem to have been fixed and both are passing now locally. So I think this issue can be closed now. |
yes, this is no longer intermittent. expected-failures lists the remaining scenarios that consistently fail. |
Currently most (or all) of the new etag propagation tests are failing and are in the expected-failures list for OCIS test runs. We know that the etag propagation does not currently work all the way up the tree for elements inside sub-folders...
But when running CI for owncloud/ocis#660 , one of the test scenarios unexpectedly passed:
https://drone.owncloud.com/owncloud/ocis/387/23/7
The example for
old
DAV path failed as expected, but the example fornew
DAV path passed unexpectedly - it seems that the etags of/upload
and/
did change.After restarting drone CI, the CI passed (i.e. the scenario
moveFileFolder.feature:21
failed as expected)Under some conditions the etags do get updated. Maybe there are other etag scenarios that might sometimes pass. Needs investigation.
The text was updated successfully, but these errors were encountered: