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

Re: feature request - telling git bisect to skip, from inside a commit

From
Jeff King <peff@peff.net>
Date
Mar 29, 2011, 18:23 UTC
Message-ID
<20110329182300.GB20784@sigill.intra.peff.net>
In-Reply-To
<AANLkTin+0yScj2ejVgPSMmY6Q+Qk0MM+W+EqqLGphCrz@mail.gmail.com>
On Tue, Mar 29, 2011 at 11:00:00AM -0600, Jim Cromie wrote:
Show 6 quoted lines
> If the pseudo-header can be added into the commit message,
> it is trivial to use.
> 
> I see the merit of a skip-cache as working after-the-fact
> on already published/shared patch-sets, but Im unsure how the
> skip-cache can be shared currently.

If you use git-notes as I did in the example of my first response, then you will end up with a ref "refs/notes/skip". You can push it to wherever:

  git push origin refs/notes/skip
and then everybody else can configure their repos to fetch it:
  git config --add remote.origin.fetch \
    +refs/notes/skip:refs/notes/origin/skip

I think they would still have to manually merge it into their own skip cache with "git notes merge". I'm not sure. The notes-merging code is very new (v1.7.4, I believe), and I think we are still figuring out what workflows make sense around it (which is why it is still manual).

Show 16 quoted lines
> > I think that is a saner approach, and further say it would be much saner
> > to make that token something like
> >
> >    Broken: does not build
> 
> My only concern here is the negative connotation of Broken.
> At least in my 1/2 change scenario, thats known to be incomplete,
> its kinda pejorative.  But it certainly gets the job done.
> 
> Skip: make rc 125
> Skip: 125
> Skip: gcc error: no such field: foo
> Skip: api change only, users must follow
> 
> Skip: has less pejorative, and closer name-association linkage
> to the bisect skip command that it

Yeah, I think a more neutral name makes sense, since there are many reasons to skip (and in fact, broken builds are among the least interesting to mark, since those are easy to detect at bisection time).

Show 8 quoted lines
> > And then teach the script you give to "bisect run" to grep for that
> > "^Broken: " pattern to answer with exit 125 (cannot test), and you are
> > done.
> >
> 
> With this, nothing needs to be added.
> The only advantage to bisect looking for the pseudo-header is that
> a convention is supported, such that it might get used.

If you do use this, I would love to hear a report on how it works 6 months in. If it's useful, then it might make more sense to clean up rough edges with better tool support. Or maybe it works perfectly without tool support, or maybe it turns out to be a flawed idea. :)

-Peff
Previous: Jim Cromie
Message 6 of 6 in “feature request - telling git bisect to skip, from inside a commit”
  1. Jim CromieMar 26, 2011
  2. Christian CouderMar 28, 2011
  3. Jeff KingMar 28, 2011
  4. Junio C HamanoMar 28, 2011
  5. Jim CromieMar 29, 2011
  6. Jeff KingMar 29, 2011

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.