dosubot[bot] commented on issue #8619:
URL: 
https://github.com/apache/incubator-devlake/issues/8619#issuecomment-3429965164

   <!-- Greeting -->
   Hi @JDanP! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
incubator-devlake team.
   
   <!-- Answer -->
   Your scope config for GitLab CI/CD in DevLake v1.0.2 is designed to filter 
deployments by job name or branch using regex patterns, but the backend logic 
actually marks deployments as "production" mainly by matching the environment 
name against the `EnvNamePattern` regex in the scope config. If your production 
deployments are identified only by job or branch name (like "Publish NodeJs" on 
"main"), but the environment name doesn't match your `EnvNamePattern`, DevLake 
may incorrectly include deployments from other branches (like "develop") in 
DORA metrics such as Lead Time for Changes. This is a known limitation in 
v1.0.2—your configuration needs to ensure that the environment name for 
production deployments matches the pattern you set, or unwanted deployments may 
be counted. For more details, see the relevant [code 
logic](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/gitlab/tasks/deployment_convertor.go)
 and [documentatio
 
n](https://github.com/apache/incubator-devlake-website/blob/e88045fa07c85f566017ad361cca987fb292de84/versioned_docs/version-v1.0/Configuration/GitLab.md).
   
   If you want to filter strictly by job name and branch, double-check that 
your environment naming in GitLab matches your scope config's production 
pattern. Otherwise, DevLake may not respect your intended filtering.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/9c554ed7-56bc-4f98-bf16-4d188626b20a?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8619)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to