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

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

From
李李祐棠 <r01942008@ntu.edu.tw>
Date
Aug 28, 2014, 15:43 UTC
Message-ID
<C40A01C66E914D4EB90E1B40564B0E56CBFE311B@MBOX2-4.ntu.internal>
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

Message 1 of 1 in “Git Bug Resolve: bisect run failed to locate the right commit, not git bug”
  1. 李祐棠Aug 28, 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.