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

David McLaughlin commented on AURORA-1951:
------------------------------------------

A git clean fixed it for the first run, but then subsequent runs have the same 
issue. 

{noformat}
$ ./gradlew --rerun-tasks ui:lint

BUILD SUCCESSFUL in 7s
3 actionable tasks: 3 executed
apache-aurora$ 
apache-aurora$ rm -rf ui/.gradle/
apache-aurora$ ./gradlew --rerun-tasks ui:lint

> Task :ui:lint

> [email protected] lint /Users/dmclaughlin/t/apache-aurora/ui
> eslint src/main/js --ext .js


/Users/dmclaughlin/t/apache-aurora/ui/src/main/js/components/Icon.js
  3:7  error  'test' is assigned a value but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)


npm ERR! Darwin 16.7.0
npm ERR! argv 
"/Users/dmclaughlin/t/apache-aurora/ui/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/node"
 
"/Users/dmclaughlin/t/apache-aurora/ui/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/npm"
 "run" "lint"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] lint: `eslint src/main/js --ext .js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] lint script 'eslint src/main/js 
--ext .js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the apache-aurora 
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint src/main/js --ext .js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs apache-aurora
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls apache-aurora
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/dmclaughlin/t/apache-aurora/ui/npm-debug.log


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ui:lint'.
> Process 'command 
> '/Users/dmclaughlin/t/apache-aurora/ui/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/npm''
>  finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
3 actionable tasks: 3 executed
$ ./gradlew --rerun-tasks ui:lint

BUILD SUCCESSFUL in 8s
3 actionable tasks: 3 executed
{noformat}

> UI build broken in gradle 4.2
> -----------------------------
>
>                 Key: AURORA-1951
>                 URL: https://issues.apache.org/jira/browse/AURORA-1951
>             Project: Aurora
>          Issue Type: Task
>            Reporter: David McLaughlin
>            Assignee: Bill Farner
>
> The recent upgrade to gradle 4.2 has broken the previously working ui build. 
> It was a bit of a nightmare for me to get this working originally and 
> unfortunately I don't have the bandwidth to bisect the changelog to see what 
> they've changed. 
> Here is the symptom of a false positive result:
> {noformat}
> $ ./gradlew --rerun-tasks ui:lint
> BUILD SUCCESSFUL in 8s
> 3 actionable tasks: 3 executed
> apache-aurora$ cd ui
> ui$ 
> ui$ npm run lint
> > [email protected] lint /Users/dmclaughlin/t/apache-aurora/ui
> > eslint src/main/js --ext .js
> /Users/dmclaughlin/t/apache-aurora/ui/src/main/js/components/Icon.js
>   3:7  error  'test' is assigned a value but never used  no-unused-vars
> ✖ 1 problem (1 error, 0 warnings)
> {noformat}
> I'm not totally sure which version of Gradle causes the regression.
> I also saw issues with changing files and Gradle still considering the task 
> UP-TO-DATE. This would cause false positives in other ways and general make 
> it unpleasant to work in the UI. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to