Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > NZ Computing > Ah, The Joys Of Git-Bisect...

Reply
Thread Tools

Ah, The Joys Of Git-Bisect...

 
 
Lawrence D'Oliveiro
Guest
Posts: n/a
 
      10-23-2010
Before tagging this recent commit of DVDAuthor as version 0.7.0 and
releasing it, I thought I’d run a quick regression test to compare the
output against the previous 0.6.18 release using some random input data I’d
previously been messing around with.

Step 1: check out the 0.6.18 version. Build and install. Run against the
input data, save the authored DVD-Video structure to one directory.
Step 2: check out the candidate 0.7.0 version. Build and install. Run
against the input data, save the authored DVD-Video structure to a separate
directory.
Step 3: Do a diff -ur on the two directories, to confirm they’re the same.

And they were not.

So then I did a git-bisect, which does a binary search to narrow down the
commit which introduced the difference. This entails marking one commit as
“good” and another as “bad”, whereupon it automatically chooses some commit
in-between to try out, lets you mark that as “good” or “bad” as appropriate,
and then repeats the procedure on the appropriate half of the interval of
the commit history thus bisected.

Finally I narrowed the difference down to ... a bug-fix. Indeed, a fix for
the very bug which was being tickled by one of the last edits to the test
data I just happened to be using. So naturally the output would be different
once the bug was fixed!
 
Reply With Quote
 
 
 
 
Lawrence D'Oliveiro
Guest
Posts: n/a
 
      10-24-2010
In message <4cc34a6e$(E-Mail Removed)>, Robert Cooze wrote:

> But Seriously one would hope the output would be different in the case
> of a bug-fix.


Yeah, I know. The point was I forgot.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the joys of png windandwaves HTML 2 09-30-2005 08:46 AM
The joys of functions and arrays Jeremy Stringer VHDL 2 04-07-2005 11:10 PM
joys of a new mouse Roedy Green Java 0 04-20-2004 03:26 AM
The joys of Python Volker Gietz Python 0 04-02-2004 08:32 AM
The joys of Point 'n Shoot type Digital Cameras James Digital Photography 8 02-02-2004 05:44 PM



Advertisments