Actions
Fix #10264
closeddocker-test-helper fails on detached head
% Done:
100%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
If the working tree is on a detached head (i.e. the commit may be unreachable from from any git refs), docker-test-helper will fail to pull the relevant commit when initializing the working directory for the targetted operating systems.
+ local os_type=ubuntu + local os_version=14.04 + local all + local remove=false + local shell=false + local compile=false + local dev=false + local user=gitlab_ci_runner + local opts + true + case "$1" in + all='([ubuntu]="14.04" [centos]="centos7")' + shift 2 + true + case "$1" in + user=root + shift 2 + true + case "$1" in + dev=true + shift + true + case "$1" in + shift + break + test -z '([ubuntu]="14.04" [centos]="centos7")' + declare -A os_type2versions + eval 'os_type2versions=([ubuntu]="14.04" [centos]="centos7")' ++ os_type2versions=([ubuntu]="14.04" [centos]="centos7") + for os_type in '${!os_type2versions[@]}' + for os_version in '${os_type2versions[$os_type]}' + false + false + false + run_in_docker centos centos7 true root '' test/ceph-disk.sh test_activate_dev + local os_type=centos + shift + local os_version=centos7 + shift + local dev=true + shift + local user=root + shift + local opts= + shift + local script=test/ceph-disk.sh + setup_downstream centos centos7 + local os_type=centos + local os_version=centos7 ++ get_image_name centos centos7 ++ local os_type=centos ++ local os_version=centos7 ++ echo ceph-centos-centos7 + local image=ceph-centos-centos7 ++ git rev-parse --show-toplevel + local root=/home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-5 ++ git rev-parse HEAD + local commit=aa4610dca8af9777cda65ed137a722cb141b0660 ++ dirname /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-5 + local dir=/home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds ++ basename /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-5 + local upstream=project-5 ++ get_downstream centos centos7 ++ local os_type=centos ++ local os_version=centos7 +++ get_image_name centos centos7 +++ local os_type=centos +++ local os_version=centos7 +++ echo ceph-centos-centos7 ++ local image=ceph-centos-centos7 +++ git rev-parse --show-toplevel ++ local root=/home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-5 +++ dirname /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-5 ++ local dir=/home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds +++ basename /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-5 ++ local upstream=project-5 ++ echo /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/ceph-centos-centos7 + local downstream=/home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/ceph-centos-centos7 + cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds + test -d /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/ceph-centos-centos7 + cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/ceph-centos-centos7 + git fetch origin + git reset --hard aa4610dca8af9777cda65ed137a722cb141b0660 fatal: Could not parse object 'aa4610dca8af9777cda65ed137a722cb141b0660'.
Actions