Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

test: parallel/test-quic-client-server fails when running coverage #222

Open
trivikr opened this issue Dec 7, 2019 · 0 comments
Open

test: parallel/test-quic-client-server fails when running coverage #222

trivikr opened this issue Dec 7, 2019 · 0 comments

Comments

@trivikr
Copy link
Member

trivikr commented Dec 7, 2019

  • Version: master
  • Platform: Ubuntu 18.04.3 LTS
  • Subsystem: quic

Instructions for running coverage are given in #183 (comment)

Error:

=== release test-quic-client-server ===                                       
Path: parallel/test-quic-client-server
(node:7460) internal/test/binding: These APIs are for internal testing only. Do not use them.
(node:7460) ExperimentalWarning: QUIC protocol support is experimental and not yet supported for production use
assert.js:90
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

0 !== 2

    at QuicServerSession.<anonymous> (/home/trivikr/workspace/quic/test/parallel/test-quic-client-server.js:223:12)
    at QuicServerSession.<anonymous> (/home/trivikr/workspace/quic/test/common/index.js:372:15)
    at QuicServerSession.emit (events.js:215:7)
    at processTicksAndRejections (internal/process/task_queues.js:75:11) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 0,
  expected: 2,
  operator: 'strictEqual'
}
Command: out/Release/node --expose-internals /home/trivikr/workspace/quic/test/parallel/test-quic-client-server.js
=== release test-inspector-wait-for-connection ===                            
Path: parallel/test-inspector-wait-for-connection
[test] Connecting to a child Node process
[test] Testing /json/list
[err] Debugger listening on ws://127.0.0.1:32969/fd0555d3-0f05-4a0e-8800-f9e22f254f75
[err] For help, see: https://nodejs.org/en/docs/inspector
[err] 
[out] before wait for debugger
[out] 
[err] Debugger attached.
[err] 
[out] after wait for debugger
[out] 
[out] before second wait for debugger
[out] 
[test] Connecting to a child Node process
[test] Testing /json/list
[err] Debugger attached.
[err] 
[out] after second wait for debugger
[out]
Command: out/Release/node --expose-internals /home/trivikr/workspace/quic/test/parallel/test-inspector-wait-for-connection.js
--- TIMEOUT ---
=== release test-quic-idle-timeout ===            
Path: parallel/test-quic-idle-timeout
(node:7497) ExperimentalWarning: QUIC protocol support is experimental and not yet supported for production use
Command: out/Release/node /home/trivikr/workspace/quic/test/parallel/test-quic-idle-timeout.js
--- TIMEOUT ---
=== release test-quic-ipv6only ===      
Path: parallel/test-quic-ipv6only
(node:7504) ExperimentalWarning: QUIC protocol support is experimental and not yet supported for production use
Command: out/Release/node /home/trivikr/workspace/quic/test/parallel/test-quic-ipv6only.js
--- TIMEOUT ---
=== release test-inspector-contexts ===                                       
Path: sequential/test-inspector-contexts
Testing context created/destroyed notifications
Command: out/Release/node --expose-gc /home/trivikr/workspace/quic/test/sequential/test-inspector-contexts.js
--- TIMEOUT ---
[07:51|% 100|+ 2798|-   5]: Done                                              
Makefile:296: recipe for target 'jstest' failed
make[2]: *** [jstest] Error 1
Makefile:335: recipe for target 'test-cov' failed
make[1]: *** [test-cov] Error 2
Makefile:245: recipe for target 'coverage-test' failed
make: [coverage-test] Error 2 (ignored)
make coverage-report-js
./node ./node_modules/.bin/c8 report --reporter=html --temp-directory=out/Release/.coverage --omit-relative=false --resolve=./lib --exclude="benchmark/" --exclude="deps/" --exclude="test/" --exclude="tools/" --wrapper-length=0
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /home/trivikr/workspace/quic/node_modules/c8/lib/report.js:174:21
    at Array.map (<anonymous>)
    at Report._loadReports (/home/trivikr/workspace/quic/node_modules/c8/lib/report.js:172:18)
    at Report._getMergedProcessCov (/home/trivikr/workspace/quic/node_modules/c8/lib/report.js:142:37)
    at Report.getCoverageMapFromAllCoverageFiles (/home/trivikr/workspace/quic/node_modules/c8/lib/report.js:59:31)
    at Report.run (/home/trivikr/workspace/quic/node_modules/c8/lib/report.js:39:28)
    at Object.exports.outputReport (/home/trivikr/workspace/quic/node_modules/c8/lib/commands/report.js:24:16)
    at Object.exports.handler (/home/trivikr/workspace/quic/node_modules/c8/lib/commands/report.js:9:17)
    at Object.runCommand (/home/trivikr/workspace/quic/node_modules/yargs/lib/command.js:240:40)

