Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Created December 6, 2016 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olleolleolle/1e1edf4366b6a36a02fa0b985bbcf309 to your computer and use it in GitHub Desktop.
Save olleolleolle/1e1edf4366b6a36a02fa0b985bbcf309 to your computer and use it in GitHub Desktop.
Learning to run bisect on the JRuby codebase
#!/bin/bash
# Script to bisect to the right JRuby
#
# 9.1.2.0 works
# 9.1.3.0 does not work
#
# https://git-scm.com/docs/git-bisect
#
# Build JRuby, bundle install, then rspec
#
cd /Users/olle/opensource/java/jruby
mvn -Psomething # WHAT GOES HERE?
cd /Users/olle/opensource/ruby/yard
bundle install
bundle exec rspec spec/code_objects/base_spec.rb:405
@olleolleolle
Copy link
Author

#!/bin/bash
# Script to bisect to the right JRuby
#
# 9.1.2.0 works
# 9.1.3.0 does not work
#
# https://git-scm.com/docs/git-bisect
#
# Build JRuby, bundle install, then rspec
#
cd /Users/olle/opensource/java/jruby
mvn -pl core # WHAT?
cd /Users/olle/opensource/ruby/yard

RUBY_ROOT=/Users/olle/opensource/java/jruby ~/opensource/java/jruby/bin/jgem install bundler
RUBY_ROOT=/Users/olle/opensource/java/jruby ~/opensource/java/jruby/bin/jruby bundle install

bundle exec rspec spec/code_objects/base_spec.rb:405


@olleolleolle
Copy link
Author

Starting before I was ready to, I got:

--- java/jruby » git bisect start
--- java/jruby » git bisect bad
--- java/jruby » git bisect good 9.1.2.0
Bisecting: a merge base must be tested
[fe84e89dfc64a052935a19a8b47941f788e15a5e] Update for release

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