You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2020/09/16 03:48:50 UTC

[GitHub] [kylin] guangxuCheng commented on pull request #1374: KYLIN-4717 Failed to build webapp

guangxuCheng commented on pull request #1374:
URL: https://github.com/apache/kylin/pull/1374#issuecomment-693152663


   `✖ 4 of 3 tests failed:
   
     1) jpegtran should return path to jpegtran binary:
        AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
   
     assert(stderr.toString().indexOf('libjpeg-turbo') !== -1)
   
         at /Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:18:4
         at ChildProcess.exithandler (child_process.js:301:5)
         at ChildProcess.emit (events.js:198:13)
         at maybeClose (internal/child_process.js:982:16)
         at Socket.stream.socket.on (internal/child_process.js:389:11)
         at Socket.emit (events.js:198:13)
         at Pipe._handle.close (net.js:607:12)
   
     2) jpegtran should successfully proxy jpegtran:
        AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
   
     assert(stderr.toString().indexOf('libjpeg-turbo') !== -1)
   
         at /Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:27:4
         at ChildProcess.exithandler (child_process.js:301:5)
         at ChildProcess.emit (events.js:198:13)
         at maybeClose (internal/child_process.js:982:16)
         at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
   
     3) jpegtran should minify a .jpg:
        Error: ENOENT: no such file or directory, stat 'test/minified.jpg'
         at Object.statSync (fs.js:855:3)
         at /Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:42:20
         at ChildProcess.exithandler (child_process.js:301:5)
         at ChildProcess.emit (events.js:198:13)
         at maybeClose (internal/child_process.js:982:16)
         at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
   
     4) jpegtran "after all" hook:
        Error: ENOENT: no such file or directory, unlink 'test/minified.jpg'
         at Object.unlinkSync (fs.js:956:3)
         at Context.<anonymous> (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.j
   s:11:6)
         at Hook.Runnable.run (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/mocha/lib/runnable.js:213:32)
         at next (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/mocha/lib/runner.js:243:10)
         at Immediate._onImmediate (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/mocha/lib/runner.js:254:5)
         at runCallback (timers.js:705:18)
         at tryOnImmediate (timers.js:676:5)
         at processImmediate (timers.js:658:5)
   
   
   pre-build test failed, compiling from source...
   Fetching http://downloads.sourceforge.net/project/libjpeg-turbo/1.2.90%20%281.3beta1%29/libjpeg-turbo-1.2.90.tar.gz...
   _http_client.js:116
         throw new ERR_UNESCAPED_CHARACTERS('Request path');
         ^
   
   TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
       at new ClientRequest (_http_client.js:116:13)
       at TunnelingAgent.request (http.js:42:10)
       at TunnelingAgent.createSocket (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/node_modules/tunnel-agent/index.js:117:25)
       at TunnelingAgent.createSecureSocket [as createSocket] (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/node_modules/tunnel-agent/index.js:184:41)
       at TunnelingAgent.addRequest (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/node_modules/tunnel-agent/index.js:80:8)
       at new ClientRequest (_http_client.js:258:16)
       at Object.request (https.js:289:10)
       at Request.start (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/node_modules/request/index.js:582:30)
       at Request.end (/Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/node_modules/request/index.js:1149:28)
       at /Users/cheng/IdeaProjects/tdw-kylin/webapp/node_modules/jpegtran-bin/node_modules/request/index.js:425:12
   `
   
   **node version:  10.20.0
    npm version: 6.14.4**
   ----
   Hi @zzcclp, I use node version 10.20.0, another error will be thrown, as shown above. The PR can also solve this exception


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org