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

Pull-Requests KPIs #976

Closed
3 tasks
Amzani opened this issue Oct 2, 2023 · 5 comments
Closed
3 tasks

Pull-Requests KPIs #976

Amzani opened this issue Oct 2, 2023 · 5 comments
Assignees

Comments

@Amzani
Copy link
Collaborator

Amzani commented Oct 2, 2023

Problem

At AsyncAPI, we prioritize the prompt acknowledgment of new contributors who submit pull requests, offering timely code reviews, and ensuring efficient code merging. We view this quick turnaround time for reviews as a vital indicator on how successful we are at engaging our community of contributors.

Solution

To solve the problem we first need to get visibility around our key engineering metrics that are split into 3 main categories:

  1. Pull-Requests KPIs
  2. Release KPIs
  3. Issues Interaction KPIs

In this Bet we will focus on Pull-requests KPIs

Pull request flow

Image

Metrics we want to track

We would like to track theses metrics in the repos we monitor

Feature lead time

merge (date) - first commit (date)

PR lead time

merged (date) – opened at (date)

Time to first review

first review created at (date)  - last commit created at (date)

Review time

last review created at (date)  – first review created at (date)

Last review to merge time

merged (date) – last review created at (date) 

List of repositories we should monitor

Solution design

  1. Store the metrics in a database // or analytic service (preference for solutions that supports open source)
  2. Users must see the metrics in a dashboard to track them over time
  3. The system must offer alerting capability (slack integration)

Rabbit holes

Not known for now

Scope

  • Define the technical solution // POC
  • Dashboard
  • Alert system

Out of bounds

The alert system should not be hard coded, it must offer the team the possibility to define the KPIs as part of the working agreement (PRs should have first time review < 24h)

Success criteria

We are able to get visibility on the metrics and reduce the review time.

@Amzani Amzani converted this from a draft issue Oct 2, 2023
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@Amzani Amzani self-assigned this Oct 2, 2023
@KhudaDad414
Copy link
Member

Are we going to collect the metrics in each stage or after a PR is merged? I guess it makes sense to collect it on PR merge since it takes less juice out of our precious runtime of GitHub actions.
But collecting it in different stages would give us fresh data. 🤔

Copy link
Member

derberg commented Oct 4, 2023

if this is Postman only initiative and related to multiple repos, why do we have it here in spec repo?

My 2 cents:

reduce the review time

metrics will not help reducing review time. Might be better to just have a dedicated channel in Slack for you folks, where you will be getting notifications (something like we have now with channel for new issues and PRs) about your repos, and only info about "new issues or PRs that do not fulfil KPI" - your team would have to actively react, and improvement-of-KPI for you would be basically less alerts to the channel. This is better solution as you do not need a database, you do not need to handle github events storage complexity and any dashboards. You would just have a GH workflow that runs in a repo, checks time and drops a message to slack.

@Amzani Amzani changed the title Postman AsyncAPI Engineering Pull-Requests KPIs AsyncAPI Engineering Pull-Requests KPIs Oct 4, 2023
@Amzani Amzani changed the title AsyncAPI Engineering Pull-Requests KPIs Pull-Requests KPIs Oct 4, 2023
@Amzani
Copy link
Collaborator Author

Amzani commented Oct 4, 2023

@derberg you're right. I'll move this issue to asyncapi/studio as a first repo we start with.
Already explored ossinsight it's not enough.

@Amzani
Copy link
Collaborator Author

Amzani commented Oct 4, 2023

Moved to asyncapi/studio#802

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