Allow DCE results to be included in the reports

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, node.js

Research direction

Start by tracing the JSON Reporter, DCE checks, and the onCompleteBenchmark hook mentioned in the issue, then inspect how Workers invoke the same flow. Done means DCE warnings appear in parseable benchmark reports and DCE checks also work with Workers; no specific files or tests are named.

Written by the indexing model from the issue text.

Description

In Faceoff I serialize the test run output to a file using the JSON Reporter. Since the DCE checks are being handled out of band of the benchmark results, there is no good way for the reporters to add the warnings into the parseable output from a benchmark run, which would be useful information.

It would also be good if DCE checks would function with Workers, and I think these two might be the same problem.

I'm not sure how to fix this. The obvious solution would be to annotate the results rather than collecting the warnings within the plugin, but onCompleteBenchmark, despite taking 'result' as the first parameter, doesn't actually receive the result but an array of values, and the function is treated as a void method so cooking the input is tricky at best.

Do you have any suggestions or ideas on how else this could be achieved?

Dominant language
JavaScript
Stars
193
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RafaelGSS/bench-node

All issues in RafaelGSS/bench-node

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.