/var/spool/mail/geekotest shows the email error reports from the cron jobs, e.g.
From geekotest@linux.site Fri Jul 20 07:30:22 2018
Return-Path: <geekotest@linux.site>
X-Original-To: geekotest
Delivered-To: geekotest@linux.site
Received: by linux.site (Postfix, from userid 1001)
id 1921B9D7E; Fri, 20 Jul 2018 07:30:22 +0200 (CEST)
From: "(Cron Daemon)" <geekotest@linux.site>
To: geekotest@linux.site
Subject: Cron <geekotest@openqa> env updateall=1 /usr/share/openqa/script/fetchneedles
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=118204>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/1001>
X-Cron-Env: <LC_CTYPE=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/lib/openqa>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=geekotest>
X-Cron-Env: <USER=geekotest>
Message-Id: <20180720053022.1921B9D7E@linux.site>
Date: Fri, 20 Jul 2018 07:30:13 +0200 (CEST)
Status: O
fatal: update_ref failed for ref 'refs/heads/master': cannot lock ref 'refs/heads/master': is at 32973dbfc5f034ff21e2723f5e99fc79862313ca but expected eb91c9d18cdec6edd2c594784a59a6fa6b4c926f
Could not move back to refs/heads/master
error: cannot lock ref 'refs/remotes/origin/master': is at 32973dbfc5f034ff21e2723f5e99fc79862313ca but expected eb91c9d18cdec6edd2c594784a59a6fa6b4c926f
You are not currently on a branch.
Please specify which branch you want to rebase against.
See git-rebase(1) for details.
git rebase <branch>
It seems for a very long time the needles repo was not updated properly.
What I did as user "geekotest":
cd /var/lib/openqa/share/tests/sle/products/sle/needles
git remote update
git branch temp
git pull --rebase origin master
<skip conflicting patches as the needles are already created over gitlab MR>
git push origin HEAD:master
git checkout master
git pull --rebase origin master
git branch -D temp
so the needle repo is ok again but the original problem – whatever it was in detail – can still reappear.
And I think we have a Schroedinger-Bug in https://gitlab.suse.de/openqa/salt-states-openqa/blob/master/etc/master/cron.d/SLES.CRON#L20 . Trying to push the test repo to github should not work. This should be the internal needles repo!
-> https://gitlab.suse.de/openqa/salt-states-openqa/merge_requests/52 to fix that.