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

For discussion: be explicit about JRuby opts #115

Merged
merged 3 commits into from
Feb 9, 2015

Conversation

bf4
Copy link
Contributor

@bf4 bf4 commented Feb 9, 2015

This is really only an issue on JRUBY-HEAD where
cext.enabled property no longer exists.

https://travis-ci.org/rspec/rspec-core/jobs/50010459#L166

@myronmarston
Copy link
Member

Thanks. I used the travis:create_pr_with_updates task to create a PR in each repo with these updates.

export JRUBY_OPTS="${JRUBY_OPTS} -X-C" # disable JIT since these processes are so short lived
# If JRUBY_OPTS isn't set, use these.
# see http://docs.travis-ci.com/user/ci-environment/
export JRUBY_OPTS=${JRUBY_OPTS:---server -Xcompile.invokedynamic=false"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that you're change here is invalid bash, as the PRs I opened with your changes are all failing with a syntax error:

script/functions.sh: line 90: syntax error near unexpected token `)'

Any ideas how your change could have caused that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a "

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JonRowe That is deeply embarrassing. Reminds me of the calculus exam I near got 100% on, but, on one of the questions, after solving some integrals, summed 1 and -1 to get 2, or something ridiculous like that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine we all do it especially when we're not running the thing we're changing directly. The amount of times I commit 1.9 hash syntax into our specs then wonder why the build breaks ;)

@myronmarston
Copy link
Member

OK, force pushed updates to all the PRs for all repos.

BTW, thanks for looking into this. I had noticed the jruby warnings but wasn't sure how to fix them!

@bf4
Copy link
Contributor Author

bf4 commented Feb 9, 2015

@myronmarston I had thought Travis was fixing the JRuby-head build cext.enabled warnings, but turns out that was something else. One of us will have to check if there's an open issue for this. cc @headius @enebo fwiw

@myronmarston
Copy link
Member

Thanks, @bf4. The rspec-mocks build passes on JRuby head now!

https://travis-ci.org/rspec/rspec-mocks/jobs/50015531

myronmarston added a commit that referenced this pull request Feb 9, 2015
For discussion: be explicit about JRuby opts
@myronmarston myronmarston merged commit ee5a22e into rspec:master Feb 9, 2015
@bf4 bf4 deleted the working_jruby_opts branch March 3, 2015 02:58
bf4 added a commit to troessner/reek that referenced this pull request Jun 21, 2015
See https://travis-ci.org/troessner/reek/jobs/67756300#L297-L307

This is really only an issue on JRUBY-HEAD where cext.enabled property no longer exists.

```ruby
expected: ""
     got: "jruby: warning: unknown property jruby.cext.enabled\njruby: warning: unknown property jruby.cext.enabled\njruby: warning: unknown property jruby.cext.enabled\njruby: warning: unknown property jruby.cext.enabled\n"
(compared using ==)
Diff:
@@ -1 +1,5 @@
+jruby: warning: unknown property jruby.cext.enabled
+jruby: warning: unknown property jruby.cext.enabled
+jruby: warning: unknown property jruby.cext.enabled
+jruby: warning: unknown property jruby.cext.enabled
 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/reek_steps.rb:58:in `/^it reports no errors$/'
features/configuration_loading.feature:29:in `Then it reports no errors'
```

ref: rspec/rspec-dev#115

```ru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants