Git-bisect, but for N repos

There is an error in my code that can be easily reproduced since the test does not work.

So far I have used git-bisect in such cases, but this is only useful if there is only one git repo.

In my case there are 7.

Is there a way to do something like git-bisect, but for N git repositories?

Update

There is one โ€œcontainerโ€ Repo that contains mostly configuration. This is related to a specific client.

Then there is one repo for the main application.

Then where are the N repos for the plugins for this main application.

Git does not use submodules in this context.

Update2

So far I have not used the google repo tool. AFAIK also cannot divide in half.

+7
git git-bisect
source share
1 answer
  • First of all: find the state when the test passed.

  • Then: check if the test passes when you return one of the 7 repositories

For example, let's say that:

  • the test passed when the repositories were in a state:

    A1 A2 A3 A4 A5 A6 A7 
  • the test fails when all repositories are in the new HEAD:

     B1 B2 B3 B4 B5 B6 B7 

try to check if the test passes in the following configurations:

 A1 B2 B3 B4 B5 B6 B7 B1 A2 B3 B4 B5 B6 B7 B1 B2 A3 B4 B5 B6 B7 etc ... 

If you manage to isolate one repo in this way: you just need to divide it into one.

+6
source share

All Articles