Can't build last sources from github, 3 September 2012. Build-comparison/integTest errors


(north_wind) #1

I forked master branch of gradle, last commit is d5aa91c5c89af4f85f9d4639b813e4fd3810dac6.

I try to build it:

gradlew build

My java is: # java -version

java version “1.7.0_03” Java™ SE Runtime Environment (build 1.7.0_03-b05) Java HotSpot™ Client VM (build 22.1-b02, mixed mode, sharing)

And build stops at :build-comparison:integTest:

May be it’s better to build not from the last commit? What are the best practices to build gradle project from sources?


(Luke Daley) #2

Master is currently stable according to our CI server: http://builds.gradle.org/project.html?projectId=project10&tab=projectOverview

Can you please provide the error messages/stack traces.


(north_wind) #3

Tomorrow I can send you more detailed information, but for now I have the next console output after a second launch of ‘gradlew build’:

:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:checkstyleMain UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:checkstyleTest UP-TO-DATE
:buildSrc:classycleMain UP-TO-DATE
:buildSrc:classycleTest UP-TO-DATE
:buildSrc:codenarcMain UP-TO-DATE
:buildSrc:codenarcTest UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
:assemble UP-TO-DATE
:check UP-TO-DATE
:build UP-TO-DATE
:announce:classpathManifest UP-TO-DATE
:baseServices:classpathManifest UP-TO-DATE
:baseServices:compileJava UP-TO-DATE
:baseServices:compileGroovy UP-TO-DATE
:baseServices:processResources UP-TO-DATE
:baseServices:classes UP-TO-DATE
:baseServices:jar UP-TO-DATE
:cli:classpathManifest UP-TO-DATE
:cli:compileJava UP-TO-DATE
:cli:compileGroovy UP-TO-DATE
:cli:processResources UP-TO-DATE
:cli:classes UP-TO-DATE
:cli:jar UP-TO-DATE
:determineCommitId
:createBuildReceipt
:core:buildReceiptResource UP-TO-DATE
:core:classpathManifest UP-TO-DATE
:messaging:classpathManifest UP-TO-DATE
:messaging:compileJava UP-TO-DATE
:messaging:compileGroovy UP-TO-DATE
:messaging:processResources UP-TO-DATE
:messaging:classes UP-TO-DATE
:messaging:jar UP-TO-DATE
:native:classpathManifest UP-TO-DATE
:native:compileJava UP-TO-DATE
:native:compileGroovy UP-TO-DATE
:native:processResources UP-TO-DATE
:native:classes UP-TO-DATE
:native:jar UP-TO-DATE
:core:compileJava UP-TO-DATE
:core:compileGroovy UP-TO-DATE
:core:pluginsManifest UP-TO-DATE
:core:processResources UP-TO-DATE
:core:reportResources UP-TO-DATE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:plugins:classpathManifest UP-TO-DATE
:wrapper:classpathManifest UP-TO-DATE
:wrapper:compileJava UP-TO-DATE
:wrapper:compileGroovy UP-TO-DATE
:wrapper:processResources UP-TO-DATE
:wrapper:classes UP-TO-DATE
:wrapper:jar UP-TO-DATE
:plugins:compileJava UP-TO-DATE
:plugins:compileGroovy UP-TO-DATE
:plugins:processResources UP-TO-DATE
:wrapper:executableJar UP-TO-DATE
:plugins:wrapperJar UP-TO-DATE
:plugins:classes UP-TO-DATE
:plugins:jar UP-TO-DATE
:announce:compileJava UP-TO-DATE
:announce:compileGroovy UP-TO-DATE
:announce:processResources UP-TO-DATE
:announce:classes UP-TO-DATE
:announce:jar UP-TO-DATE
:announce:assemble UP-TO-DATE
:internalTesting:classpathManifest UP-TO-DATE
:internalTesting:compileJava UP-TO-DATE
:internalTesting:compileGroovy UP-TO-DATE
:internalTesting:processResources UP-TO-DATE
:internalTesting:classes UP-TO-DATE
:internalTesting:jar UP-TO-DATE
:core:compileTestFixturesJava UP-TO-DATE
:core:compileTestFixturesGroovy UP-TO-DATE
:core:processTestFixturesResources UP-TO-DATE
:core:testFixturesClasses UP-TO-DATE
:announce:compileTestJava UP-TO-DATE
:announce:compileTestGroovy UP-TO-DATE
:announce:processTestResources UP-TO-DATE
:announce:testClasses UP-TO-DATE
:coreImpl:classpathManifest UP-TO-DATE
:coreImpl:jarjar-maven-settings-3.0.4.jar UP-TO-DATE
:coreImpl:jarjar-maven-settings-builder-3.0.4.jar UP-TO-DATE
:coreImpl:jarjar-plexus-cipher-1.4.jar UP-TO-DATE
:coreImpl:jarjar-plexus-component-annotations-1.5.5.jar UP-TO-DATE
:coreImpl:jarjar-plexus-interpolation-1.14.jar UP-TO-DATE
:coreImpl:jarjar-plexus-sec-dispatcher-1.3.jar UP-TO-DATE
:coreImpl:jarjar-plexus-utils-2.0.6.jar UP-TO-DATE
:coreImpl:compileJava UP-TO-DATE
:coreImpl:compileGroovy UP-TO-DATE
:coreImpl:processResources UP-TO-DATE
:coreImpl:classes UP-TO-DATE
:coreImpl:jar UP-TO-DATE
:internalIntegTesting:classpathManifest UP-TO-DATE
:launcher:classpathManifest UP-TO-DATE
:openApi:classpathManifest UP-TO-DATE
:openApi:compileJava UP-TO-DATE
:openApi:compileGroovy UP-TO-DATE
:openApi:processResources UP-TO-DATE
:openApi:classes UP-TO-DATE
:openApi:jar UP-TO-DATE
:toolingApi:classpathManifest UP-TO-DATE
:toolingApi:compileJava UP-TO-DATE
:toolingApi:compileGroovy UP-TO-DATE
:toolingApi:processResources UP-TO-DATE
:toolingApi:classes UP-TO-DATE
:toolingApi:jar UP-TO-DATE
:ui:classpathManifest UP-TO-DATE
:ui:compileJava UP-TO-DATE
:ui:compileGroovy UP-TO-DATE
:ui:processResources UP-TO-DATE
:ui:classes UP-TO-DATE
:ui:jar UP-TO-DATE
:launcher:compileJava UP-TO-DATE
:launcher:compileGroovy UP-TO-DATE
:launcher:processResources UP-TO-DATE
:launcher:classes UP-TO-DATE
:launcher:jar UP-TO-DATE
:internalIntegTesting:compileJava UP-TO-DATE
:internalIntegTesting:compileGroovy UP-TO-DATE
:internalIntegTesting:prepareVersionsInfo
:internalIntegTesting:processResources UP-TO-DATE
:internalIntegTesting:classes
:internalIntegTesting:jar UP-TO-DATE
:announce:compileIntegTestJava UP-TO-DATE
:announce:compileIntegTestGroovy UP-TO-DATE
:announce:processIntegTestResources UP-TO-DATE
:announce:integTestClasses UP-TO-DATE
:announce:checkstyleIntegTest UP-TO-DATE
:announce:checkstyleMain UP-TO-DATE
:announce:checkstyleTest UP-TO-DATE
:announce:codenarcIntegTest UP-TO-DATE
:announce:codenarcMain UP-TO-DATE
:announce:codenarcTest UP-TO-DATE
:antlr:classpathManifest UP-TO-DATE
:antlr:compileJava UP-TO-DATE
:antlr:compileGroovy UP-TO-DATE
:antlr:processResources UP-TO-DATE
:antlr:classes UP-TO-DATE
:antlr:jar UP-TO-DATE
:buildComparison:classpathManifest UP-TO-DATE
:ear:classpathManifest UP-TO-DATE
:ear:compileJava UP-TO-DATE
:ear:compileGroovy UP-TO-DATE
:ear:processResources UP-TO-DATE
:ear:classes UP-TO-DATE
:ear:jar UP-TO-DATE
:ide:classpathManifest UP-TO-DATE
:scala:classpathManifest UP-TO-DATE
:scala:compileJava UP-TO-DATE
:scala:compileGroovy UP-TO-DATE
:scala:processResources UP-TO-DATE
:scala:classes UP-TO-DATE
:scala:jar UP-TO-DATE
:ide:compileJava UP-TO-DATE
:ide:compileGroovy UP-TO-DATE
:ide:processResources UP-TO-DATE
:ide:classes UP-TO-DATE
:ide:jar UP-TO-DATE
:buildComparison:compileJava UP-TO-DATE
:buildComparison:compileGroovy UP-TO-DATE
:docs:configureCss
:docs:css UP-TO-DATE
:buildComparison:processResources UP-TO-DATE
:buildComparison:classes UP-TO-DATE
:buildComparison:jar UP-TO-DATE
:codeQuality:classpathManifest UP-TO-DATE
:codeQuality:compileJava UP-TO-DATE
:codeQuality:compileGroovy UP-TO-DATE
:codeQuality:processResources UP-TO-DATE
:codeQuality:classes UP-TO-DATE
:codeQuality:jar UP-TO-DATE
:cpp:classpathManifest UP-TO-DATE
:cpp:compileJava UP-TO-DATE
:cpp:compileGroovy UP-TO-DATE
:cpp:processResources UP-TO-DATE
:cpp:classes UP-TO-DATE
:cpp:jar UP-TO-DATE
:docs:dslMetaData UP-TO-DATE
:docs:dslDocbook UP-TO-DATE
:docs:samples UP-TO-DATE
:docs:userguideStyleSheets UP-TO-DATE
:docs:userguideFragmentSrc UP-TO-DATE
:docs:distDocs UP-TO-DATE
:javascript:classpathManifest UP-TO-DATE
:javascript:compileJava UP-TO-DATE
:javascript:compileGroovy UP-TO-DATE
:javascript:processResources UP-TO-DATE
:javascript:classes UP-TO-DATE
:javascript:jar UP-TO-DATE
:jetty:classpathManifest UP-TO-DATE
:jetty:compileJava UP-TO-DATE
:jetty:compileGroovy UP-TO-DATE
:jetty:processResources UP-TO-DATE
:jetty:classes UP-TO-DATE
:jetty:jar UP-TO-DATE
:launcher:startScripts UP-TO-DATE
:maven:classpathManifest UP-TO-DATE
:maven:compileJava UP-TO-DATE
:maven:compileGroovy UP-TO-DATE
:maven:processResources UP-TO-DATE
:maven:classes UP-TO-DATE
:maven:jar UP-TO-DATE
:osgi:classpathManifest UP-TO-DATE
:osgi:compileJava UP-TO-DATE
:osgi:compileGroovy UP-TO-DATE
:osgi:processResources UP-TO-DATE
:osgi:classes UP-TO-DATE
:osgi:jar UP-TO-DATE
:signing:classpathManifest UP-TO-DATE
:signing:compileJava UP-TO-DATE
:signing:compileGroovy UP-TO-DATE
:signing:processResources UP-TO-DATE
:signing:classes UP-TO-DATE
:signing:jar UP-TO-DATE
:sonar:classpathManifest UP-TO-DATE
:sonar:compileJava UP-TO-DATE
:sonar:compileGroovy UP-TO-DATE
:sonar:processResources UP-TO-DATE
:sonar:classes UP-TO-DATE
:sonar:jar UP-TO-DATE
:intTestImage UP-TO-DATE
:announce:configureIntegTest
:announce:integTest UP-TO-DATE
:announce:test UP-TO-DATE
:docs:checkstyleApi UP-TO-DATE
:announce:check UP-TO-DATE
:announce:build UP-TO-DATE
:antlr:assemble UP-TO-DATE
:antlr:checkstyleMain UP-TO-DATE
:antlr:compileTestJava UP-TO-DATE
:antlr:compileTestGroovy UP-TO-DATE
:antlr:processTestResources UP-TO-DATE
:antlr:testClasses UP-TO-DATE
:antlr:checkstyleTest UP-TO-DATE
:antlr:codenarcMain UP-TO-DATE
:antlr:codenarcTest UP-TO-DATE
:antlr:test UP-TO-DATE
:antlr:check UP-TO-DATE
:antlr:build UP-TO-DATE
:baseServices:generatePom
:baseServices:assemble
:baseServices:checkstyleMain UP-TO-DATE
:baseServices:compileTestJava UP-TO-DATE
:baseServices:compileTestGroovy UP-TO-DATE
:baseServices:processTestResources UP-TO-DATE
:baseServices:testClasses UP-TO-DATE
:baseServices:checkstyleTest UP-TO-DATE
:baseServices:classycleMain UP-TO-DATE
:baseServices:classycleTest UP-TO-DATE
:baseServices:codenarcMain UP-TO-DATE
:baseServices:codenarcTest UP-TO-DATE
:baseServices:test UP-TO-DATE
:baseServices:check UP-TO-DATE
:baseServices:build
:buildComparison:assemble UP-TO-DATE
:buildComparison:compileTestFixturesJava UP-TO-DATE
:buildComparison:compileTestFixturesGroovy UP-TO-DATE
:buildComparison:processTestFixturesResources UP-TO-DATE
:buildComparison:testFixturesClasses UP-TO-DATE
:buildComparison:compileTestJava UP-TO-DATE
:buildComparison:compileTestGroovy UP-TO-DATE
:buildComparison:processTestResources UP-TO-DATE
:buildComparison:testClasses UP-TO-DATE
:buildComparison:compileIntegTestJava UP-TO-DATE
:buildComparison:compileIntegTestGroovy UP-TO-DATE
:buildComparison:processIntegTestResources UP-TO-DATE
:buildComparison:integTestClasses UP-TO-DATE
:buildComparison:checkstyleIntegTest UP-TO-DATE
:buildComparison:checkstyleMain UP-TO-DATE
:buildComparison:checkstyleTest UP-TO-DATE
:buildComparison:checkstyleTestFixtures UP-TO-DATE
:buildComparison:codenarcIntegTest UP-TO-DATE
:buildComparison:codenarcMain UP-TO-DATE
:buildComparison:codenarcTest UP-TO-DATE
:buildComparison:codenarcTestFixtures UP-TO-DATE
:buildComparison:configureIntegTest
:buildComparison:integTest
  org.gradle.api.plugins.buildcomparison.gradle.Pre12CompareGradleBuildsCrossVersionSpec > can compare identical builds with source pre 1.2 [1.1] FAILED
    org.gradle.integtests.fixtures.UnexpectedBuildFailure at Pre12CompareGradleBuildsCrossVersionSpec.groovy:129
  org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec > compareArchives FAILED
    java.lang.AssertionError at GradleBuildComparisonIntegrationSpec.groovy:84
  org.gradle.api.plugins.buildcomparison.gradle.Pre12CompareGradleBuildsCrossVersionSpec > can compare different builds with source pre 1.2 [1.1] FAILED
    java.lang.AssertionError at Pre12CompareGradleBuildsCrossVersionSpec.groovy:149
  org.gradle.api.plugins.buildcomparison.gradle.Pre12CompareGradleBuildsCrossVersionSpec > can compare different builds with target pre 1.2 [1.1] FAILED
    java.lang.AssertionError at Pre12CompareGradleBuildsCrossVersionSpec.groovy:149
  org.gradle.api.plugins.buildcomparison.gradle.Pre12CompareGradleBuildsCrossVersionSpec > can compare identical builds with target pre 1.2 [1.1] FAILED
    org.gradle.integtests.fixtures.UnexpectedBuildFailure at Pre12CompareGradleBuildsCrossVersionSpec.groovy:129
  org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec > can handle artifact not existing on source side FAILED
    java.io.FileNotFoundException at GradleBuildComparisonIntegrationSpec.groovy:248
  org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec > can handle artifact not existing on target side FAILED
    java.io.FileNotFoundException at GradleBuildComparisonIntegrationSpec.groovy:248
  org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec > can ignore errors FAILED
    org.gradle.integtests.fixtures.UnexpectedBuildFailure at GradleBuildComparisonIntegrationSpec.groovy:185
  org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec > compare same project FAILED
    org.gradle.integtests.fixtures.UnexpectedBuildFailure at GradleBuildComparisonIntegrationSpec.groovy:96
  org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec > compare project with unknown outcomes FAILED
    java.lang.AssertionError at GradleBuildComparisonIntegrationSpec.groovy:84
  15 tests completed, 10 failed
