Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.6 regresses existing JRubyExec tasks #77

Closed
rtyler opened this issue Nov 12, 2014 · 2 comments
Closed

0.1.6 regresses existing JRubyExec tasks #77

rtyler opened this issue Nov 12, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@rtyler
Copy link
Member

rtyler commented Nov 12, 2014

For blick I use JRubyExec to invoke RSpec, which fails after upgrading from 0.1.5 to 0.1.6:

On jruby-gradle 0.1.6

[22:19:31] tyler:blick git:(master*) $ ./gradlew spec --stacktrace
:spec FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':spec'.
> No value has been specified for property 'gemWorkDir'.

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

* Exception is:
org.gradle.api.tasks.TaskValidationException: A problem was found with the configuration of task ':spec'.
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
    at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    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:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: org.gradle.api.InvalidUserDataException: No value has been specified for property 'gemWorkDir'.
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:47)
    ... 43 more


BUILD FAILED

Total time: 8.655 secs
[22:20:00] tyler:blick git:(master*) $ 

On jruby-gradle 0.1.5

[22:22:28] tyler:blick git:(master*) $ ./gradlew spec --stacktrace
:spec

Blick::Agent::Scheduler
  #prepare_tasks
    should fill out the tasks         

Blick::Agent::Observers::Heartbeat
  behaves like an Observer
    instance methods
      should respond to #prepare         
      should respond to #execute         
      should respond to #cleanup         
    class methods
      should respond to #enabled?         
      .platforms
        should be an instance of Array         
      .description
        should be an instance of String         
      .interval
        should be > 0         
        should be an instance of Fixnum         
      .name
        should be an instance of String         
  class methods
    should be enabled         
  instance methods
    #enabled_observers
      should include the Heartbeat         
      should be an instance of Array         
    #execute
      should emit a heartbeat         

Blick::Transport::Base
  behaves like a transport class
    should respond to #emit         
    should respond to #title         

Blick::Events
  .header
    should be an instance of Blick::Events::Header         
  .hostname
    should cache Socket.gethostname         
    should call Socket.gethostname         

Blick::Emitter
  .emit
Emitting #<RSpec::Mocks::Double:0x7dc @name="Mock Protobuf::Message">
    should equal true         

Blick::Transport::Noop
  behaves like a transport class
    should respond to #emit         
    should respond to #title         

Blick::Transport::Stdout
  title
    should eql "Standard Out"         
  behaves like a transport class
    should respond to #emit         
    should respond to #title         

Blick::Agent::Observers::Noop
  behaves like an Observer
    instance methods
      should respond to #prepare         
      should respond to #execute         
      should respond to #cleanup         
    class methods
      should respond to #enabled?         
      .platforms
        should be an instance of Array         
      .description
        should be an instance of String         
      .interval
        should be > 0         
        should be an instance of Fixnum         
      .name
        should be an instance of String         

Blick::Agent::Observer
  .registry
    should be an instance of Array         

Blick::Agent::Observers::RubyRuntime
  instance methods
    #execute
      should emit         
  behaves like an Observer
    instance methods
      should respond to #prepare         
      should respond to #execute         
      should respond to #cleanup         
    class methods
      should respond to #enabled?         
      .platforms
        should be an instance of Array         
      .description
        should be an instance of String         
      .interval
        should be > 0         
        should be an instance of Fixnum         
      .name
        should be an instance of String         

Finished in 0.585 seconds (files took 6.15 seconds to load)
45 examples, 0 failures

Randomized with seed 44784


BUILD SUCCESSFUL

Total time: 28.154 secs
[22:22:58] tyler:blick git:(master*) $ 

@rtyler rtyler added the bug label Nov 12, 2014
@rtyler rtyler added this to the 0.1.7 milestone Nov 12, 2014
@ysb33r ysb33r closed this as completed in 4876ea0 Nov 12, 2014
@rtyler rtyler modified the milestones: 0.1.8, 0.1.7 Nov 12, 2014
@rtyler
Copy link
Member Author

rtyler commented Nov 12, 2014

This was not fixed with the release of 0.1.7, I'm going to revert the gemWorkDir changes and get a new release out in 0.1.8 :(

@rtyler rtyler reopened this Nov 12, 2014
@rtyler
Copy link
Member Author

rtyler commented Nov 12, 2014

The code currently in master reverts this

@rtyler rtyler closed this as completed Nov 12, 2014
@ysb33r ysb33r modified the milestones: 0.1.9, 0.1.8 Nov 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants