You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "MarcViola (via GitHub)" <gi...@apache.org> on 2024/10/15 20:14:05 UTC
[I] [Bug][gitlab] Deployment count is wrong when downstream pipeline is used [incubator-devlake]
MarcViola opened a new issue, #8145:
URL: https://github.com/apache/incubator-devlake/issues/8145
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
Requested this feature to be supported https://github.com/apache/incubator-devlake/pull/8009
After testing with downstream pipeline, the number of deployments don't add up.
I've tested a few similar projects and the count is not correct.




### What do you expect to happen
It should only be 1 deployment.
### How to reproduce
Parent Test:
stage: build
trigger:
include: trigger-child.yml
Child Test:
tags:
- argo-ocp
stage: test
script:
- echo "Child pipeline"
environment:
name: PRODUCTION
### Anything else
_No response_
### Version
v1.0.2-beta2@2cadbf8
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][gitlab] Deployment count is wrong when downstream pipeline is used [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8145:
URL: https://github.com/apache/incubator-devlake/issues/8145#issuecomment-2543388459
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][gitlab] Deployment count is wrong when downstream pipeline is used [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8145:
URL: https://github.com/apache/incubator-devlake/issues/8145#issuecomment-2414921843
<!-- Greeting -->
Hey @MarcViola! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's work together to solve this issue you're facing!
<!-- Answer -->
I found a similar closed issue that might be relevant to your problem: [How to avoid skipped jobs counting as successful production deployment?](https://github.com/apache/incubator-devlake/issues/5885). This issue was resolved by a pull request that addressed how skipped jobs were being counted, which might provide insights into handling deployment counts <sup>[[1]](https://github.com/apache/incubator-devlake/issues/5885)</sup>.
Regarding your specific issue with downstream pipelines in GitLab, the deployment count may be incorrect because tools like GitLab generate more than one deployment for multiple deployments triggered by one pipeline. Apache DevLake considers these deployments as one and uses the last deployment's finished date as the deployment finished date. To fix this, ensure that DevLake is configured to treat multiple deployments from a single pipeline as one. This involves defining `deployment` in the data transformations while configuring the blueprint of a project <sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v1.0/Metrics/DeploymentFrequency.md)</sup>.
For more detailed guidance, you can refer to the transformation rules section in the documentation, which explains how to set up these configurations using regular expressions to identify deployments and production deployments <sup>[[3]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Configuration/GitLab.md)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][gitlab] Deployment count is wrong when downstream pipeline is used [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8145:
URL: https://github.com/apache/incubator-devlake/issues/8145#issuecomment-2558678851
This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][gitlab] Deployment count is wrong when downstream pipeline is used [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8145: [Bug][gitlab] Deployment count is wrong when downstream pipeline is used
URL: https://github.com/apache/incubator-devlake/issues/8145
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org