psych icon indicating copy to clipboard operation
psych copied to clipboard

Errno::ENOENT: No such file or directory for snakeyaml on jruby-head

Open sl0thentr0py opened this issue 1 year ago • 11 comments

Our CI on sentry-ruby is failing because of this snakeyaml error:

Errno::ENOENT: No such file or directory - /home/runner/.m2/repository/org/snakeyaml/snakeyaml-engine/2.7/snakeyaml-engine-2.7.jar -- module org.snakeyaml.engine.v2

See our action logs here: https://github.com/getsentry/sentry-ruby/actions/runs/12278203115/job/34259414144?pr=2490#step:4:141

sl0thentr0py avatar Dec 11 '24 14:12 sl0thentr0py

@headius I'm not sure if you're aware of this issue, but right now this is breaking JRuby test suites for folks who applied the "pin jar-dependencies" fix from https://github.com/jruby/jruby/pull/8502 and https://github.com/jruby/jruby/issues/7262. See for example:

  • https://github.com/sparklemotion/mechanize/actions/runs/12427720237/job/34698022038
  • https://github.com/sparklemotion/nokogiri/actions/runs/12427722368/job/34698028585

in addition to the sentry-ruby log above.

flavorjones avatar Dec 20 '24 18:12 flavorjones

I'm thinking we might be able to safely yank the new jar-dependencies and re-release once JRuby 9.4.10.0 is out with the fix.

headius avatar Dec 20 '24 19:12 headius

All the problematic versions of jar-dependencies have been yanked. We will re-release after JRuby 9.4.10 is released with the activation fix.

headius avatar Jan 08 '25 18:01 headius

we are still seeing this after removing all the pins https://github.com/getsentry/sentry-ruby/actions/runs/13114633511/job/36586215743?pr=2536#step:4:145

the versions for this run are

jruby 9.4.11.0 (3.1.4) 2025-01-29 9b107851a3 OpenJDK 64-Bit Server VM 17.0.14+7 on 17.0.14+7 +jit [x86_64-linux]
Installing psych 5.2.3 (java)
Installing jar-dependencies 0.5.3

sl0thentr0py avatar Feb 03 '25 13:02 sl0thentr0py

Working on this today.

headius avatar Feb 06 '25 19:02 headius

I have released jar-dependencies 0.5.4, and I believe if you remove your pinned versions and install that gem, it should work properly for you. You can see some discussion and other workarounds in jruby/jruby#8606.

Please let me know if you can't get it to work, because I'm actively trying to chase down these last few bugs!

headius avatar Feb 07 '25 01:02 headius

@headius thanks for working on this, unfortunately it's still not bundling on our CI https://github.com/getsentry/sentry-ruby/actions/runs/13198501845/job/36845061899?pr=2550#step:4:80

solnic avatar Feb 07 '25 11:02 solnic

@solnic I provided several workarounds above, did you try them? All I see here is jar-dependencies being installed about halfway through bundling in parallel, which I pointed out above may not be early enough. Try moving it up in your dependencies, installing it before bundling, or using jruby-head.

headius avatar Feb 07 '25 11:02 headius

Also just released jar-dependencies 0.5.5 which cleans up the fix a bit.

headius avatar Feb 10 '25 18:02 headius

This issue is fixed for me with jruby 9.4.10, but comes back on with jruby 9.4.11.

https://github.com/Faveod/arel-extensions/actions/runs/13245454778/job/36972182865

stackmystack avatar Feb 11 '25 10:02 stackmystack

@stackmystack We will release 9.4.12.0 this week with a fixed jar-dependencies. See jruby/jruby#8606.

headius avatar Feb 11 '25 10:02 headius