Closed nabijaczleweli closed 2 years ago
No idea why it would fail. Does this also happen when running just that test, e.g. as target/debug/deps/test_cases-44059338f2a6f9e4 test_11_obsolete
?
It does! Here's strace -f
: ss-ok.gz ss-fail.gz
Oddly, we do indeed seem to not be generating the files in the failing case: As to why – not a clue yet
Log says that uh, in the failing case we're eliding zram1 due to host-memory-limit?
Ah, here we are! The ordering of the ini K/Vs is stochastic (in a HashMap, seeded by getrandom(2)), but the ordering in 11/e/s/z-g.c
assumes in-order reads:
Or, well, actually, it isn't anymore! On my laptop I still have the Cargo.lock from when I first started doing z-g in 2018 with rust-ini
0.13, which just used a HashMap.
0.14 uses indexmap
for ordered keys behind an optional feature flag.
0.15 is the first to use ordered-multimap
, and always does so.
After bumping the minimum to 0.15, this test now passed 1000 consecutive runs on both 0.15 and 0.17.
I get this a stochastic half the time when running
make check
repeatedly on my laptop:Not a clue why since it works the other half?