Skip to content

Commit

Permalink
openqa-monitor-incompletes: Ignore custom git clone jobs
Browse files Browse the repository at this point in the history
Most likely the triggering user knows what he wants
  • Loading branch information
okurz committed Apr 21, 2020
1 parent 10b660d commit caf9786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openqa-monitor-incompletes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ host="${host:-"openqa.opensuse.org"}"
ssh_host="${ssh_host:-"$host"}"
scheme="${scheme:-"https"}"
failed_since="${failed_since:-"(NOW() - interval '24 hour')"}"
query="${query:-"select id,test from jobs where (result='incomplete' and (reason is null or reason not like 'quit%') and t_finished >= $failed_since and id not in (select job_id from comments where job_id is not null));"}"
query="${query:-"select id,test from jobs where (result='incomplete' and (reason is null or reason not like 'quit%') and t_finished >= $failed_since and id not in (select job_id from comments where job_id is not null) and id not in (select job_id from job_settings where key='CASEDIR'));"}"
# shellcheck disable=SC2029
for i in $(ssh "$ssh_host" "cd /tmp; sudo -u geekotest psql --no-align --tuples-only --command=\"$query\" openqa"); do
url="$scheme://$host/tests/${i%|*}"
Expand Down

0 comments on commit caf9786

Please sign in to comment.