Skip to content

Instantly share code, notes, and snippets.

@masterzen
Created November 10, 2009 21:45
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 masterzen/231298 to your computer and use it in GitHub Desktop.
Save masterzen/231298 to your computer and use it in GitHub Desktop.
# checkout 0.25.1 git
git clone git://github.com/reductivelabs/puppet.git
cd puppet
# start bisecting
# we suspect the problem is a parser issue
# so we'll focus only on the parser
git bisect start 0.24.8 0.25.1 -- lib/puppet/parser
# if you can reproduce with "puppet":
RUBYLIB=./lib time bin/puppet --debug --parseonly /path/to/site.pp
# if slow:
git bisect bad
# if fast as 0.24
git bisect good
# if the commit produces a version that doesn't work:
git bisect skip
# you can automate the system by putting the puppet command in a script that parses
# time output and say from there if it is good or bad.
# see git help bisect for more information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment