diff --git a/scripts/node_suite_run.py b/scripts/node_suite_run.py index 92fd3c71e1..a95778c343 100755 --- a/scripts/node_suite_run.py +++ b/scripts/node_suite_run.py @@ -22,10 +22,45 @@ Usage: node_suite_run.py [comma-separated-modules] """ -import os, subprocess, sys, tempfile +import os, re, subprocess, sys, tempfile from concurrent.futures import ThreadPoolExecutor from collections import defaultdict +# Environment-variant tokens that defeat byte-for-byte stdout comparison without +# indicating any Perry defect. Scrubbed SYMMETRICALLY from both node and perry +# output before the equality check (see normalize()). +# +# 1. console.time/timeEnd/timeLog durations. Node's formatTime renders a live +# hrtime delta as the raw float `${ms}ms` (or `${s}s`, or `m:ss.mmm`), so the +# number is non-deterministic run-to-run AND has a variable decimal count — +# node itself prints e.g. 0.004ms / 0.004ms / 0.003ms, and 2.59ms / 2.68ms, +# across runs of the same program. The duration always follows the timer +# label as `