Chronicle-Wire icon indicating copy to clipboard operation
Chronicle-Wire copied to clipboard

Update all test to work with YAML wire

Open RobAustin opened this issue 3 years ago • 8 comments

Update all test to work with YAML wire by using system property wire.testAsYaml, then remove TextWrire, first mark deprecated

RobAustin avatar Jun 17 '22 13:06 RobAustin

First phase would be #411 to remove a separate Text wire writer, then we should consider if removing Text wire parser is feasible as well.

alamar avatar Jul 22 '22 09:07 alamar

@peter-lawrey wants to remove or rather deprecate TextWire, so can you close the ticket once we get to 100%, best to list the test which still use text wire.

RobAustin avatar Sep 12 '22 07:09 RobAustin

I will check which tests only use TEXT wire but not YAML. But thing is, a lot of test cases are actually covered by tests outside Wire (such as Map, Queue tests which take TEXT as input or output) and those only test TEXT wire

So we will know how much stuff is broken only when we switch. I will do that to my TextWire writer unifications and see if anything breaks.

alamar avatar Sep 12 '22 08:09 alamar

TEXT wire still has to be tested since it is actively used. Moreover I'm not sure if we can deprecate TextWire completely since we may be reliant on it for reading existing text documents produced by TextWire which may not be proper YAML.

alamar avatar Sep 12 '22 09:09 alamar

[ERROR] Tests run: 10228, Failures: 66, Errors: 27, Skipped: 30

alamar avatar Feb 21 '23 15:02 alamar

YAML wire does not support deserialization of true as 1 and false as 0 - do we need it?

TextBinaryWireTest is the relevant test

alamar avatar Mar 01 '23 08:03 alamar

InvalidYamWithCommonMistakesTest failures were ignored because they test for non-compliant parsing and the goal of YAML is to be compliant

alamar avatar Mar 01 '23 09:03 alamar