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. <!-- What do you need to do to reproduce the bug? Please include job definitions or git repository structure if relevant --> <!-- Please add the definition of the job from `.gitlab-ci.yml` that is failing inside of the code blocks (```) below. --> <details> <summary> .gitlab-ci.yml </summary> `.base-ci.yml` ```yml Test: stage: test variables: MESSAGE: foo script: echo $MESSAGE ``` `.gitlab-ci.yml` ```yml --- include: local: '.base-ci.yml' stages: - test Test: parallel: matrix: # 248 character string - MESSAGE: "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn" ``` </details> ## Actual behavior No pipelines are created. MRs created from the branch spin waiting for the pipeline to spawn. <!-- What actually happens --> ## Expected behavior A push to a branch should trigger CI. <!-- What you should see instead --> ## Relevant logs and/or screenshots <!-- Paste the job logs inside of the code blocks (```) below so it would be easier to read. --> <details> <summary>working job log </summary> ```sh 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 ``` </details> ## Environment description https://gitlab.com/mmcclannahan/test-ci-issues I tested this on the public Gitlab runners as well ![image](/uploads/7bb561e8d985f425180e461d5bc704c4/image.png) ![image](/uploads/6916577c6909f4a60db0c03e038f5f72/image.png) ### Used GitLab Runner version ``` Running with gitlab-runner 14.3.2 (e0218c92) ``` <!-- Please run and paste the output of `gitlab-runner --version`. If you are using a Runner where you don't have access to, please paste at least the first lines the from build log, like: --> ## Possible fixes N/A
issue