limit parameter in runner config.toml is ignored
Summary
limit parameter in runner config.toml is ignored whilst using the following config file and .gitlab-ci.yaml file, I get multiple jobs running in parallel on the same runner in spite of defining the 'limit' parameter on my runner.
Steps to reproduce
Use the following config.toml and gitlab-ci.yaml and the stage 'test' will run multiple times in parallel.
$ cat ~/.gitlab-runner/config.toml
concurrent = 1
check_interval = 0
[[runners]]
name = "ios-gitlab-ci"
url = "redacted"
token = "redacted"
executor = "shell"
limit = 1
[runners.cache]
$ cat .gitlab-ci.yml
stages:
- nightly
- test
- beta
before_script:
- source /usr/local/share/chruby/chruby.sh
- chruby ruby 2.3.1
- export PATH=$PATH:/usr/local/bin
deploy_nightly:
stage: nightly
only:
- development
script:
- ./jenkins.sh
tags:
- ios
test_project:
stage: test
script:
- fastlane test
tags:
- ios
artifacts:
paths:
- ./test-output/*
when: always
deploy_beta:
stage: beta
only:
- /^release_.*$/
- tags
except:
- branches
script:
- fastlane beta
variables:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: "60"
Actual behavior
More than one job will run at once. Because this happens in the same git working copy, all parallel running builds will break each other resulting in me having to limit all jobs to a single git branch in order to have a function Gitlab CI
Expected behavior
Jobs should be listed as pending whilst only a single job per runner executes.
Relevant logs and/or screenshots
Environment description
The runner in question is a specific runner locked to a specific project. The runner is running in user mode on MacOS 10.12.5
Gitlab: GitLab Enterprise Edition 9.2.2-ee b004167
Used GitLab Runner version
gitlab-runner:
$ gitlab-runner --version
Version: 9.3.0
Git revision: 3df822b
Git branch: 9-3-stable
GO version: go1.7.5
Built: Thu, 22 Jun 2017 10:57:56 +0000
OS/Arch: darwin/amd64