1
0
Fork 0
llvm-premerge-checks/scripts/metrics/SQL_queries/buildbot_per_commit.pgsql

9 lines
404 B
Text
Raw Normal View History

2021-06-23 09:37:17 +02:00
/* list last 100 git commits with number of builds and success rate */
SELECT git_commits.hash as revision,
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 git_commits.hash
ORDER BY git_commits.commit_time DesC
LIMIT 100