CI/CD
이 그룹은 CI/CD(지속적 통합·지속적 배포, Continuous Integration and Continuous Deployment) 시스템 내 파이프라인 특정 속성을 설명해요. 여기서 파이프라인이란 새로운 소프트웨어 버전을 제공하기 위해 수행되는 일련의 단계를 말해요. 이는 파이프라인이 어떤 것을 개발하고 생산하는 시스템이라는 Britannica의 파이프라인 정의와 일치해요. CI/CD 맥락에서 파이프라인은 소프트웨어를 생산하거나 제공해요.
출처: 문서
본문
CI/CD 파이프라인 속성 (CI/CD Pipeline Attributes)
이 그룹은 CI/CD(지속적 통합·지속적 배포) 시스템 내 파이프라인 특정 속성을 설명해요. 여기서 파이프라인이란 새로운 소프트웨어 버전을 제공하기 위해 수행되는 일련의 단계를 말해요. 이는 파이프라인이 어떤 것을 개발하고 생산하는 시스템이라는 Britannica의 파이프라인 정의와 일치해요. CI/CD 맥락에서 파이프라인은 소프트웨어를 생산하거나 제공해요.
속성 (Attributes):
| Key | Stability | Value Type | Description | Example Values |
|---|---|---|---|---|
cicd.pipeline.action.name |
string | The kind of action a pipeline run is performing. | BUILD; RUN; SYNC |
|
cicd.pipeline.name |
string | The human readable name of the pipeline within a CI/CD system. | Build and Test; Lint; Deploy Go Project; deploy_to_environment |
|
cicd.pipeline.result |
string | The result of a pipeline run. | success; failure; timeout; skip |
|
cicd.pipeline.run.id |
string | The unique identifier of a pipeline run within a CI/CD system. | 120912 |
|
cicd.pipeline.run.state |
string | The pipeline run goes through these states during its lifecycle. | pending; executing; finalizing |
|
cicd.pipeline.run.url.full |
string | The URL of the pipeline run, providing the complete address in order to locate and identify the pipeline run. | https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075 |
|
cicd.pipeline.task.name |
string | The human readable name of a task within a pipeline. Task here most closely aligns with a computing process in a pipeline. Other terms for tasks include commands, steps, and procedures. | Run GoLang Linter; Go Build; go-test; deploy_binary |
|
cicd.pipeline.task.run.id |
string | The unique identifier of a task run within a pipeline. [1] | 12097 |
|
cicd.pipeline.task.run.result |
string | The result of a task run. | success; failure; timeout; skip |
|
cicd.pipeline.task.run.url.full |
string | The URL of the pipeline task run, providing the complete address in order to locate and identify the pipeline task run. | https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075 |
|
cicd.pipeline.task.type |
string | The type of the task within a pipeline. | build; test; deploy |
|
cicd.system.component |
string | The name of a component of the CI/CD system. | controller; scheduler; agent |
|
cicd.worker.id |
string | The unique identifier of a worker within a CI/CD system. | abc123; 10.0.1.2; controller |
|
cicd.worker.name |
string | The name of a worker within a CI/CD system. | agent-abc; controller; Ubuntu LTS |
|
cicd.worker.state |
string | The state of a CI/CD worker / agent. | available; busy; offline |
|
cicd.worker.url.full |
string | The URL of the worker, providing the complete address in order to locate and identify the worker. | https://cicd.example.org/worker/abc123 |
[1] cicd.pipeline.task.run.id: 주어진 파이프라인 실행과 작업에 대해 cicd.pipeline.task.run.id는 그 실행 내에서 고유해야 해요(MUST). 같은 파이프라인의 다른 실행에 걸친 같은 작업의 경우 cicd.pipeline.task.run.id는 같게 유지될 수 있어요(MAY), 이렇게 하면 여러 파이프라인 실행에 걸쳐 cicd.pipeline.task.run.result 값을 상호 대조(correlation)할 수 있어요.
cicd.pipeline.action.name에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면
반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).
| Value | Description | Stability |
|---|---|---|
BUILD |
The pipeline run is executing a build. | |
RUN |
The pipeline run is executing. | |
SYNC |
The pipeline run is executing a sync. |
cicd.pipeline.result에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면
반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).
| Value | Description | Stability |
|---|---|---|
cancellation |
The pipeline run was cancelled, eg. by a user manually cancelling the pipeline run. | |
error |
The pipeline run failed due to an error in the CI/CD system, eg. due to the worker being killed. | |
failure |
The pipeline run did not finish successfully, eg. due to a compile error or a failing test. Such failures are usually detected by non-zero exit codes of the tools executed in the pipeline run. | |
skip |
The pipeline run was skipped, eg. due to a precondition not being met. | |
success |
The pipeline run finished successfully. | |
timeout |
A timeout caused the pipeline run to be interrupted. |
cicd.pipeline.run.state에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면
반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).
| Value | Description | Stability |
|---|---|---|
executing |
The executing state spans the execution of any run tasks (eg. build, test). | |
finalizing |
The finalizing state spans from when the run has finished executing (eg. cleanup of run resources). | |
pending |
The run pending state spans from the event triggering the pipeline run until the execution of the run starts (eg. time spent in a queue, provisioning agents, creating run resources). |
cicd.pipeline.task.run.result에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면
반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).
| Value | Description | Stability |
|---|---|---|
cancellation |
The task run was cancelled, eg. by a user manually cancelling the task run. | |
error |
The task run failed due to an error in the CI/CD system, eg. due to the worker being killed. | |
failure |
The task run did not finish successfully, eg. due to a compile error or a failing test. Such failures are usually detected by non-zero exit codes of the tools executed in the task run. | |
skip |
The task run was skipped, eg. due to a precondition not being met. | |
success |
The task run finished successfully. | |
timeout |
A timeout caused the task run to be interrupted. |
cicd.pipeline.task.type에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면
반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).
| Value | Description | Stability |
|---|---|---|
build |
build | |
deploy |
deploy | |
test |
test |
cicd.worker.state에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면
반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).
| Value | Description | Stability |
|---|---|---|
available |
The worker is not performing work for the CI/CD system. It is available to the CI/CD system to perform work on (online / idle). [2] | |
busy |
The worker is performing work for the CI/CD system. | |
offline |
The worker is not available to the CI/CD system (disconnected / down). |
[2]: 파이프라인은 실행할 수 있는 워커에 대한 조건이 있을 수 있으므로 모든 워커가 모든 파이프라인에 사용 가능한 것은 아닐 수 있어요.