unison icon indicating copy to clipboard operation
unison copied to clipboard

nondeterministic failure in ` byte immutable copyTo!` interpreter test?

Open aryairani opened this issue 1 year ago • 4 comments

See https://github.com/unisonweb/unison/actions/runs/7925721522/job/21640053744#step:16:569

aryairani avatar Feb 16 '24 11:02 aryairani

Just going through some old tickets. Any ideas about this? @dolio

aryairani avatar Apr 30 '24 21:04 aryairani

Not off hand. Does it still happen sometimes?

dolio avatar May 01 '24 15:05 dolio

Never mind. I do see the problem.

In the tests, checkBytesMI and checkBytesMM are wrong. The recursive call is:

checkBytesMI src larr rarr (l - 1)

But l is the value that was read out of the array, not the index. And the non-determinism is because the array is bigger than what we write to it in some of the tests, so sometimes it has random bytes that point you out of bounds.

dolio avatar May 01 '24 16:05 dolio

Pushed an update to those functions.

dolio avatar May 01 '24 16:05 dolio