Skip to content

GitVersion slow, not sure if config is correct #1327

Closed
@kyberias

Description

@kyberias

I have a repo where running Gitversion takes anywhere from 15-30 minutes. Because the log is filled with commit details (why?), I cannot post it here. I suspect Gitversion tries to do something it really shouldn't be doing.

For example if I run the GV in our develop branch, the log is filled with these:

INFO [11/22/17 9:44:41:51] Begin: Finding merge base between 'release/0.17.0' and 'foobar'
INFO [11/22/17 9:44:41:60] Begin: Finding merge base between 'release/0.17.0' and 'foobar2'.
INFO [11/22/17 9:55:48:18] End: Finding merge base between 'release/0.17.0' and 'origin/sttCR'. (Took: 114.30ms)

So it seems to be looking at "merge bases" between all the different branches and it takes a lot of time. Does it really have to do all this? We have lot of (feature) branches that are named quite randomly (with no feature prefix). Is GV slow because it's confused about those branches? Is there a way to configure it to ignore those?

The documentation refers to "source-branches" config but no released version seems to support that. Kinda annoying that the documentation is not in sync with the latest release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions