* Git Bug Report: bisect run failed to locate the right commit
@ 2014-08-27 13:42 李祐棠
2014-08-27 14:15 ` Christian Couder
2014-08-27 14:17 ` Jeff King
0 siblings, 2 replies; 3+ messages in thread
From: 李祐棠 @ 2014-08-27 13:42 UTC (permalink / raw)
To: git@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]
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)
I wonder there might be some bugs in "bisect run", that give the different result. The bisect run give the wrong result, and manually there is no error in bisect
The test step is a little complicated, and I have to compress the test script and result in tar since mail server think the test code as spam. it's very sorry to bother you.
Sincerely
YodaLee
20140827
[-- Attachment #2: testfile.tar --]
[-- Type: application/x-tar, Size: 10240 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git Bug Report: bisect run failed to locate the right commit
2014-08-27 13:42 Git Bug Report: bisect run failed to locate the right commit 李祐棠
@ 2014-08-27 14:15 ` Christian Couder
2014-08-27 14:17 ` Jeff King
1 sibling, 0 replies; 3+ messages in thread
From: Christian Couder @ 2014-08-27 14:15 UTC (permalink / raw)
To: 李祐棠; +Cc: git@vger.kernel.org
Hi,
On Wed, Aug 27, 2014 at 3:42 PM, 李祐棠 <r01942008@ntu.edu.tw> wrote:
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git Bug Report: bisect run failed to locate the right commit
2014-08-27 13:42 Git Bug Report: bisect run failed to locate the right commit 李祐棠
2014-08-27 14:15 ` Christian Couder
@ 2014-08-27 14:17 ` Jeff King
1 sibling, 0 replies; 3+ messages in thread
From: Jeff King @ 2014-08-27 14:17 UTC (permalink / raw)
To: 李祐棠; +Cc: git@vger.kernel.org
On Wed, Aug 27, 2014 at 01:42:45PM +0000, 李祐棠 wrote:
> 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)
When you get to 300cd08225, your manual bisect shows this as bad:
Bisecting: 0 revisions left to test after this (roughly 1 step)
[300cd0822505a4bd308acd1520ff3ef0f20f8635] fixed issue #19
$ ./manualscript.py
False
False
$ git bisect bad
When you hit the same commit with your automatic test, the output from
your script is different:
Bisecting: 0 revisions left to test after this (roughly 1 step)
[300cd0822505a4bd308acd1520ff3ef0f20f8635] fixed issue #19
running ./autoscript.py
False
True
which would yield "git bisect good" according to the simplified scripts
you sent. I suspect your problem is in the test script.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-27 14:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 13:42 Git Bug Report: bisect run failed to locate the right commit 李祐棠
2014-08-27 14:15 ` Christian Couder
2014-08-27 14:17 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).