You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "d4x1 (via GitHub)" <gi...@apache.org> on 2023/11/06 13:00:34 UTC
[PR] docs(website): add cicd_deployments table, update github/gitlab's entities [incubator-devlake-website]
d4x1 opened a new pull request, #671:
URL: https://github.com/apache/incubator-devlake-website/pull/671
> Please complete _ALL_ items in this checklist, and remove before submitting
- [x] I have `npm run build` and `npm run serve` locally before submitting this PR
- [x] I have read through the [Contributing](https://devlake.apache.org/community/) Documentation
# Summary
<!--
Thanks for submitting a PR! We appreciate you spending the time to work on these changes. Please fill out as many sections below as possible.
-->
### Does this close any open issues?
Closes N/A
### Screenshots
Include any relevant screenshots here.
### Other Information
Any other information that is important to this PR.
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(website): add cicd_deployments table, update github/gitlab's entities [incubator-devlake-website]
Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky merged PR #671:
URL: https://github.com/apache/incubator-devlake-website/pull/671
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(website): add cicd_deployments table, update github/gitlab's entities [incubator-devlake-website]
Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky commented on code in PR #671:
URL: https://github.com/apache/incubator-devlake-website/pull/671#discussion_r1384339147
##########
docs/DataModels/DevLakeDomainLayerSchema.md:
##########
@@ -508,6 +508,27 @@ A cicd_task is the abstraction of the bottom-level CI/CD excecution.
| `finished_date` | datetime | 3 | When this task finished | | |
| `cicd_scope_id` | longtext | | The id of cicd_scope this task belongs to | FK_cicd_scopes.id |
+#### cicd_deployments
+A cicd_deployment is a deployment in a specific repo. It may come from several sources:
+
+- Domain layer [cicd_pipelines](#cicd_pipelines), such as GitHub workflow runs, GitLab pipelines, Jenkins builds and BitBucket pipelines, etc. Deployments from cicd_pipelines will be transformed according to the regex configuration set in the Blueprint transformation before adding to this table.
+- Tool layer deployments: in v0.20, only the BitBucket\Bamboo\GitLab and GitHub(Use GraphQL APIs) plugins collect the independent deployment entity which you can find in table.\_tool_bitbucket_deployments and \_tool_bamboo_deploy_builds, there will be more in the future.
+- Deployments pushed directly from webhooks
+
+| **field** | **type** | **length** | **description** | **key** |
+|:----------------|:---------|:-----------|:---------------------------------------------------------------------------------------------------|:------------------|
+| `id` | varchar | 255 | The deployment_id of this deployment. The value will be set with `id` when it comes from webhooks. | PK |
+| `cicd_scope_id` | varchar | 255 | The id of cicd_scope this deployment belongs to | FK_cicd_scopes.id |
+| `name` | varchar | 255 | The name of the deployment | |
+| `result` | varchar | 100 | The result of the deployment, e.g. SUCCESS, FAILURE | |
+| `status` | varchar | 100 | The status of this deployment, e.g. IN_PROGRESS, DONE | |
+| `environment` | varchar | 255 | The environment to deploy, only 'PRODUCTION' deployment will appear in v0.17 | |
+| `created_date` | datetime | 3 | The created time of the deployment. Deprecated. | |
Review Comment:
We will not deprecate this field, in fact, we'll get it supported in #6132
##########
docs/DataModels/DevLakeDomainLayerSchema.md:
##########
@@ -508,6 +508,27 @@ A cicd_task is the abstraction of the bottom-level CI/CD excecution.
| `finished_date` | datetime | 3 | When this task finished | | |
| `cicd_scope_id` | longtext | | The id of cicd_scope this task belongs to | FK_cicd_scopes.id |
+#### cicd_deployments
+A cicd_deployment is a deployment in a specific repo. It may come from several sources:
Review Comment:
It's not correct, a cicd_deployment is not a deployment in a specific repo. You can refer to the following texts:
A cicd_deployment refers to a deployment at the project level. In the case where a pipeline run or build deploys across three distinct repositories, it will be categorized as ONE cicd_deployment while being recorded as THREE separate [cicd_deployment_commits](url-to-table-cicd_deployment_commits).
##########
docs/DataModels/DevLakeDomainLayerSchema.md:
##########
@@ -508,6 +508,27 @@ A cicd_task is the abstraction of the bottom-level CI/CD excecution.
| `finished_date` | datetime | 3 | When this task finished | | |
| `cicd_scope_id` | longtext | | The id of cicd_scope this task belongs to | FK_cicd_scopes.id |
+#### cicd_deployments
+A cicd_deployment is a deployment in a specific repo. It may come from several sources:
+
+- Domain layer [cicd_pipelines](#cicd_pipelines), such as GitHub workflow runs, GitLab pipelines, Jenkins builds and BitBucket pipelines, etc. Deployments from cicd_pipelines will be transformed according to the regex configuration set in the Blueprint transformation before adding to this table.
+- Tool layer deployments: in v0.20, only the BitBucket\Bamboo\GitLab and GitHub(Use GraphQL APIs) plugins collect the independent deployment entity which you can find in table.\_tool_bitbucket_deployments and \_tool_bamboo_deploy_builds, there will be more in the future.
+- Deployments pushed directly from webhooks
+
+| **field** | **type** | **length** | **description** | **key** |
+|:----------------|:---------|:-----------|:---------------------------------------------------------------------------------------------------|:------------------|
+| `id` | varchar | 255 | The deployment_id of this deployment. The value will be set with `id` when it comes from webhooks. | PK |
+| `cicd_scope_id` | varchar | 255 | The id of cicd_scope this deployment belongs to | FK_cicd_scopes.id |
+| `name` | varchar | 255 | The name of the deployment | |
+| `result` | varchar | 100 | The result of the deployment, e.g. SUCCESS, FAILURE | |
+| `status` | varchar | 100 | The status of this deployment, e.g. IN_PROGRESS, DONE | |
+| `environment` | varchar | 255 | The environment to deploy, only 'PRODUCTION' deployment will appear in v0.17 | |
Review Comment:
Let's remove the 'in v0.17' part
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org