Skip to content

Allow project import even when `shared_runners_enabled` conflicts with its group

Problem

About the new feature allowing to enable/disable shared runners and project import, If shared runners are disabled for a group on destination (or on a gitlab.com parent group), it does not allow projects to import, mainly because field shared_runners_enabled=<boolean> conflicts on import (by just being part of the exported archive) and returns:

"import_error": "Error importing repository into <group-full-path> - Validation failed: Shared runners enabled cannot be enabled because parent group does not allow it"

Proposed solution

  • Keep project value if Allow projects and subgroups to override the group setting is set, as it already does
  • Otherwise inherit group setting of disabled, if a project has enabled set
  • Keep project setting of enabled/disabled, if group setting is enabled.

Workaround

Either:

Edited by Doug Stull