gitlab-runner exec: exit status 1
Summary
gitlab-runner exec is broken since !4645 (merged)
Steps to reproduce
mkdir test
git init
echo "test:
image: alpine:latest
script:
- 'echo test'" > .gitlab-ci.yml
git add .
git commit -m "Initial commit"
git commit --allow-empty -m "Runner bug" # gitlab-runner exec will not run with the first commit (not part of this issue)
.gitlab-ci.yml
test:
image: alpine:latest
script:
- 'echo test'
Actual behavior
Runtime platform arch=amd64 os=linux pid=74166 revision=91a27b2a version=16.11.0
FATAL: exit status 1
Expected behavior
gitlab-runner exec docker test
runs the job
Relevant logs and/or screenshots
Using strace
shows gitlab-runner trying to run git config extensions.objectFormat
:
[pid 35871] execve("/usr/bin/git", ["git", "config", "extensions.objectFormat"], 0xc0007921c0 /* 52 vars */ <unfinished ...>
However, this fails, since the value is not set, and git exits with code 1.
Environment description
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
$ git --version
git version 2.39.2
Possible fixes
It seems to me this bug was introduced in !4645 (merged)
The problem is that it is expected that git config extensions.objectFormat
will succeed and return a value, which is not the case by default: !4645 (diffs)