FS#59442 - [gitlab-runner] Built with incorrect REVISION 081978a instead of 081978aa

Attached to Project: Community Packages
Opened by Georg Rollinger (grollinger) - Wednesday, 25 July 2018, 07:45 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 25 July 2018, 14:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When trying to run a job on the gitlab-runner, the job fails immediately with:

Pulling docker image gitlab/gitlab-runner-helper:x86_64-081978a ...
ERROR: Job failed: Error response from daemon: manifest for gitlab/gitlab-runner-helper:x86_64-081978a not found (executor_docker.go:168:1s)

The reason for that is, that the package version 11.1.0-1 was built using an incorrect value for REVISION.
The following line in PKGBUILD, used to retrieve the revision

local revision=$(ls -d ${_srcdir}* | rev | cut -c 34-40 | rev)

returns just 7 characters of the revision, but the docker images are tagged using the first 8 characters.

Changing that line to

local revision=$(ls -d ${_srcdir}* | rev | cut -c 33-40 | rev)

fixes the issue.

Additional Information:
Package version 11.1.0-1
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 25 July 2018, 14:26 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#59432 
Comment by Adrien (Ethaligan) - Wednesday, 25 July 2018, 12:48 GMT
Using Docker executor with image alpine:latest ...
Pulling docker image gitlab/gitlab-runner-helper:x86_64-081978a ...
ERROR: Failed to create container volume for /builds/ethaligan Error response from daemon: manifest for gitlab/gitlab-runner-helper:x86_64-081978a not found (executor_docker.go:168:1s)
ERROR: Job failed: Error response from daemon: manifest for gitlab/gitlab-runner-helper:x86_64-081978a not found (executor_docker.go:168:1s)

Same issue on my side with gitlab-runner 11.1.0-1.

Loading...