Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 42,950
    • Issues 42,950
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,384
    • Merge requests 1,384
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLabGitLab
  • Issues
  • #28212
Closed
Open
Created Apr 23, 2019 by Maurice Meyer@morremeyer🏳️‍🌈

gitlab-ci.yml can’t have more than 50 includes

Summary

Our .gitlab-ci.yml has 51 includes. Version 11.9 introduced a breaking change that disallows this.

Steps to reproduce

Configure your .gitlab-ci.yml with more than 50 includes.

Example Project

https://gitlab.com/mauricemeyer/50-includes

The affected pipeline shows the error message.

What is the current bug behavior?

The yaml validation fails with Maximum of 50 nested includes are allowed!

What is the expected correct behavior?

The yaml validation does not fail with Maximum of 50 nested includes are allowed!, but runs my pipeline instead.

Background:

  • We very explicitly decided to have more than 50 includes in our .gitlab-ci.yml
  • The limit of 50 includes seems very arbitrary
  • If the limit of 50 includes makes sense by default, it should at least be configurable

Output of checks

This bug happens on GitLab.com

Possible fixes

  • Remove this seemingly arbitrary limitation
  • Make the limit configurable
  • Don’t introduce breaking changes in minor versions (imho, this is a breaking change as a working pipeline is not running anymore after updating to an affected version)
Edited Apr 23, 2019 by Maurice Meyer
Assignee
Assign to
Time tracking