Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Metrics about branch lifecycle #368

Closed
king-gao opened this issue Sep 2, 2020 · 7 comments
Closed

Add new Metrics about branch lifecycle #368

king-gao opened this issue Sep 2, 2020 · 7 comments

Comments

@king-gao
Copy link
Member

king-gao commented Sep 2, 2020

In my opinion, there are some branch indicators are metrics for community healthy.

The branch lifecycle managment reflect the community is active,the maintainer is concern the develop branch is merge into master branch,and after merge the develop branch should be deleted , the branch list is clear for anyone to understand the status of branch.

we can metrics how many branchs are still on the branch list have already been merged and not deleted.

@sgoggins
Copy link
Member

sgoggins commented Sep 23, 2020

@king-gao

Are we wanting to keep a list of branches at a point in time, and show delta's related to:

  1. branches deleted between t1 and t2
  2. branches added between t1 and t2
  3. total branches along t1, t2, tn .... ?

@king-gao
Copy link
Member Author

Hi Sean, I agree with you 👍 .
others metrics for example :

  • How many branches have been merged but not deleted?

  • How long branch have been merged and not deleted?

  • How many branches have been open more than XXX days?

  • etc.
    these are interesting metrics .

@sgoggins
Copy link
Member

sgoggins commented Oct 7, 2020

@king-gao : When you ask this question:

"How many branches have been open more than XXX days?"

I think you are asking about "branch on an open pull request?"

@king-gao
Copy link
Member Author

@sgoggins yes , If the PRs were been merged , shall we need to delete them in the public repo?

like the picture below , there are many branchs. why we are not delete them?

20201010-164600(eSpace)

@sgoggins
Copy link
Member

sgoggins commented Oct 21, 2020

We discussed this during the call for Evolution WG on 10/21 -- (Also notes from the Asia Pacific Call to be coming.)

Examining the lifecycle of a branch

  • Branch deletion?
  • Branch dormancy?

What is the indicator of branch “death”. For example, if a branch has the word “patch” in a name, then it is likely a dormant branch. Especially if it had never been involved since the changes in the branch were merged.

It seems we need to include both branch dormancy and branch deletion as indicators of a branch lifecycle.

What are the differences between how branches are managed in GitLab, BitBucket and GitHub? This is something to consider during the building of this metric.

To understand the local lifecycle, we would technically (literally, technically) have to cull that information from the git log.

Platforms don’t keep track of local branch changes, but the git log does.

@ElizabethN
Copy link
Member

Notes from the Asia Pacific Call:
Open Issue discussion: Open branch lifecycle: #368

What do we do with branches that are not needed anymore?

Question: How do we know if a branch is not needed anymore?

Can we have a metrics focused on telling us how many branches have not been active in the last X months?

List of those branches

How many branches have been opened for more than X days

How many branches have been merged and are still open upstream

This would be useful to know in order to clean the house, delete branches, etc.

@sgoggins
Copy link
Member

This metric is now released: https://chaoss.community/metric-branch-lifecycle/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants