Ah, The Joys Of Git-Bisect...

Discussion in 'NZ Computing' started by Lawrence D'Oliveiro, Oct 23, 2010.

  1. 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!
     
    Lawrence D'Oliveiro, Oct 23, 2010
    #1
    1. Advertising

  2. In message <4cc34a6e$>, 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. :)
     
    Lawrence D'Oliveiro, Oct 24, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Toolman Tim

    GNIP > Old Git!

    Toolman Tim, Dec 3, 2005, in forum: Computer Support
    Replies:
    6
    Views:
    416
    Toolman Tim
    Dec 3, 2005
  2. Lawrence D'Oliveiro

    Perl moves to Git

    Lawrence D'Oliveiro, Dec 24, 2008, in forum: NZ Computing
    Replies:
    1
    Views:
    355
    Enkidu
    Dec 25, 2008
  3. Lawrence D'Oliveiro

    Git Is Fun

    Lawrence D'Oliveiro, Oct 25, 2009, in forum: NZ Computing
    Replies:
    17
    Views:
    844
    Lawrence D'Oliveiro
    Oct 30, 2009
  4. Lawrence D'Oliveiro

    Ah, the joys of git-bisect...

    Lawrence D'Oliveiro, Mar 18, 2010, in forum: NZ Computing
    Replies:
    0
    Views:
    361
    Lawrence D'Oliveiro
    Mar 18, 2010
  5. Lawrence D'Oliveiro

    I Guess This Means Git Must Be Tops ...

    Lawrence D'Oliveiro, Jun 5, 2011, in forum: NZ Computing
    Replies:
    1
    Views:
    385
    Enkidu
    Jun 6, 2011
Loading...

Share This Page