-
Notifications
You must be signed in to change notification settings - Fork 414
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
Test cache trimming priority in the [copy] mode #4497
Test cache trimming priority in the [copy] mode #4497
Conversation
01fcd46
to
12ccc78
Compare
Strangely, the CI fails on Mac OS: for some reason, there our trimming heuristic works in the opposite order. If anyone has any ideas why this is happening, please let me know. |
Could it be related to the FS times granularity on OSX? It's much more coarse than on Linux. We've had issues with this in the past and have special code to deal with this in |
I don't know, but a wild guess is that perhaps ctime is not bumped on mac when you add or remove a hardlink. @jeremiedimino, I though that too, but I can see |
@jeremiedimino Yes, that sounds plausible, which is why I used
@aalekseyev The |
3417d3b
to
bf20349
Compare
Signed-off-by: Andrey Mokhov <[email protected]>
bf20349
to
6d4622b
Compare
@jeremiedimino I added an override for Mac OSX for problematic tests, as we discussed, so I think this is ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I wanted to fix trimming in the
copy
mode because I thought it was broken, but when adding a test I realised that it actually works fine! I added a comment to explain how prioritising trimming byctime
happens to work both inhardlink
andcopy
modes.