<--- Last few GCs --->
al[21601:0x559052f30f50]    27912 ms: Mark-sweep 2048.2 (2051.3) -> 2047.3 (2051.5) MB, 1696.3 / 0.0 ms  (+ 58.8 ms in 12 steps since start of marking, biggest step 10.8 ms, walltime since start of marking 1762 ms) (average mu = 0.109, current mu = 0.005) a[21601:0x559052f30f50]    29675 ms: Mark-sweep 2049.2 (2052.3) -> 2048.7 (2052.9) MB, 1683.4 / 0.0 ms  (+ 68.1 ms in 15 steps since start of marking, biggest step 7.7 ms, walltime since start of marking 1761 ms) (average mu = 0.057, current mu = 0.007) al

<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x55904f976fcd]
Security context: 0x1e5b360c08a1 <JSObject>
    1: toString [0xe6a18fb8099] [buffer.js:~741] [pc=0x115a1ff9b66e](this=0x1947f8103979 <Uint8Array map = 0xb5cf7e25f51>,0x0e6a18fa0551 <String[#4]: utf8>,0x1932caac04a9 <undefined>,0x1932caac04a9 <undefined>)
    2: arguments adaptor frame: 1->3
    3: /* anonymous */(aka /* anonymous */) [0x111283d45731] [/home/trivikr/workspace/quic/node_modules/c8/lib/r...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x55904ec07d73 node::DumpBacktrace(_IO_FILE*) [./node]
 2: 0x55904ed67bb0 node::Abort() [./node]
 3: 0x55904ed6981c node::errors::TryCatchScope::~TryCatchScope() [./node]
 4: 0x55904f14be92 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [./node]
 5: 0x55904f14c20f v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [./node]
 6: 0x55904f31ebf5  [./node]
 7: 0x55904f31f663 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [./node]
 8: 0x55904f32c309 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [./node]
 9: 0x55904f32d1ae v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [./node]
10: 0x55904f32fcec v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [./node]
11: 0x55904f2f96c6 v8::internal::Factory::NewRawOneByteString(int, v8::internal::AllocationType) [./node]
12: 0x55904f2f9e45 v8::internal::Factory::NewStringFromUtf8(v8::internal::Vector<char const> const&, v8::internal::AllocationType) [./node]
13: 0x55904f165fc9 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [./node]
14: 0x55904ef3cb8c node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Local<v8::Value>*) [./node]
15: 0x55904ed03506  [./node]
16: 0x55904f976fcd  [./node]
Aborted (core dumped)
Makefile:273: recipe for target 'coverage-report-js' failed
make[1]: *** [coverage-report-js] Error 134
Makefile:245: recipe for target 'coverage-test' failed
make: *** [coverage-test] Error 2

Details of the repo:

$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

$ git log | head
commit 1c316ac9deb9df6bad2ad4baaa5781ac5658f595
Author: Daniel Bevenius <[email protected]>
Date:   Fri Dec 6 09:49:21 2019 +0100

    doc,tools: fix make doc target for quic.md
    
    Currently the doc target fails and this commit attempts for fix these
    errors.
    
    PR-URL: https://github.com/nodejs/quic/pull/221
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant