-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report: Jobs failing subsection (#75)
* WIP old known issues Signed-off-by: Crola1702 <[email protected]> * Pass filter issues responsibility to sqlite Signed-off-by: Crola1702 <[email protected]> * Add jobs_failing section to lib, report and formatter Signed-off-by: Crola1702 <[email protected]> * Remove unused code Signed-off-by: Crola1702 <[email protected]> * Remove filter_known Signed-off-by: Crola1702 <[email protected]> * Refactor to use args Signed-off-by: Crola1702 <[email protected]> * Remove unused code Signed-off-by: Crola1702 <[email protected]> --------- Signed-off-by: Crola1702 <[email protected]>
- Loading branch information
Showing
8 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT job_name, last_success_time | ||
FROM ( | ||
SELECT bs.job_name, MAX(bs.build_datetime) AS last_success_time | ||
FROM build_status bs | ||
INNER JOIN server_status ss ON bs.job_name = ss.job_name | ||
WHERE bs.status = 'SUCCESS' | ||
GROUP BY bs.job_name | ||
) AS last_success_times | ||
ORDER BY last_success_time ASC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SELECT bs.job_name, | ||
COUNT(*) as failed_build_count | ||
FROM build_status bs | ||
INNER JOIN server_status ss ON bs.job_name = ss.job_name | ||
WHERE bs.job_name NOT IN ( | ||
SELECT job_name | ||
FROM build_status | ||
WHERE status = 'SUCCESS' | ||
) | ||
GROUP BY bs.job_name | ||
ORDER BY failed_build_count DESC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters