You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it has been discovered that the tests fail due to the ordering of the values within message was inconsistent. I have a suggestion for a possible fix, but utilizing Comparator and order alphabetically (within createMessage in SchemaToProntoGenerator), however I wanted to make sure to see if the tag value matters or if it's okay to assign the tag just based on what order they are in.
Here is an example (within testListMapTypeCorrect: Original expected:
The tag value of 1, 2, and 3, does it matter with which specific key it is with (like code, name, or scores)? If it doesn't, I can alter the 3 tests to order alphabetically and match the expected in the assertion to reflect that.
Please let me know what you think and I'd be more than happy to discuss this further! Thank you in advance.
The text was updated successfully, but these errors were encountered:
wtrzas2
changed the title
Flakiness in 3 tests within TestSchemaToProtoGenerator.
Flakiness in tests within TestSchemaToProtoGenerator.
Dec 6, 2024
Hello,
There has been "flakiness" detected within these tests:
org.apache.servicecomb.codec.protobuf.schema.TestSchemaToProtoGenerator.testListMapTypeCorrect org.apache.servicecomb.codec.protobuf.schema.TestSchemaToProtoGenerator.test_springmvc_model_schema_correct
Running NonDex tool:
it has been discovered that the tests fail due to the ordering of the values within
message
was inconsistent. I have a suggestion for a possible fix, but utilizing Comparator and order alphabetically (withincreateMessage
inSchemaToProntoGenerator
), however I wanted to make sure to see if thetag
value matters or if it's okay to assign thetag
just based on what order they are in.Here is an example (within
testListMapTypeCorrect
:Original expected:
and with Nondex, sometimes the generator makes this instead:
If using alphabetical ordering by name, it will stay consistent ordering, but the tag value for the specific name changes:
The
tag
value of 1, 2, and 3, does it matter with which specific key it is with (like code, name, or scores)? If it doesn't, I can alter the 3 tests to order alphabetically and match the expected in the assertion to reflect that.Please let me know what you think and I'd be more than happy to discuss this further! Thank you in advance.
The text was updated successfully, but these errors were encountered: