Skip to content

Commit 6237269

Browse files
authored
Merge pull request #94302 from Dhruv-Soni11/RHDEVDOCS-6460
RHDEVDOCS-6460: Content creation for handling YAML parsing errors in PAC
2 parents 1cee454 + 70c15e1 commit 6237269

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/op-monitoring-pipeline-run-status-using-pipelines-as-code.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ For webhook, when the event is a pull request, the status is added as a comment
5050
.Failures
5151
If a namespace is matched to a `Repository` custom resource definition (CRD), {pac} emits its failure log messages in the Kubernetes events inside the namespace.
5252

53+
[discrete]
54+
.YAML parting error messages in pull request comments
55+
{pac} detects and reports YAML errors in `PipelineRun` definitions within the `.tekton` directory. When an invalid `PipelineRun` YAML is found in a pull request (PR) event, {pac} creates a comment on the pull request (PR) describing the error and halts the execution of other correctly formatted pipeline runs. Consider the following scenarios:
56+
57+
* If the PR is updated and new YAML errors are detected, the comment is updated with the latest information.
58+
* If no new errors are found, the existing comment remains unchanged and is not deleted.
59+
* If a validation issue is found, {pac} logs the error in the user namespace events log and the {pac} controller log.
60+
61+
These error scenarios do not halt the execution of valid pipeline runs because the system continues to process validated and matched pipeline runs, preventing a single validation problem from disrupting the entire automation workflow.
62+
5363
[discrete]
5464
.Status associated with Repository CRD
5565
The last 5 status messages for a pipeline run is stored inside the `Repository` custom resource.

0 commit comments

Comments
 (0)