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

script to pre-build all commits in a git-bisect, and use them during testing

From
Britton Kerin <britton.kerin@gmail.com>
Date
Feb 21, 2024, 22:57 UTC
Message-ID
<CAC4O8c-tgDQ42upWorMi3Cw+KdPoHT2YxvZEirt_dtjQXreXAw@mail.gmail.com>
Problem: it's annoying to have to build each commit when
git-bisect'ing for something that isn't being tested automatically (so
no git bisect run).
Solution: https://github.com/bkerin/git-batch-bisect

It has an interface almost exactly like native git-bisect so it's super easy to learn but it handles a couple additional commands to create worktrees for all the commits, parallel build, and test in them.

From the README:
     git batch-bisect start bad_commit good_commit
     git batch-bisect runinall 'autoreconf --install && ./configure && make'
     git batch-bisect runincurrent ./test_program
     git batch-bisect good
     git batch-bisect runincurrent ./test_program
     git batch-bisect bad
     # etc.

I'd be grateful for any feedback on this script. I don't actually bisect all that often, so it's only tested on one real-world project so far. I thought it might live in contrib someday if it's useful to anyone else.

Britton
Next: Junio C Hamano
Message 1 of 2 in “script to pre-build all commits in a git-bisect, and use them during testing”
  1. Britton KerinFeb 21, 2024
  2. Junio C HamanoFeb 21, 2024

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.