Gitlab CI pipeline job hangs until timeout but only when CI_DEBUG_TRACE is not set
Summary
As noted by customer:
We have a Gitlab CI pipeline job which always hangs until timeout, even is the result is ok. The gitlab-runner (official rpm version on Centos, version 10.8.0) finishes correctly to deal with the job, but the Gitlab server seems to not be synchronized with it.
Steps to reproduce
It's a Java / Maven build, .gitlab-ci.yml
and config.toml
can be found in the customer issue however we have not been able to reproduce this behaviour.
Actual behavior
Job hangs at section_start:1529587476:upload_artifacts
until timeout, except in the case that CI_DEBUG_TRACE is set to "true". Once timeout expires the job is reported as successful.
Expected behavior
What you should see instead
Job should not hang and CI_DEBUG_TRACE should not effect the outcome of the job.
Relevant logs and/or screenshots
Please see customer issue for build logs, .gitlab-ci.yml
and config.toml
:
ZD: https://gitlab.zendesk.com/agent/tickets/98897
Environment description
Omnibus GitLab 10.8.4
# docker info
Containers: 6
Running: 0
Paused: 0
Stopped: 6
Images: 4
Server Version: 18.03.1-ce
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-862.3.3.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 7.639GiB
Name: `<Omitted>`
ID: `<Omitted>`
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Used GitLab Runner version
# gitlab-runner -version
Version: 10.8.0
Git revision: 079aad9e
Git branch:
GO version: go1.8.7
Built: 2018-05-22T03:24:56+00:00
OS/Arch: linux/amd64