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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]