:buildComparison:integTest FAILED
  FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':buildComparison:integTest'.
> There were failing tests. See the report at: file:///E:/Work/gradle/subprojects/build-comparison/build/reports/integTest/index.html
  * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  BUILD FAILED
  Total time: 13 mins 52.594 secs

(north_wind) #4

Ok, this is common log message, that I have in test report (tell me if it is not enough):

compareArchives

java.lang.AssertionError: No matching cause found in '
FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':compareGradleBuilds'.
> Could not fetch model of type 'ProjectOutcomes' using Gradle installation 'E:\Work\gradle\build\integ test'.
  * Try:
Run with --info or --debug option to get more log output.
  * Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compareGradleBuilds'.
 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:68)
 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
 at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
 at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.run(CacheLockHandlingTaskExecuter.java:34)
 at org.gradle.cache.internal.DefaultCacheAccess$3.create(DefaultCacheAccess.java:243)
 at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:188)
 at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:241)
 at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:137)
 at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)
 at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.execute(CacheLockHandlingTaskExecuter.java:32)
 at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
 at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
 at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
 at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
 at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
 at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
 at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:247)
 at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:52)
 at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:38)
 at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:30)
 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:83)
 at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
 at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
 at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
 at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
 at org.gradle.cache.internal.DefaultCacheAccess$2.create(DefaultCacheAccess.java:118)
 at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:133)
 at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:116)
 at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:129)
 at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
 at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
 at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
 at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
 at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
 at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
 at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
 at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
 at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
 at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
 at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)
 at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
 at org.gradle.launcher.cli.ActionAdapter.execute(ActionAdapter.java:30)
 at org.gradle.launcher.cli.ActionAdapter.execute(ActionAdapter.java:22)
 at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:200)
 at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:173)
 at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
 at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:138)
 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
 at org.gradle.launcher.Main.doAction(Main.java:48)
 at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
 at org.gradle.launcher.Main.main(Main.java:39)
 at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
 at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
 at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'ProjectOutcomes' using Gradle installation 'E:\Work\gradle\build\integ test'.
 at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55)
 at org.gradle.tooling.internal.consumer.async.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:71)
 at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
