Matrix Jobs With >247 Character Variables Fail To Spawn Pipeline
Summary
When running parallel matrix jobs, if the variable length is >247 characters the pipeline will not be created.
Steps to reproduce
Create an empty project using the files below, then attempt to run a pipeline.
.gitlab-ci.yml
.base-ci.yml
Test:
stage: test
variables:
MESSAGE: foo
script: echo $MESSAGE
.gitlab-ci.yml
---
include:
local: '.base-ci.yml'
stages:
- test
Test:
parallel:
matrix:
# 248 character string
- MESSAGE: "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn"
Actual behavior
No pipelines are created. MRs created from the branch spin waiting for the pipeline to spawn.
Expected behavior
A push to a branch should trigger CI.
Relevant logs and/or screenshots
working job log
Running with gitlab-runner 14.3.2 (e0218c92)
on gitlab-runner-x86-gitlab-runner-7c9d787655-wj9zx agYjxM17
Resolving secrets 00:00
Preparing the "kubernetes" executor 00:00
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image xxxxxxxxxx.dkr.ecr.xxxxxxxx.amazonaws.com/gitlab-runner:1.334.0 ...
Using attach strategy to execute scripts...
Preparing environment 00:06
Waiting for pod gitlab/runner-agyjxm17-project-1314-concurrent-12pwp5 to be running, status is Pending
Waiting for pod gitlab/runner-agyjxm17-project-1314-concurrent-12pwp5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-agyjxm17-project-1314-concurrent-12pwp5 via gitlab-runner-x86-gitlab-runner-7c9d787655-wj9zx...
Getting source from Git repository 00:01
Fetching changes with git depth set to 10...
Initialized empty Git repository in /builds/agYjxM17/1/[MASKED]/test-ci-bug-feelsbad/.git/
Created fresh repository.
Checking out bfac1d29 as main...
Skipping Git submodules setup
Executing "step_script" stage of the job script 00:00
$ echo $FOO
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
Cleaning up project directory and file based variables 00:01
Job succeeded
Environment description
https://gitlab.com/mmcclannahan/test-ci-issues
I tested this on the public Gitlab runners as well
Used GitLab Runner version
Running with gitlab-runner 14.3.2 (e0218c92)
Possible fixes
N/A