Open matentzn opened 1 year ago
we should never do yaml.dump(obj)
always specify sort keys false
it turns out that sort_keys=False doesn't fix - on reflection, not unexpectedly, this is a key-value list whose ordering is not defined by the main schema
if we want canonical ordering we have to define it. We can explicitly add ranks
to the schema but this is hard for evolution (e.g. when inserting a new type). I suggest something simple like depth first pre-order of the kgcl is-a hierarchy, with alphabetic sorting for sibs
Running somthing like
Results in non deterministic serialisation of stats/maxo_diff.txt.yaml.