psych icon indicating copy to clipboard operation
psych copied to clipboard

Experiments to fix JRuby CI

Open deivid-rodriguez opened this issue 4 years ago • 2 comments

This PR is just some experiment to proof that https://github.com/jruby/ruby-maven/pull/2 fixes:

  • Issue reported at https://github.com/ruby/psych/issues/479#issuecomment-785469484, where jruby tests fail to even get started in CI (bundle install fails).
  • https://github.com/ruby/psych/issues/520.
  • https://github.com/jruby/ruby-maven/issues/3.
  • https://github.com/rubygems/rubygems/issues/4685.

deivid-rodriguez avatar Oct 12 '21 15:10 deivid-rodriguez

This PR is just to proof that the changes work, but it should not be merged. Once https://github.com/jruby/ruby-maven/pull/2 is merged and released, things should start working without any changes.

deivid-rodriguez avatar Oct 12 '21 16:10 deivid-rodriguez

Alright so dependent PRs are moving forward, and this is now only missing a ruby-maven release.

However, the gem became uninstallable again on jruby after https://github.com/ruby/psych/pull/525, since gemified stringio does not yet support jruby (WIP for that is https://github.com/ruby/stringio/pull/21).

deivid-rodriguez avatar Nov 24 '21 11:11 deivid-rodriguez

This would be worth revisiting with latest SnakeYAML. On master, I now see 5F7E. Some of these may be valid differences (SnakeYAML appears to report line/column positioning a bit differently) but several appear to be fixable errors or bugs. We also addressed the stringio gemification for JRuby 9.4.

headius avatar Sep 19 '22 16:09 headius

@headius I completely lost context of this PR. I think the original issues I wanted to address are now fixed, but a few others remain. I changed the scope of this PR to:

  • Use Bundler to install dependencies and run tests.
  • Only skip the particular tests that are failing instead of ignoring the whole test run outcome. I think this should help preventing new regressions.

Let's see what CI says.

deivid-rodriguez avatar Sep 27 '22 12:09 deivid-rodriguez

Except for the specs that are marked as pending, everything is now green on JRuby, so I set this as ready for review.

deivid-rodriguez avatar Sep 27 '22 12:09 deivid-rodriguez

@deivid-rodriguez Very nice! Good idea to skip some tests that are problematic... some might not be fixable due to minor differences in SnakeYAML (positioning information etc).

@tenderlove Any objections to merging this PR? It marks a number of tests as pending, but I'm not sure they are fixable and it would be good to have a green-ish run so we can see when things regress.

headius avatar Sep 27 '22 15:09 headius

@deivid-rodriguez 👍 Thanks!

hsbt avatar Oct 07 '22 08:10 hsbt