git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Bug Report: bisect run failed to locate the right commit

From
Christian Couder <christian.couder@gmail.com>
Date
Aug 27, 2014, 14:15 UTC
Message-ID
<CAP8UFD08sABDPwxfJMNHcU6CWdVfsVTKHSXvT4+Mxf5GPYvhyA@mail.gmail.com>
In-Reply-To
<C40A01C66E914D4EB90E1B40564B0E56CBFE1C82@MBOX2-4.ntu.internal>
Hi,
On Wed, Aug 27, 2014 at 3:42 PM, 李祐棠 <r01942008@ntu.edu.tw> wrote:
Show 23 quoted lines
> Dear Git developers:
>
> I just found a suspicious bug that might cause by git-bisect run.
>
> Version:
> The git version is 1.9.2, running on Archlinux 3.14.2
>
> The step to produce the error:
> Here is the repository I participate:
> https://github.com/gawel/pyquery
>
> It got a issue #74, that gives a wrong result in version 1.2.8
> and this is fixed in 1.2.9
>
> Here is the manual test script I use is "manualscript.py":
>
> I use git bisect manually, search from 1.2.9(bad) to 1.2.8(good), I locate the commit that fixes this issue. The running log is attached in this file(manual).
>
> However if I use the automatic script
> git bisect run
> with the script "auto script":
>
> It will give a wrong answer, the log file is also attached(auto)
Your "manual" log contains:
Bisecting: 0 revisions left to test after this (roughly 1 step)
[300cd0822505a4bd308acd1520ff3ef0f20f8635] fixed issue #19
$ ./manualscript.py
False
False
While your "auto" log contains:
Bisecting: 0 revisions left to test after this (roughly 1 step)
[300cd0822505a4bd308acd1520ff3ef0f20f8635] fixed issue #19
running ./autoscript.py
False
True

So for the commit 300cd0822505a4bd308acd1520ff3ef0f20f8635 it looks like your manualscript.py and your autoscript.py don't return the same result.

Could you check that by doing something like:

$ git checkout -b testscripts 300cd0822505a4bd308acd1520ff3ef0f20f8635 $ ./manualscript.py $ echo "manualscript.py exit code: $?" $ ./autoscript.py $ echo "autoscript.py exit code: $?"

?

By the way you can get a better bisect log by running "git bisect log" after your bisection.

Best, Christian.

Previous: 李祐棠Next: Jeff King
Message 2 of 3 in “Git Bug Report: bisect run failed to locate the right commit”
  1. 李祐棠Aug 27, 2014
  2. Christian CouderAug 27, 2014
  3. Jeff KingAug 27, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.