Skip to content

🔧 YAML Syntax Error in Tekton PipelineRun: Trailing Backslash Causes Parsing Failure #1371

@coderabbitai

Description

@coderabbitai

Problem Description

A YAML syntax error has been identified in the Tekton PipelineRun configuration file that prevents proper parsing of the pipeline definition.

File: .tekton/odh-workbench-jupyter-pytorch-rocm-py311-ubi9-push.yaml
Line: 10
Error: Trailing backslash after annotation value causing YAML parser to fail

Technical Details

The issue occurs on line 10 where there's an invalid trailing backslash:

build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"\

YAML Parser Error:

YAML syntax error: while parsing a block mapping
expected <block end>, but found '<scalar>'
Line: 9

Root Cause Analysis

  • The trailing backslash (\) suggests line continuation syntax from shell scripts
  • This syntax is not valid in YAML block mappings
  • All other similar PipelineRun files in the repository use the clean format without backslashes
  • This appears to be a copy-paste error or automation failure during file generation

Impact

  • Pipeline Execution: The PipelineRun cannot be parsed by Tekton, preventing the pipeline from executing
  • CI/CD Failure: Build automation for the PyTorch ROCm Python 3.11 UBI9 image is broken
  • Deployment Impact: New image builds cannot be triggered for this component

Solution

Remove the trailing backslash from line 10:

- build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"\
+ build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"

Acceptance Criteria

  • Remove trailing backslash from line 10 in .tekton/odh-workbench-jupyter-pytorch-rocm-py311-ubi9-push.yaml
  • Verify YAML syntax validation passes
  • Confirm PipelineRun can be parsed by Tekton
  • Test pipeline execution to ensure it works correctly
  • Review automation scripts/tools that generated this file to prevent similar issues

Context

This issue was discovered during PR review when another pipeline bot flagged line 9 for YAML syntax errors. The issue affects the OpenShift CI pipeline for building the PyTorch ROCm Python 3.11 UBI9 workbench image.

Related Files

  • .tekton/odh-workbench-jupyter-pytorch-rocm-py311-ubi9-push.yaml - File containing the syntax error

Notification

@riprasad - Please note that automation failed to work properly during the generation of this Tekton PipelineRun file, resulting in invalid YAML syntax that breaks the CI/CD pipeline.

PR Context: #1365
Comment: #1365 (comment)

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

Status

✅Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions