The Problem:
There are some flaky-tests in the repo, which assert the output of non-deterministic outputs. They may pass in specific environment but possible fail in others. By using nondex, one can find such cases.
For example: ConsumerJsonRecordTest.should_serialize_a_record_with_headers fails intermittently
Expected: "{\"key\":123,\"value\":\"val\",\"headers\":{\"hKey\":\"hValue\",\"hKeyWithNullValue\":null}}"
but: was "{\"key\":123,\"value\":\"val\",\"headers\":{\"hKeyWithNullValue\":null,\"hKey\":\"hValue\"}}"
Notice the string mismatch due to change in ordering of keys: {hKey, hKeyWithNullValue}
<=> {hKeyWithNullValue, hKey}
About The Fix:
Answered here.