building and running tests

35 views
Skip to first unread message

Lucas Dixon

unread,
Oct 29, 2015, 11:05:16 PM10/29/15
to traceur-compiler-discuss
Hello, 
I was trying to build/run tests. I assumed that I could just run "make". But when I do this from the head of master or from the 0.0.92 tag, I get this error: 

ldixon-macbookpro2:traceur-compiler-clean ldixon$ make
node build/expand-js-template.js src/outputgeneration/regexpuRewritePattern.js-template.js src/outputgeneration/regexpuRewritePattern.js
fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'node_modules/regexpu/node_modules/regenerate/regenerate.js'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at expandFile (/Users/ldixon/code/respect-engine/traceur-compiler-clean/build/expand-js-template.js:45:18)
    at expandFile (/Users/ldixon/code/respect-engine/traceur-compiler-clean/build/expand-js-template.js:71:7)
    at Object.<anonymous> (/Users/ldixon/code/respect-engine/traceur-compiler-clean/build/expand-js-template.js:107:1)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
make: *** [src/outputgeneration/regexpuRewritePattern.js] Error 1

Am I doing something wrong? should I file a bug? 

cheers,
lucas

Lucas Dixon

unread,
Oct 29, 2015, 11:13:50 PM10/29/15
to traceur-compiler-discuss
Incidentally, if I do the following, I can make the "make" command happy: 

cd node_modules/regexpu/
npm install
cd ../../
make

I guess a strange dependency has crept in?

I tried the make test after doing this, but I get some errors: 
ldixon-macbookpro2:traceur-compiler-clean ldixon$ make test
./traceur --out bin/traceur-runtime.js --referrer='traceur...@0.0.92/bin/' \
  --script src/runtime/runtime.js  --script src/runtime/url.js  --script src/runtime/ModuleStore.js --symbols=false -- src/runtime/runtime-modules.js src/runtime/polyfills/Map.js src/runtime/polyfills/Set.js src/runtime/polyfills/Promise.js src/runtime/polyfills/String.js src/runtime/polyfills/Array.js src/runtime/polyfills/Object.js src/runtime/polyfills/Number.js src/runtime/polyfills/Math.js src/runtime/polyfills/polyfills.js
./tval test/runUnitTests.js


  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․

  529 passing (13s)

node test/unit/runtime/resources/traceur-runtime.js
rm -f -r test/amd-compiled/*
node src/node/to-amd-compiler.js test/amd test/amd-compiled
rm -f -r test.commonjs-compiled/*
node src/node/to-commonjs-compiler.js test/commonjs test/commonjs-compiled
./traceur test/unit/node/traceur-interpreter.js
./traceur /Users/ldixon/code/respect-engine/traceur-compiler-clean/test/unit/node/traceur-interpreter.js
./traceur --out not-written.js \
test/feature/Modules/Error_ImportDefault.js  2>&1 | sed '1d' > /dev/null
./traceur -v | grep '[0-9]*\.[0-9]*\.[0-9]*'
0.0.92
./tval test/runFeatureTests.js


  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
<--- Last few GCs --->

    5553 ms: Scavenge 975.6 (1015.6) -> 975.6 (1015.6) MB, 0.1 / 0 ms (+ 2.0 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
    5694 ms: Mark-sweep 975.6 (1015.6) -> 590.4 (633.1) MB, 141.1 / 0 ms (+ 2.1 ms in 2 steps since start of marking, biggest step 2.0 ms) [last resort gc].
    5795 ms: Mark-sweep 590.4 (633.1) -> 590.4 (630.1) MB, 101.2 / 0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x18e442e37399 <JS Object>
    1: InnerArrayFill(aka InnerArrayFill) [native harmony-array.js:~118] [pc=0x134dd18c6b9] (this=0x18e442e04131 <undefined>,C=5,n=0x18e442e04131 <undefined>,o=0x17beb1ef0039 <Number: 4.29497e+09>,p=0x17beb1ef0019 <an Object with map 0x104a857f07f9>,q=0x17beb1ef0039 <Number: 4.29497e+09>)
    2: fill [native harmony-array.js:144] [pc=0x134dd18c22a] (this=0x17beb1ef0019 <an Object with map 0x104...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
make: *** [test/features] Abort trap: 6

best,
lucas

Lucas Dixon

unread,
Oct 29, 2015, 11:41:11 PM10/29/15
to traceur-compiler-discuss
Looks like it is just that the tests are a bit flakey, I sometimes get too: 

./tval test/runUnitTests.js
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․AssertionError: The runtime error message should be found: expected -1 to not equal -1
    at /Users/ldixon/code/respect-engine/traceur-compiler-clean/test/unit/node/generated-code-dependencies.js:465:14
    at ChildProcess.exithandler (child_process.js:210:5)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)
make: *** [test/unit] Error 1

But also, sometimes the tests pass too :) 


On Thursday, 29 October 2015 23:05:16 UTC-4, Lucas Dixon wrote:

John J Barton

unread,
Oct 30, 2015, 10:54:09 AM10/30/15
to traceur-comp...@googlegroups.com
Hi Lucas, which version of node are you running?

--
You received this message because you are subscribed to the Google Groups "traceur-compiler-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to traceur-compiler-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages