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

RE: https://github.com/rust-lang/rust is not bisectable

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Dec 18, 2022, 14:10 UTC
Message-ID
<00c701d912ea$85527080$8ff75180$@nexbridge.com>
In-Reply-To
<20221218105239.GD3411@szeder.dev>
On December 18, 2022 5:53 AM, SZEDER Gábor wrote:
Show 28 quoted lines
>On Sun, Dec 18, 2022 at 01:03:54PM +0300, Askar Safin wrote:
>> SZEDER Gábor, yes, in this particular case this helps.
>
>Not just in this particular case, but this solves a general issue of bisecting non-
>linear histories that is the file/testcase/whatever of interest is not present in all
>candidate revisions in the range '^good bad'.
>
>> (But
>> I still wonder how to tell git-bisect to ignore commits, which are not
>> descendants of good commit.)
>
>In general you do not want to tell that to bisect, because any one of them could
>have introduced the change you are looking for.  Consider the following piece of
>history, where commits 'm<N>' are on the master branch, 'b<N>' are on a
>different branch, and the commit marked with C made a buggy change, and
>commits marked with G and B are the ones you marked as good and bad you
>started the bisection.
>
>            (G)            (M)  (B)
>  m1---m2---m3---m4---m5---m6---m7
>        \                 /
>         b1---b2---b3---b4
>                   (C)
>
>If bisect were to ignore commits "which are not descendants of good commit",
>then it wouldn't look at any of the 'b<N>' commits made on the side branch.  It
>would only look at commits m{3,4,5,6,7}, and thus report m6 as the first bad
>commit, which is clearly not the case.
Could you not use bisect skip to ignore the commits that cannot be tested? 
Previous: SZEDER Gábor
Message 9 of 9 in “https://github.com/rust-lang/rust is not bisectable”
  1. Askar SafinDec 17, 2022
  2. Andreas SchwabDec 17, 2022
  3. Askar SafinDec 18, 2022
  4. Andreas SchwabDec 18, 2022
  5. SZEDER GáborDec 18, 2022
  6. Askar SafinDec 18, 2022
  7. Andreas SchwabDec 18, 2022
  8. SZEDER GáborDec 18, 2022
  9. rsbecker@nexbridge.comDec 18, 2022

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.