You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "yoz2326 (via GitHub)" <gi...@apache.org> on 2025/08/15 11:20:17 UTC
[D] DORA & Monorepo support [incubator-devlake]
GitHub user yoz2326 created a discussion: DORA & Monorepo support
Hi, I'm thinking of potentially adding monorepo support to Devlake for DORA metrics but before doing so I'm thinking to have a conversation to make sure it follows the overall product design.
At a high level this is what I have in mind, at least when webhooks for DORA metrics:
1. Add support so we can store service names in the database (e.g. a `services` table)
2. When using webhooks, send the service name in the incoming payload. This will allow us to associate a deployment with a service.
3. To further extent support for monorepos there's 2 ways I can think of:
Option A: Vian an incoming webhook add info for Devlake project name, git path and service name
Option B: add an extra webhook in Apache Devlake that is invoked right after a PR is merged. In the payload add the git sha and service names to which the code change belonges. This way if we have code merges for 3 different apps belonging to 2 different teams, the data on the dtabse will have relvevant info so we can map code changes to teams and deployments.
4. Assuming service to code to deployemnt relations/mapings are now stored in the database in various tables updated DORA dashboard (or create a new one) where we can filter by project, service and/or team and perform DORA stats reporting/calculations via the SQL query.
Any thoughts on either this or better ways to go about it?
What I'd like to achieve is to have DORA metrics at application/service level, regardless of how application code is stored in a git repo. And filterting on a dashboard by team and application/service.
Today we can do it at project level only (unless I miss something), and based on project <--> git repo mappings it limits DORA metrics to be scoped essentially to a set of git repos.
Regards
GitHub link: https://github.com/apache/incubator-devlake/discussions/8540
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] DORA & Monorepo support [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
GitHub user klesh added a comment to the discussion: DORA & Monorepo support
That’s great to hear! 💪 Even without a Go background, your proposal is already very solid and shows you’ve thought deeply about the problem. If you decide to give it a go, we’ll be happy to support and guide you along the way.
Since it’s a fairly large change touching both data modeling and webhook handling, I’d recommend breaking it down into smaller milestones — for example, starting with storing service names and wiring them into deployments before tackling the full monorepo mapping logic. That way, you’ll get feedback early and make progress incrementally.
Looking forward to seeing your first steps on this! 🚀
GitHub link: https://github.com/apache/incubator-devlake/discussions/8540#discussioncomment-14205663
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] DORA & Monorepo support [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
GitHub user klesh added a comment to the discussion: DORA & Monorepo support
Great proposal — very thorough and well thought out. I believe it could work, though it’s certainly a significant undertaking. Do you also plan to work on it yourself?
GitHub link: https://github.com/apache/incubator-devlake/discussions/8540#discussioncomment-14185291
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] DORA & Monorepo support [incubator-devlake]
Posted by "yoz2326 (via GitHub)" <gi...@apache.org>.
GitHub user yoz2326 added a comment to the discussion: DORA & Monorepo support
Yeah, that was my intention, although I am not a golang developer but willing to give it a go and see how far I can get.
Good to get confirmation it's on the right path, it's one of the things I wanted to check beforehand.
GitHub link: https://github.com/apache/incubator-devlake/discussions/8540#discussioncomment-14188613
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org