gitlab-runner 16.11.0 exits almost immediately with "FATAL: exit status 1"
Summary
Starting with gitlab-runner 16.11.0 the gitlab-runner utility exits almost immediately with the error "FATAL: exit status 1"
Steps to reproduce
Minimum working example (empty .gitlab-ci.yml):
mkdir test
cd test
git init .
git commit --allow-empty -m "initial commit"
touch .gitlab-ci.yml
git add .gitlab-ci.yml
git commit -m "test"
gitlab-runner exec shell build
.gitlab-ci.yml
Actual behavior
Runtime platform arch=amd64 os=linux pid=179134 revision=91a27b2a version=16.11.0
FATAL: exit status 1
Expected behavior
In this example (empty CI instructions):
Runtime platform arch=amd64 os=linux pid=183541 revision=81ab07f6 version=16.10.0
FATAL: no job named "build"
Environment description
Tried with both "shell" and "docker" executors, same problem. Not using a config.toml, since I'm calling gitlab-runner directly.
Used GitLab Runner version
Version: 16.11.0
Git revision: 91a27b2a
Git branch: 16-11-stable
GO version: go1.21.9
Built: 2024-04-18T19:21:08+0000
OS/Arch: linux/amd64
Note: 16.10.0 gitlab-runner version works