opensearch-build: [Bug]: Cannot release opensearch-ruby 3.2.0 because of Jenkins
Describe the bug
The release of Ruby 3.2.0 was first triggered in Feb 2024 and failed with the following error:
/var/jenkins/workspace/opensearch-ruby-gems-release@tmp/durable-aa0447d1/script.sh: line 3: /usr/share/opensearch/.rvm/scripts/rvm: No such file or directory
ERROR: Error installing opensearch-ruby-3.2.0.gem:
The last version of faraday-net_http (>= 2.0, < 3.2) to support your Ruby & RubyGems was 3.0.2. Try installing it with `gem install faraday-net_http -v 3.0.2` and then running the current command again
faraday-net_http requires Ruby version >= 3.0.0. The current ruby version is 2.6.0.0.
Successfully installed multi_json-1.15.0
Successfully installed uri-0.13.0
Successfully installed net-http-0.4.1
Gem 'opensearch-ruby' is not installed
WARNING: faraday-net_http-3.1.0 is not signed
ERROR: Error installing opensearch-ruby-3.2.0.gem:
The last version of faraday-net_http (>= 2.0, < 3.2) to support your Ruby & RubyGems was 3.0.2. Try installing it with `gem install faraday-net_http -v 3.0.2` and then running the current command again
faraday-net_http requires Ruby version >= 3.0.0. The current ruby version is 2.6.0.0.
Gem 'opensearch-ruby' is not installed
We tried to upgrade the rubyVersion of Jenkins to 3.0.6 but Jenkins still failed with the exact error.
We notice in the error message that RVM could not pick up the correct Ruby version:
/var/jenkins/workspace/opensearch-ruby-gems-release@tmp/durable-aa0447d1/script.sh: line 3: /usr/share/opensearch/.rvm/scripts/rvm: No such file or director
To reproduce
Build and install the gem with Ruby 2.6
https://github.com/opensearch-project/opensearch-ruby/issues/238#issuecomment-2048228954
Additional context
Check out the discussion on the Ruby client repo.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (13 by maintainers)
It is released: https://build.ci.opensearch.org/job/opensearch-ruby-gems-release/35/console
Closing it as the issue is resolved now!
I have openend PR https://github.com/opensearch-project/opensearch-build-libraries/pull/413 for the above issue.
And our theory is right. Ruby version needs to be switched before the cert is added. Did not think that would make a difference
Will create a PR to fix this.
The above PR merged and will have the image available in 5 hours or so due to the complexity of this image.
We can try to release next week.
Thanks.
Hi @nhtruong please confirm if ruby version 3.1.2 is good for you. I try to build opensearch-rb main branch with that and it seems fine.
Thanks.
Able to build: