Git Bug Resolve: bisect run failed to locate the right commit, not git bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear git developer:

On August 27, I report a bug on git bisect: 
"bisect run failed to locate the right commit"

Today, my friend told me that the problem may be caused by the python compiled file *.pyc.
Since if python see the pyc is a "new" compiled, it will directly run *pyc file but update it.

When we use bisect-run, it quickly checkout different version and run the script to test it.
It's so fast that the *pyc file are still new files, so python run *.pyc and get same result.
That's the wrong result came from.

There are two way to avoid this problem:
First is delete all *.pyc before python run, add a test.sh with following content:
find . -name *.pyc -exec rm {} \;
./autoscript.py

Second is let python run slower, adding a delay in autoscript.py:
import time
time.sleep(1)

Both method let git-bisect-run give the right result.

Sorry about the wrong bug report, it prove that git-bisect-run is very very fast -- too fast to cause some mistake lol

Sincerely 
YodaLee
20140828?頨{.n?????%??橆??w?{.n???蜋?^n?←屹??h?霅??輈蹂z嫡?+€?zfㄑ搬?坍??i????蔰_霈熝:+v??舝鷰





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]