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
bazel test consumes the rest result file written to the location specified by env var XML_OUTPUT_FILE, which is in "junit result format" and might look like so:
Note the time="1.1e0" attribute on the first testcase. Bazel correctly parses this as 1.1 seconds. However, if the value is 1e0 (or any other value without any decimal point to the left of the e), the parsing apparently fails and bazel reports 0 test cases for the entire test (even if only 1 testcase has such a value).
Having a no decimal point is generally valid (most langs accept this, I could not find a counter-example at least) and this should be parsed correctly.
These values were written by Boost test's JUNIT writer.
Which category does this issue belong to?
Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
create a test that just writes the following to the XML_OUTPUT_DIR location:
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
I downloaded bazel.
What's the output of git remote get-url origin; git rev-parse HEAD ?
n/a
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
Did not attempt.
Any other information, logs, or outputs that you want to share?
JUNIT XML schema seems to define this field as xs:decimal type which arguably should not support scientific notation at all, but in any case Bazel is correctly parsing the cases with a decimal point, which seems inconsistent.
The text was updated successfully, but these errors were encountered:
Description of the bug:
bazel test
consumes the rest result file written to the location specified by env varXML_OUTPUT_FILE
, which is in "junit result format" and might look like so:Note the
time="1.1e0"
attribute on the firsttestcase
. Bazel correctly parses this as 1.1 seconds. However, if the value is1e0
(or any other value without any decimal point to the left of thee
), the parsing apparently fails and bazel reports 0 test cases for the entire test (even if only 1 testcase has such a value).Having a no decimal point is generally valid (most langs accept this, I could not find a counter-example at least) and this should be parsed correctly.
These values were written by Boost test's JUNIT writer.
Which category does this issue belong to?
Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
create a test that just writes the following to the XML_OUTPUT_DIR location:
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?release 7.4.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.I downloaded bazel.
What's the output of
git remote get-url origin; git rev-parse HEAD
?n/a
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
Did not attempt.
Any other information, logs, or outputs that you want to share?
JUNIT XML schema seems to define this field as
xs:decimal
type which arguably should not support scientific notation at all, but in any case Bazel is correctly parsing the cases with a decimal point, which seems inconsistent.The text was updated successfully, but these errors were encountered: