puma: ARM JRuby - consistent failures
Describe the bug
I thought I’d check if JRuby CI would run on the GitHub Actions arm64 macOS runners. Consistent failures as below:
GHA job: macos-14 jruby
jruby 9.4.8.0 (3.1.4) 2024-07-02 4d41e55a67 OpenJDK 64-Bit Server VM 21.0.4+7-LTS on 21.0.4+7-LTS +jit [arm64-darwin]
SyntaxError: /Users/runner/.rubies/jruby-9.4.8.0/bin/jruby:1: invalid multibyte char (UTF-8)
GHA job: macos-14 jruby-head
jruby 9.4.9.0-SNAPSHOT (3.1.4) 2024-08-12 52b51d5bb8 OpenJDK 64-Bit Server VM 21.0.4+7-LTS on 21.0.4+7-LTS +jit [arm64-darwin]
SyntaxError: /Users/runner/.rubies/jruby-head/bin/jruby:8: syntax error, unexpected local variable or method
if command -v local >/dev/null; then
^~~~~
Anyone have any idea what the issue is? Both tests involve restarting Puma.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (20 by maintainers)
Commits related to this issue
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby See https://github.com/puma/puma/issues/3446 — committed to MSP-Greg/puma by MSP-Greg 2 years ago
- Fixup jruby_restart.rb & launcher.rb to work with ARM64 macOS JRuby (#3467) See https://github.com/puma/puma/issues/3446 — committed to puma/puma by MSP-Greg 2 years ago
A minimal patch to get the restart working correctly for now:
This continues to use the native
chdirbut then falls back on normalKernel.execlike the other paths.The fact that it works on x86_64 does concern me, and it may indicate a bug in FFI handling varargs calls on MacOS aarch64.