Undefined Error with Dynamic Child Pipelines

Undefined Error with Dynamic child pipelines

We are currently using a self-hosted instance of Gitlab 16.1.2. We mainly use dynamic child pipeline until today where we keep getting the following error on previously working pipelines:

Undefined error (01HBGJKMQDHE8TT90DPC6FSJRB)

The pipeline error showing unknown failure:

The child pipeline error showing undefined error:

This simple gitlab-ci.yml file returns previous error:

stages:
  - child-generator
  - child-trigger

default:
  retry:
    when: runner_system_failure
    max: 2

pipeline-generator:
  image: python:3
  stage: child-generator
  variables: {}
  script:
    - |
      cat > gitlab_config_child.yaml <<EOL
      stages:
        - build

      default:
        retry:
          when: runner_system_failure
          max: 2

      pipeline-generator:
        image: python:3
        stage: build
        script:
          - echo Hello
      EOL
  artifacts:
    paths:
      - gitlab_config_child.yaml

trigger-child-pipeline:
  stage: child-trigger
  trigger:
    include:
      - artifact: gitlab_config_child.yaml
        job: pipeline-generator
    strategy: depend

Doing the exact same pipeline using a static child pipeline yaml file works fine:

stages:
  - child-generator
  - child-trigger

default:
  retry:
    when: runner_system_failure
    max: 2

trigger-child-pipeline:
  stage: child-trigger
  trigger:
    include: gitlab_config_child.yaml
    strategy: depend

We are using kubernetes executor runners deployed with the gitlab-runner Helm chart. No strange logs shown within the runners.
I could not find any information on this specific undefined error…

Thanks for your help !

The error says “yaml invalid”. The yaml generated is stored as an artifact, so I’d suggest finding the artifact and looking at what is being generated.

1 Like

Hey @Elliott !

I tried to run a pipeline with the exact same content of my downloaded artifact gitlab_config_child.yaml, with a simple copy-paste. So my .gitlab-ci.yml looks like this

stages:
  - build

default:
  retry:
    when: runner_system_failure
    max: 2

pipeline-generator:
  image: python:3
  stage: build
  script:
    - echo Hello

And it run just fine on my GitLab instance :confused:

Problem solve after updating Gitlab Instance from 16.1.2 to 16.4.2.
For information, our Gitlab runners are still in 16.1.1. So it clearly seems to be an issue with our Gitlab Instance.