[ 
https://issues.apache.org/jira/browse/FLINK-24337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417708#comment-17417708
 ] 

xusysh commented on FLINK-24337:
--------------------------------

[~chesnay] [~airblader]

Thanks for your comments, it seems that git has transform all the source code's 
line seperator to CRLF(because i'm working on windows) include the js and ts 
files in flink webdashboard, and that makes eslint throw errors like {{Delete 
`␍`eslint(prettier/prettier).}}

But if I set git autocrlf to false, the spotless-check will throw error because 
of the line seperator of java source file is not CRLF

> WEB UI build failure in Flink 1.15-SNAPSHOT current code
> --------------------------------------------------------
>
>                 Key: FLINK-24337
>                 URL: https://issues.apache.org/jira/browse/FLINK-24337
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Web Frontend
>    Affects Versions: 1.15.0
>            Reporter: xusysh
>            Priority: Major
>
> code commit hash: be1da48d084941733dfd0121bdb8bc1812d0d38f
>  
> module:
> flink-runtime-web
>  
> build command:
> {{mvn clean package -DskipTests}}
>  
> npm log:
> {code:java}
> 0 info it worked if it ends with ok1 verbose cli [1 verbose cli   
> 'C:\\Program Files\\nodejs\\node.exe',1 verbose cli   'C:\\Program 
> Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',1 verbose cli   'run',1 
> verbose cli   'ci-check'1 verbose cli ]2 info using [email protected] info using 
> [email protected] verbose run-script [ 'preci-check', 'ci-check', 'postci-check' 
> ]5 info lifecycle [email protected]~preci-check: [email protected] 
> info lifecycle [email protected]~ci-check: [email protected] verbose 
> lifecycle [email protected]~ci-check: unsafe-perm in lifecycle true8 
> verbose lifecycle [email protected]~ci-check: PATH: C:\Program 
> Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\github_projs\flink\flink-runtime-web\web-dashboard\node_modules\.bin;C:\Program
>  Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\Common 
> Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
>  Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA 
> Corporation\NVIDIA NvDLISR;C:\Program Files\Java\jdk1.8.0_271\bin;C:\Program 
> Files\Java\jdk1.8.0_271\jre\bin;C:\Program 
> Files\Git\cmd;D:\apache-maven-3.6.1-bin\apache-maven-3.6.1\bin;C:\Program 
> Files\nodejs\;C:\Users\xusysh\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\xusysh\AppData\Local\Programs\Python\Python37\;C:\Users\xusysh\AppData\Local\Microsoft\WindowsApps;C:\Microsoft
>  VS Code\bin;C:\Users\xusysh\AppData\Roaming\npm9 verbose lifecycle 
> [email protected]~ci-check: CWD: 
> D:\github_projs\flink\flink-runtime-web\web-dashboard10 silly lifecycle 
> [email protected]~ci-check: Args: [ '/d /s /c', 'npm run lint && npm run 
> build' ]11 silly lifecycle [email protected]~ci-check: Returned: code: 1  
> signal: null12 info lifecycle [email protected]~ci-check: Failed to exec 
> ci-check script13 verbose stack Error: [email protected] ci-check: `npm 
> run lint && npm run build`13 verbose stack Exit status 113 verbose stack     
> at EventEmitter.<anonymous> (C:\Program 
> Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)13 
> verbose stack     at EventEmitter.emit (events.js:315:20)13 verbose stack     
> at ChildProcess.<anonymous> (C:\Program 
> Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)13
>  verbose stack     at ChildProcess.emit (events.js:315:20)13 verbose stack    
>  at maybeClose (internal/child_process.js:1048:16)13 verbose stack     at 
> Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)14 
> verbose pkgid [email protected] verbose cwd 
> D:\github_projs\flink\flink-runtime-web\web-dashboard16 verbose Windows_NT 
> 10.0.1904217 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
> Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "ci-check"18 verbose 
> node v14.15.019 verbose npm  v6.14.820 error code ELIFECYCLE21 error errno 
> 122 error [email protected] ci-check: `npm run lint && npm run build`22 
> error Exit status 123 error Failed at the [email protected] ci-check 
> script.23 error This is probably not a problem with npm. There is likely 
> additional logging output above.24 verbose exit [ 1, true ]
> {code}
> part of output:
> {code:java}
> ✖ 12927 problems (12927 errors, 0 warnings)
>   12927 errors and 0 warnings potentially fixable with the `--fix` option.npm 
> ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! [email protected] lint: `eslint --cache src --ext .ts,.html && 
> stylelint "**/*.less"`
> npm ERR! Exit status 1
> npm ERR!
> npm ERR! Failed at the [email protected] lint script.
> npm ERR! This is probably not a problem with npm. There is likely additional 
> logging output above.npm ERR! A complete log of this run can be found in:
> npm ERR!     
> C:\Users\xusysh\AppData\Roaming\npm-cache\_logs\2021-09-19T09_14_43_464Z-debug.log
> npm ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! [email protected] ci-check: `npm run lint && npm run build`
> npm ERR! Exit status 1
> npm ERR!
> npm ERR! Failed at the [email protected] ci-check script.
> npm ERR! This is probably not a problem with npm. There is likely additional 
> logging output above.npm ERR! A complete log of this run can be found in:
> npm ERR!     
> C:\Users\xusysh\AppData\Roaming\npm-cache\_logs\2021-09-19T09_14_43_487Z-debug.log
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to