From: Britton Kerin <britton.kerin@gmail.com>
To: git@vger.kernel.org
Subject: script to pre-build all commits in a git-bisect, and use them during testing
Date: Wed, 21 Feb 2024 13:57:55 -0900 [thread overview]
Message-ID: <CAC4O8c-tgDQ42upWorMi3Cw+KdPoHT2YxvZEirt_dtjQXreXAw@mail.gmail.com> (raw)
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 reply other threads:[~2024-02-21 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 22:57 Britton Kerin [this message]
2024-02-21 23:20 ` script to pre-build all commits in a git-bisect, and use them during testing Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAC4O8c-tgDQ42upWorMi3Cw+KdPoHT2YxvZEirt_dtjQXreXAw@mail.gmail.com \
--to=britton.kerin@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).