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

[Bug]: Cannot release opensearch-ruby 3.2.0 because of publishToRubyGems RVM issues #410

Closed
Earlopain opened this issue Apr 11, 2024 · 0 comments · Fixed by #413
Closed
Labels
bug Something isn't working untriaged

Comments

@Earlopain
Copy link
Contributor

Describe the bug

Here's the action being run:

sh """#!/bin/bash
gem cert --add ${certPath}
source /usr/share/opensearch/.rvm/scripts/rvm && rvm use ${rubyVersion} && ruby --version
cd ${releaseArtifactsDir} && gemNameWithVersion=\$(ls *.gem)
gem install \$gemNameWithVersion
gemName=\$(echo \$gemNameWithVersion | sed -E 's/(-[0-9.]+-*[a-z]*.gem\$)//g')
gem uninstall \$gemName
gem install \$gemNameWithVersion -P MediumSecurity
gem uninstall \$gemName
gem install \$gemNameWithVersion -P HighSecurity
"""

Notice the absoulte path to RVM. In opensearch-project/opensearch-build@01613af the path where RVM gets installed to got changed, so this invocation doesn't work anymore. If $CONTAINER_USER_HOME is available in this script, that should be used instead.

This issue prevents opensearch-ruby from releasing a new version. Also see opensearch-project/opensearch-build#4624 and opensearch-project/opensearch-ruby#238.

Here is a successful pipeline: https://build.ci.opensearch.org/blue/organizations/jenkins/opensearch-ruby-gems-release/detail/opensearch-ruby-gems-release/29/pipeline/
This one is not able to switch ruby versions because RVM isn't at the expected path: https://build.ci.opensearch.org/blue/organizations/jenkins/opensearch-ruby-gems-release/detail/opensearch-ruby-gems-release/31/pipeline/

To reproduce

ssh into one of the https://github.com/opensearch-project/opensearch-build docker images and try to execute the script from publishToRubyGems without errors.

Expected behavior

publishToRubyGems should be able to switch to available Ruby versions

Screenshots

No response

Host / Environment

No response

Additional context

No response

Relevant log output

/var/jenkins/workspace/opensearch-ruby-gems-release@tmp/durable-1e102f6a/script.sh: line 3: /usr/share/opensearch/.rvm/scripts/rvm: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant