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

Adapt RubyGems publish action to path changes #413

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

Earlopain
Copy link
Contributor

Description

In opensearch-project/opensearch-build@01613af the docker user got changed. As such the users home folder location got changed as well, which didn't get reflected in the rubygems publish action.

This can be seen in the latest publish attempt of opensearch-ruby: https://build.ci.opensearch.org/blue/organizations/jenkins/opensearch-ruby-gems-release/detail/opensearch-ruby-gems-release/31/pipeline/

script.sh: line 3: /usr/share/opensearch/.rvm/scripts/rvm: No such file or directory

In order for a ruby version to be selected the path to rvm must be updated. This PR does that by simply using ~, unblocking a new release of opensearch-ruby.

Old output:

[ci-runner@b51ea2c5f5d2 ~]$ source /usr/share/opensearch/.rvm/scripts/rvm && rvm use 2.6.0 && ruby --version
bash: /usr/share/opensearch/.rvm/scripts/rvm: No such file or directory

New output:

[ci-runner@b51ea2c5f5d2 ~]$ source ~/.rvm/scripts/rvm && rvm use 2.6.0 && ruby --version
Using /home/ci-runner/.rvm/gems/ruby-2.6.0
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]

Issues Resolved

Closes #410

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Member

@peterzhuamazon peterzhuamazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need version bumping in the build.gradle on patch version.
cc: @gaiksaya

Thanks.

@gaiksaya
Copy link
Member

Hi @Earlopain
Can you bump the version here to next patch?
https://github.com/Earlopain/opensearch-build-libraries/blob/rvm-path/build.gradle#L124
Thanks!

Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can take care of bumping the version. Merging this PR for now.

@gaiksaya gaiksaya merged commit 172c3dd into opensearch-project:main Apr 15, 2024
7 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 15, 2024
Signed-off-by: Earlopain <[email protected]>
(cherry picked from commit 172c3dd)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gaiksaya gaiksaya mentioned this pull request Apr 15, 2024
@Earlopain Earlopain deleted the rvm-path branch April 16, 2024 06:09
@Earlopain Earlopain restored the rvm-path branch April 16, 2024 06:09
@Earlopain Earlopain deleted the rvm-path branch April 16, 2024 06:09
@Earlopain
Copy link
Contributor Author

Thanks for taking care of the bumping! I thought a bot would do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot release opensearch-ruby 3.2.0 because of publishToRubyGems RVM issues
3 participants