# build
# by_build
# build_comment
+# build_group
# job
# user
# by_user
builds.id AS build,
NULL::integer AS by_build,
NULL::integer AS build_comment,
+ NULL::integer AS build_group,
NULL::integer AS job,
NULL::integer AS user,
builds.owner_id AS by_user,
builds.id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
NULL AS by_user,
builds.id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
builds.deleted_by AS by_user,
builds.id AS build,
builds.deprecating_build_id AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
builds.deprecated_by AS by_user,
build_comments.build_id AS build,
NULL AS by_build,
build_comments.id AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
build_comments.user_id AS by_user,
build_watchers.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
build_watchers.user_id AS user,
NULL AS by_user,
build_watchers.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
build_watchers.user_id AS user,
NULL AS by_user,
repository_builds.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
repository_builds.added_by AS by_user,
repository_builds.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
repository_builds.removed_by AS by_user,
UNION ALL
- -- Build Scores
+ -- Build Points
SELECT
'build-points' AS type,
build_points.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
NULL AS job,
NULL AS user,
build_points.user_id AS by_user,
UNION ALL
+ -- Test Builds
+ SELECT
+ CASE WHEN build_groups.failed IS TRUE THEN 'test-builds-failed'
+ ELSE 'test-builds-succeeded' END AS type,
+ build_groups.finished_at AS t,
+ 4 AS priority,
+ builds.id AS build,
+ NULL AS by_build,
+ NULL AS build_comment,
+ build_groups.id AS build_group,
+ NULL AS job,
+ NULL AS user,
+ NULL AS by_user,
+ NULL AS builder,
+ NULL AS repository,
+ NULL AS points
+ FROM
+ builds
+ JOIN
+ build_groups ON builds.test_group_id = build_groups.id
+ WHERE
+ builds.deleted_at IS NULL
+ AND
+ build_groups.deleted_at IS NULL
+ AND
+ build_groups.finished_at IS NOT NULL
+
+ UNION ALL
+
-- Jobs Creations
SELECT
'job-created' AS type,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
jobs.id AS job,
NULL AS user,
NULL AS by_user,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
jobs.id AS job,
NULL AS user,
NULL AS by_user,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
jobs.id AS job,
NULL AS user,
NULL AS by_user,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
jobs.id AS job,
NULL AS user,
jobs.aborted_by AS by_user,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
jobs.id AS job,
NULL AS user,
NULL AS by_user,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
+ NULL AS build_group,
jobs.id AS job,
NULL AS user,
NULL AS by_user,
# Build Comments
"build_comment" : self.backend.builds.comments.get_by_id,
+ # Build Groups
+ "build_group" : self.backend.builds.groups.get_by_id,
+
# Jobs
"job" : self.backend.jobs.get_by_id,
<p class="icon is-large has-text-danger">
<i class="fa-solid fa-2x fa-thumbs-down"></i>
</p>
+ {% elif event.type == "test-builds-succeeded" %}
+ <p class="icon is-large has-text-success">
+ <i class="fa-solid fa-2x fa-flask-vial"></i>
+ </p>
+ {% elif event.type == "test-builds-failed" %}
+ <p class="icon is-large has-text-danger">
+ <i class="fa-solid fa-2x fa-flask-vial"></i>
+ </p>
{% else %}
<p class="icon is-large has-text-light">
<i class="fa-solid fa-2x fa-question"></i>
{% elif event.points < 0 %}
{{ _("This build has lost one point", "This build has lost %(points)s points", -event.points) % { "points" : -event.points } }}
{% end %}
+ {% elif event.type == "test-builds-succeeded" %}
+ {{ _("All Test Builds Succeeded") }}
+ {% elif event.type == "test-builds-failed" %}
+ {{ _("Test Builds Failed") }}
{% elif event.type == "job-created" %}
{{ _("Job Created") }}
{% elif event.type == "job-failed" %}