-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An option to disable the performance counter on demand. #2086
Comments
@verrantom thanks for raising! From reading up a bit on CodeBuild's test reporting, looks like it parses and uses the (legacy) JSON formatter output. On that basis I think I'd be fine with just changing the JSON formatter to round to integer milliseconds - arguably we've made a breaking change there (by changing it to a decimal) and CodeBuild is just a prominent victim. @aurelien-reeves what do you think? |
Thanks for the request @verrantom 👍 @davidjgoss I am pretty sure that a lot of our users still rely a lot on the json formatter, and that they may have already taken advantage of the new accurate measures. That would be a regression to them. And even if that is not the case, that would seem odd to not have the same value for duration from one formatter to another one. I would prefer an option to deactivate the high precision measures. |
@aurelien-reeves so like: "formatOptions": {
"json": {
"highPrecisionTimestamps": false
}
} I'd be cool with that if we're making |
I was more thinking about a global option that would impact And I would have suggest to opt-out of high-precision measures per default. But I would not object into opting-in for it. I think it was a good and reasonable improvement despite that regression with some third-party tools. And it was released as part of a new major version so we did not missed the breaking change in a minor or patched version here. |
After digging into this a little today:
I think the best short-term course would be to |
Released https://github.com/cucumber/cucumber-js/releases/tag/v8.5.1 with a fix for this. |
🤔 What's the problem you're trying to solve?
#1793 introduced a change whereby durations on the reports output as part of the cucumber_report.json can be decimal values. This is resulting in AWS CodeBuild's built in test report processor (written in Go) causing issues as the duration is no longer an integer.
✨ What's your proposed solution?
After speaking to @aurelien-reeves they suggested an option that would disable the performance counter on demand.
⛏ Have you considered any alternatives or workarounds?
An alternate workaround would be adding a specific step to our AWS CodeBuild pipeline to undo the changes made in the pull request linked above.
📚 Any additional context?
I raised this issue in the "help-cucumber-js" slack channel and spoke to Aurélien who suggested I raise this feature request.
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: