unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.78k stars 270 forks source link

Create testing harness for multi-node serialization #3379

Open pchiusano opened 2 years ago

pchiusano commented 2 years ago

We want to make sure a whole bunch of values round trip successfully, and also test the situation where the "sender" code cache is in a different state than the "receiver" code cache.

Suggestion: have some golden files of serialized stuff, which is checked in, make sure we can deserialize them.

Suggestion: have the golden file be generated from a Unison transcript that calls Value.serialize, that way we will notice if the serialization format ever accidentally changes.

pchiusano commented 2 years ago

@ceedubs and @stew can provide some color on this.

Having this is going to give us more confidence when merging stuff like #3377

pchiusano commented 2 years ago

Ideas we discussed: