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

Add Truffleruby support #1612

Merged
merged 5 commits into from
Feb 8, 2022
Merged

Add Truffleruby support #1612

merged 5 commits into from
Feb 8, 2022

Conversation

gogainda
Copy link
Contributor

@gogainda gogainda commented Feb 1, 2022

Add Truffleruby support to CI
Extract Rubocop linting into separate workflow

@quine-bot
Copy link

quine-bot bot commented Feb 1, 2022

👋 Figuring out if a PR is useful is hard, hopefully this will help.

  • @gogainda has been on GitHub since 2010 and in that time has had 107 public PRs merged
  • Don't you recognize them? They've been here before 🎉
  • Here's a good example of their work: fast-truffleruby (:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.)
  • From looking at their profile, they seem to be good with Ruby and Makefile.

Their most recently public accepted PR is: digital-fabric/extralite#5

@gogainda gogainda mentioned this pull request Feb 1, 2022
@aurelien-reeves
Copy link
Contributor

Out of curiosity: why did you extract rubocop from the default rake tasks?

I think it is a good idea indeed. But will that have any impact on the Truffleruby support?

@gogainda
Copy link
Contributor Author

gogainda commented Feb 1, 2022

The main reason is that currently we have memory issue with GithubActions and I noticed that running tests together with rubocop fails the pipeline, which is currently the team is investigating, but I didn't want to block this PR with that
Regarding the Truffleruby support, if pipeline is failing and others no please create an issue in the Truffleruby repository and the team will help with that

@gogainda
Copy link
Contributor Author

gogainda commented Feb 1, 2022

another example of the memory related issue what team is currently investigating: oracle/truffleruby#2591

@aurelien-reeves
Copy link
Contributor

Thanks for the explanation 👍

Add Truffleruby support to CI
@gogainda
Copy link
Contributor Author

gogainda commented Feb 7, 2022

@aslakhellesoy @aurelien-reeves is there anything else I can do here?

Rakefile Show resolved Hide resolved
@aurelien-reeves
Copy link
Contributor

@aslakhellesoy @aurelien-reeves is there anything else I can do here?

Looks pretty good actually, thank you for your contribution.

Would you have the possibility to update the README to add truffleruby in the supported platforms? And the CHANGELOG too?

@gogainda
Copy link
Contributor Author

gogainda commented Feb 7, 2022

@aurelien-reeves done

@eregon
Copy link

eregon commented Feb 7, 2022

oO I missed that truffleruby is passing all cucumber tests now, that's great :)

CHANGELOG.md Outdated Show resolved Hide resolved
@gogainda
Copy link
Contributor Author

gogainda commented Feb 7, 2022

@eregon thanks for the review!

@aurelien-reeves aurelien-reeves merged commit 3ebc762 into cucumber:main Feb 8, 2022
@aslakhellesoy
Copy link
Contributor

Hi @gogainda,

Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾

In return for this generous offer we hope you will:

  • ✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
  • 💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
  • 💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
  • ℹ️ Don't feel obliged to help, just do what you can if you have the time and the energy.
  • 🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber

@aurelien-reeves
Copy link
Contributor

@gogainda the truffleruby build is failing since a few days: https://github.com/cucumber/cucumber-ruby/actions
Is this due to some updates on "your" side? Is this related to memory consumption? Could you investigate?

@eregon
Copy link

eregon commented May 10, 2022

The error is:

 rake cucumber
