jdupes icon indicating copy to clipboard operation
jdupes copied to clipboard

Make behavior consistent across invocations by pre-sorting incoming files/directories

Open jbruchon opened this issue 4 years ago • 3 comments

We need to have consistent behavior with identical inputs, both to add proper tests and to make existing tests in other tools (e.g. Debian's deb package consistency tests) behave properly. This is currently causing the Debian tests to fail with v1.19.0 due to reproducibility failures caused by files arriving in a different order across invocations and different primary link targets being chosen as a result. Inputs should be sorted prior to consumption so that they "arrive" in the same order every time.

This should be fixed during my rewrite of the current grokdir() function that will remove recursive function calls.

jbruchon avatar Nov 25 '20 17:11 jbruchon

Thanks. It is very important for Debian.

eribertomota avatar Aug 15 '21 15:08 eribertomota

I haven't forgotten about this. It's a priority for me coming up. I wasn't developing for a long time but I'm back into it now.

jbruchon avatar Dec 05 '22 02:12 jbruchon

Very good. Debian needs this fix. Thanks!

eribertomota avatar Dec 05 '22 03:12 eribertomota