DRAFT Proposal: Implement tuxbuild bisect
How could we support build bisection in tuxbuild?
One way would be the following.
tuxbuild bisect which has similar semantics to
tuxbuild build, but instead of
--git-sha, it would take
--git-sha-new. The other
tuxbuild build options would also be available. The tuxbuild cli would submit the old and new sha to the tuxbuild api, and the tuxbuild service would actually calculate the midpoint between old and new and build the midpoint sha. From the server side perspective, it's just one build.
The tuxbuild cli would submit multiple builds, internally adjusting --git-sha-old and --git-sha-new for each build until there are no commits left. The tuxbuild service will have to add a 'number of commits remaining' or similar to metadata so that the client knows when it's done.
git rev-list provides some bisection options for figuring out the midpoint. For example usage see https://gist.github.com/danrue/a2dd075258ba3f4b351492b8f0bb223a