Running examples/sinatra
/home/runner/.rubies/truffleruby-head/bin/truffleruby -I "lib" "/home/runner/work/cucumber-ruby/cucumber-ruby/bin/cucumber" --format pretty
Feature: Addition
  In order to avoid silly mistakes
  As a math idiot 
  I want to be told the sum of two numbers

  Scenario: Add two numbers           # features/add.feature:6
    Given I visit the calculator page # features/step_definitions/add_steps.rb:1
      TruffleRuby doesn't have a case for the org.truffleruby.language.objects.IsImmutableObjectNodeGen node with values of type com.oracle.truffle.llvm.runtime.except.LLVMPolyglotException
      	from org.truffleruby.language.objects.IsImmutableObjectNodeGen.executeAndSpecialize(IsImmutableObjectNodeGen.java:117)
      	from org.truffleruby.language.objects.IsImmutableObjectNodeGen.execute(IsImmutableObjectNodeGen.java:59)
      	from org.truffleruby.core.kernel.KernelNodes$DupNode.dup(KernelNodes.java:685)
      	from org.truffleruby.core.kernel.KernelNodesFactory$DupNodeFactory$DupNodeGen.executeAndSpecialize(KernelNodesFactory.java:2232)
      	from org.truffleruby.core.kernel.KernelNodesFactory$DupNodeFactory$DupNodeGen.execute(KernelNodesFactory.java:2213)
      	from org.truffleruby.language.methods.CallInternalMethodNode.alwaysInlined(CallInternalMethodNode.java:114)
      	from org.truffleruby.language.methods.CallInternalMethodNodeGen.executeAndSpecialize(CallInternalMethodNodeGen.java:199)
      	from org.truffleruby.language.methods.CallInternalMethodNodeGen.execute(CallInternalMethodNodeGen.java:87)
      	from org.truffleruby.language.dispatch.DispatchNode.dispatch(DispatchNode.java:308)
      	from org.truffleruby.language.dispatch.RubyCallNode.doCall(RubyCallNode.java:152)
      	from org.truffleruby.language.dispatch.RubyCallNode.execute(RubyCallNode.java:109)
      	from org.truffleruby.language.dispatch.RubyCallNode.executeArguments(RubyCallNode.java:185)
      	from org.truffleruby.language.dispatch.RubyCallNode.execute(RubyCallNode.java:98)
      	from org.truffleruby.language.dispatch.RubyCallNode.execute(RubyCallNode.java:89)
      	from org.truffleruby.language.dispatch.RubyCallNode.executeArguments(RubyCallNode.java:185)
      	from org.truffleruby.language.dispatch.RubyCallNode.execute(RubyCallNode.java:98)
      	from org.truffleruby.language.control.SequenceNode.execute(SequenceNode.java:37)
      	from org.truffleruby.language.RubyMethodRootNode.execute(RubyMethodRootNode.java:65) (TypeError)

I'll take a look (cc @bjfish).

@eregon
Copy link

eregon commented May 10, 2022

This seems already fixed, I think we just need to wait the next run.

@aurelien-reeves
Copy link
Contributor

Thanks @eregon :)

@eregon
Copy link

eregon commented May 11, 2022

@aurelien-reeves
Copy link
Contributor

Great, thanks again @eregon

Regarding truffleruby, it seems that at the moment, the CI is based on the development head.
Are there version stable enough to run the CI on for it to be more consistent?

@eregon
Copy link

eregon commented May 11, 2022

Yes, feel free to try truffleruby instead/additionally which uses the latest release.

Testing against truffleruby-head is helpful for the TruffleRuby team (and we monitor such failures via https://github.com/eregon/truffleruby-gem-tracker/, we noticed it just a bit after the ping), but we also understand if you want more stability.

Testing both also makes sense, then it's easy to differentiate if some change in cucumber/deps broke on TruffleRuby in general or if it's due to some change in truffleruby-head.

@aurelien-reeves
Copy link
Contributor

Yes, feel free to try truffleruby instead/additionally which uses the latest release.

Testing against truffleruby-head is helpful for the TruffleRuby team (and we monitor such failures via https://github.com/eregon/truffleruby-gem-tracker/, we noticed it just a bit after the ping), but we also understand if you want more stability.

Testing both also makes sense, then it's easy to differentiate if some change in cucumber/deps broke on TruffleRuby in general or if it's due to some change in truffleruby-head.

Noted! Thanks for the info! :)
We'll see what we could do

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.

5 participants