gitlab ci - resource groups are not blocked for succeeding pipelines if there are still stages left in a running pipeline that needs that resource
actually a resource group is allocated only per stage https://docs.gitlab.com/ce/ci/yaml/#resource_group
this leads to simultan usage of the group from different pipelines and stuck pipelines if there are multiple stages using this resource_group.
example: Pipeline: stage1 & stage2 uses resource_group: test
- stage1 started in a pipeline (named stage1 at pipeline 1: stage1@1)
- a second pipeline is started
- stage1@2 is blocked due to blocked resource_group
✅ - stage1@1 succeeds
- stage1@2 starts and stage2@1 is blocked
💊
expected:
- stage1@2 and stage2@2 are blocked unless stage1@1 and stage1@1 are finished