added buildbot daily success rates
This commit is contained in:
parent
c2526bc84c
commit
4ae48e963d
1 changed files with 7 additions and 0 deletions
7
scripts/metrics/SQL_queries/buildbot_success_daily.pgsql
Normal file
7
scripts/metrics/SQL_queries/buildbot_success_daily.pgsql
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/* list number of builds and percentage of successful builds per day */
|
||||||
|
SELECT to_date(cast(git_commits.commit_time as TEXT),'YYYY-MM-DD') as date,
|
||||||
|
count(*) as num_builds,
|
||||||
|
(100.0*count(CASE WHEN buildbot_overview.result='build successful' THEN 1 END)/count(*)) as success_prct
|
||||||
|
FROM buildbot_overview, git_commits
|
||||||
|
WHERE buildbot_overview.revision = git_commits.hash
|
||||||
|
GROUP BY date ORDER BY date ASC;
|
Loading…
Reference in a new issue