Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def _fetch_workflow_data(self):
AND head_branch = 'main'
AND created_at >= {lookback_time:DateTime}
AND dynamoKey LIKE 'pytorch/pytorch/%'
AND workflow_event != 'workflow_dispatch' -- Exclude restart jobs
ORDER BY
workflow_name, workflow_created_at DESC, head_sha, name
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ WITH job AS (
AND job.name != 'generate-test-matrix'
AND workflow.event != 'workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
AND workflow.event != 'repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
AND NOT (workflow.event = 'workflow_dispatch' AND workflow.head_branch 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 workflow.id in (select id from materialized_views.workflow_run_by_head_sha where head_sha in {shas: Array(String)})
),
Expand Down
2 changes: 2 additions & 0 deletions torchci/clickhouse_queries/commit_jobs_query/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ WITH job AS (
AND job.name != 'generate-test-matrix'
AND workflow.event != 'workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
AND workflow.event != 'repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
AND NOT (workflow.event = 'workflow_dispatch' AND workflow.head_branch LIKE 'trunk/%') -- Filter out restart jobs
AND workflow.id in (select id from materialized_views.workflow_run_by_head_sha where head_sha = {sha: String})
AND (
{workflowId: Int64} = 0
Expand Down Expand Up @@ -87,6 +88,7 @@ WITH job AS (
WHERE
workflow.event != 'workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
AND workflow.event != 'repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
AND NOT (workflow.event = 'workflow_dispatch' AND workflow.head_branch LIKE 'trunk/%') -- Filter out restart jobs
AND workflow.id in (select id from materialized_views.workflow_run_by_head_sha where head_sha = {sha: String})
AND (
{workflowId: Int64} = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ with failed_jobs as (
and w.name in ('trunk', 'pull')
and job.name not like '%mem_leak_check%'
and job.name not like '%rerun_disabled_tests%'
and w.event != 'workflow_dispatch' -- Filter out restart jobs
order by
job._event_time
),
Expand Down
1 change: 1 addition & 0 deletions torchci/clickhouse_queries/hud_query/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ 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
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
Expand Down