[
https://issues.apache.org/jira/browse/KYLIN-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17196657#comment-17196657
]
ASF GitHub Bot commented on KYLIN-4717:
---------------------------------------
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:
[email protected]
> Failed to build webapp
> ----------------------
>
> Key: KYLIN-4717
> URL: https://issues.apache.org/jira/browse/KYLIN-4717
> Project: Kylin
> Issue Type: Improvement
> Components: Web
> Affects Versions: v3.1.0
> Reporter: Guangxu Cheng
> Assignee: Guangxu Cheng
> Priority: Major
> Attachments: image-2020-08-25-11-40-49-948.png,
> image-2020-09-08-18-48-28-298.png
>
>
> !image-2020-08-25-11-40-49-948.png|width=803,height=301!
> OS Platform: macos 10.15.5 (19F101)
> node version: 14.8.0
> npm version: 6.14.7
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)