diff --git a/torchci/clickhouse_queries/hud_query/query.sql b/torchci/clickhouse_queries/hud_query/query.sql index 796167d52e..7f8d038d49 100644 --- a/torchci/clickhouse_queries/hud_query/query.sql +++ b/torchci/clickhouse_queries/hud_query/query.sql @@ -32,7 +32,8 @@ WITH job AS ( ) -- Should be filtered out by the workflow_event filters, but workflow_event takes some time to populate AND job.workflow_event != 'workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA AND job.workflow_event != 'repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA - AND NOT (job.workflow_event = 'workflow_dispatch' AND job.head_branch LIKE 'trunk/%') -- Filter out restart jobs + -- TODO: get a better way to filter out the autorevert jobs, see https://github.com/pytorch/test-infra/pull/7057 for ideas + AND job.head_branch NOT LIKE 'trunk/%' -- Filter out restart jobs AND job.id in (select id from materialized_views.workflow_job_by_head_sha where head_sha in {shas: Array(String)}) AND job.repository_full_name = {repo: String} AND job.workflow_name != 'Upload test stats while running' -- Continuously running cron job that cancels itself to avoid running concurrently