Caused by: org.gradle.internal.nativeplatform.NativeIntegrationException: Could not set environment variable 'PATH'. errno: 203
 at org.gradle.internal.nativeplatform.jna.WindowsProcessEnvironment.setNativeEnvironmentVariable(WindowsProcessEnvironment.java:33)
 at org.gradle.internal.nativeplatform.jna.WindowsProcessEnvironment.removeNativeEnvironmentVariable(WindowsProcessEnvironment.java:38)
 at org.gradle.internal.nativeplatform.jna.AbstractProcessEnvironment.removeEnvironmentVariable(AbstractProcessEnvironment.java:43)
 at org.gradle.internal.nativeplatform.jna.AbstractProcessEnvironment.maybeSetEnvironment(AbstractProcessEnvironment.java:34)
 at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:56)
 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
 at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:45)
 at org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(DaemonStateCoordinator.java:185)
 at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOrRespondWithBusy.java:49)
 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
 at org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
 at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndForwardDaemonFailure.java:32)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
 at org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(DefaultDaemonCommandExecuter.java:52)
 at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.handleCommand(DefaultIncomingConnectionHandler.java:142)
 at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.run(DefaultIncomingConnectionHandler.java:116)
 ... 1 more
  '
 at org.junit.Assert.fail(Assert.java:93)
 at org.gradle.integtests.fixtures.OutputScrapingExecutionFailure.assertThatCause(OutputScrapingExecutionFailure.java:73)
 at org.gradle.integtests.fixtures.OutputScrapingExecutionFailure.assertHasCause(OutputScrapingExecutionFailure.java:48)
 at org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec.failedBecauseNotIdentical(GradleBuildComparisonIntegrationSpec.groovy:84)
 at org.spockframework.util.GroovyRuntimeUtil.invokeMethod(GroovyRuntimeUtil.java:100)
 at org.gradle.api.plugins.buildcomparison.gradle.GradleBuildComparisonIntegrationSpec.compareArchives(GradleBuildComparisonIntegrationSpec.groovy:59)

(north_wind) #5

I see exception is raised from string in WindowsProcessEnvironment.java

boolean retval = kernel32.SetEnvironmentVariable(name, value == null ? null : value);

and errno 203 - ERROR_ENVVAR_NOT_FOUND

P.S.: I have Windows XP Professional SP3. I try to build in Windows 7


(Luke Daley) #6

Thanks for the extra info. We are looking into it.


(Luke Daley) #7

I’ve found the problem and raised as GRADLE-2461. For the meantime, you’ll have to build with Windows 7.


(north_wind) #8

Ok, in Windows 7 GradleBuildComparisonIntegrationSpec tests errors is gone (:build-comparison:integTest), but Pre12CompareGradleBuildsCrossVersionSpec tests fail because of proxy. I create new thread: http://forums.gradle.org/gradle/topics/gradle_building_is_failed_because_of_proxy