Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openqa-query-for-job-label: Make interval configurable #119

Merged
merged 1 commit into from Nov 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion openqa-query-for-job-label
@@ -1,7 +1,8 @@
#!/bin/sh -e
host="${host:-"openqa.opensuse.org openqa.suse.de"}"
scheme="${scheme:-"https"}"
failed_since="${failed_since:-"(timezone('UTC', now()) - interval '30 day')"}"
interval="${interval:-"30 day"}"
failed_since="${failed_since:-"(timezone('UTC', now()) - interval '$interval')"}"
comment="${1:?"Need comment to search for"}"
limit="${limit:-10}"
query="${query:-"select jobs.id,t_finished,state,result,test,reason,host from jobs, comments, workers where t_finished >= $failed_since and jobs.assigned_worker_id = workers.id and jobs.id = comments.job_id and comments.text ~ '$comment' order by t_finished desc limit $limit;"}"
Expand Down