Diagnosing a Project

How can you tell if an open source project is healthy or not? And why would you want to?

I’m a part of Ensline, a new start-up with focus on software supply chain governance. That means that we help you learn what your dependencies cost, when they fail, and how to handle the tedious paperwork around regulations such as the CRA. As a part of this, we want to make it easier to determine if a project is healthy or not.

To determine the health of a project, we do what the doctors do when they diagnose a patient. We run tests and collect data to make a quantitative analysis. As a part of this, we’ve built our Know who builds it scorecards. The idea is to collect data and present it in a useful way.

Let’s dive in and have a look at an example: PostgreSQL. This is a fairly large project with lots of contributors and a lot of activity.

There are a couple of factors to look at when it comes to open source projects:

  • The Bus factor, i.e. if the project would end up in trouble if an individual gets hit by a bus.
  • The Elephant factor, i.e. if a company or organization dominates development.

As you can tell, the bus factor is under control. The most dominant individual did 13% of the commits during last year, and it took five more to reach 50% of the commits.

Here we encounter one of the first challenges. We identify organizations based on the domain of their emails. Combine this with some intelligent guesses and filters, and we have an approximation of organizations vs individuals. However, most people committing with a @postgresql.org work elsewhere, so in this case, the elephant is a lot smaller than it seems at first glance.

The risk of elephants is that they come and go. That is why we also have a view of it over time:

As you can tell, the PostgreSQL organization is here to stay.

Another interesting aspect is the times that commits are made. We use this to build two graphs. One is the punch clock, which can be used to have a guess about the proportion of people who contribute as a part of their work, compared to the amount of contributions from volunteers. Notice the light green haze in the figure below – PostgreSQL gets commits 24/7.

The other view is the timezones where the project is represented. As you can tell from the figure, PostgreSQL is a very international project.

Do you want to build a scorecard for a project of your own? Head over to Ensline Labs and score a repository.