Skip to content

fix jruby bundler for test #1099

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

Merged
merged 4 commits into from
Dec 8, 2022
Merged

fix jruby bundler for test #1099

merged 4 commits into from
Dec 8, 2022

Conversation

kaisecheng
Copy link
Contributor

Fix: elastic/logstash#14800

Use the bundler in /vendor/bundle/jruby/2.6.0/bin/bundle instead of /vendor/jruby/bin/bundle to run test, as Logstash doesn't package the latter in artifacts in elastic/logstash#14667

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

Copy link
Contributor

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

Same reasoning as logstash-plugins/.ci#44 (review)

  • -rbundler/setup flag for jruby executable is not needed when invoked inside bundle exec
  • run rspec directly (fragment jruby -S rspec [RSPEC_ARGS...] -> rspec [RSPEC_ARGS...] )
  • use long-form options in scripts for readability (rspec's -fd -> --format=documentation)

Copy link
Contributor

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

A "while we are here" suggestion to use more long-form rspec flags -t -> --tag

kaisecheng and others added 2 commits December 5, 2022 18:21
Co-authored-by: Ry Biesemeyer <[email protected]>
Co-authored-by: Ry Biesemeyer <[email protected]>
@kaisecheng kaisecheng requested a review from yaauie December 7, 2022 16:04
Copy link
Contributor

@mashhurs mashhurs left a comment

Choose a reason for hiding this comment

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

LGTM!

@yaauie yaauie merged commit 25aedb6 into main Dec 8, 2022
mashhurs pushed a commit to mashhurs/logstash-output-elasticsearch that referenced this pull request Dec 9, 2022
* fix jruby bundler for test

* Update .ci/logstash-run.sh

Co-authored-by: Ry Biesemeyer <[email protected]>

* Update .ci/logstash-run.sh

Co-authored-by: Ry Biesemeyer <[email protected]>

* Update .ci/logstash-run.sh

Co-authored-by: Ry Biesemeyer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail to load logstash/vendor/jruby/lib/ruby/stdlib/bundler in unit test
3 participants