Closed HolQue closed 2 months ago
Hello Holger,
Regarding to the points:
(1) & (2)
: I updated.(3) & (4)
: It's the cause of misalignment between tupleVersion
method and JSON schema validation
. I fixed and pushed the change to the stabi branch.Could you please help me review and verify again?
Thank you, Son
Ready for sprint 0.13.1 [06.09.24](jsonpreprocessor / tsm)
Hi Son,
(1)
In
bValidateSubVersion
an exception is thrown, including a reason for this exception:raise Exception("Wrong format in version info")
But when you call
bValidateSubVersion
, you do not use this information. InBuiltIn().fatal_error()
you create a new reason instead:Why this? For me this makes no sense. I would prefer:
(2)
BuiltIn().fatal_error()
makes the test resultFAIL
. Here I have doubts. A user defines an invalid version format. No test is executed therefore. In this case I would expect the test result to beUNKNOWN
.(3)
I tried to reproduce this error (the error message above). Without success.
For example:
"Maximum_version" : "1.0xyz.0",
Result:
Parameter 'Maximum_version' with invalid value found in JSON configuration file! Reason: '1.0xyz.0' does not match '^\\d+\\.\\d+\\.\\d+$'
Test result is
UNKNOWN
. This is completely fine. But does not fit to the code listed above.(4)
The docstring tells:
Therefore I tried:
"Maximum_version" : "1.2.1b1",
With result:
Parameter 'Maximum_version' with invalid value found in JSON configuration file! Reason: '1.2.1b1' does not match '^\\d+\\.\\d+\\.\\d+$'
Now I am confused. Seems that the docstring tells something invalid. But the main question is: Is this version control mechanism still active? What is the desired behavior in this case? If the code cannot be reached any more - because already another code does the error handling - then the non reachable code should be removed.