File tree Expand file tree Collapse file tree 5 files changed +6
-0
lines changed
aws/lambda/pytorch-auto-revert/pytorch_auto_revert
torchci/clickhouse_queries Expand file tree Collapse file tree 5 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ def _fetch_workflow_data(self):
116
116
AND head_branch = 'main'
117
117
AND created_at >= {lookback_time:DateTime}
118
118
AND dynamoKey LIKE 'pytorch/pytorch/%'
119
+ AND workflow_event != 'workflow_dispatch' -- Exclude restart jobs
119
120
ORDER BY
120
121
workflow_name, workflow_created_at DESC, head_sha, name
121
122
"""
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ WITH job AS (
30
30
AND job .name != ' generate-test-matrix'
31
31
AND workflow .event != ' workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
32
32
AND workflow .event != ' repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
33
+ AND NOT (workflow .event = ' workflow_dispatch' AND workflow .head_branch LIKE ' trunk/%' ) -- Filter out restart jobs
33
34
and job .id in (select id from materialized_views .workflow_job_by_head_sha where head_sha in {shas: Array(String)})
34
35
and workflow .id in (select id from materialized_views .workflow_run_by_head_sha where head_sha in {shas: Array(String)})
35
36
),
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ WITH job AS (
45
45
AND job .name != ' generate-test-matrix'
46
46
AND workflow .event != ' workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
47
47
AND workflow .event != ' repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
48
+ AND NOT (workflow .event = ' workflow_dispatch' AND workflow .head_branch LIKE ' trunk/%' ) -- Filter out restart jobs
48
49
AND workflow .id in (select id from materialized_views .workflow_run_by_head_sha where head_sha = {sha: String})
49
50
AND (
50
51
{workflowId: Int64} = 0
@@ -87,6 +88,7 @@ WITH job AS (
87
88
WHERE
88
89
workflow .event != ' workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
89
90
AND workflow .event != ' repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
91
+ AND NOT (workflow .event = ' workflow_dispatch' AND workflow .head_branch LIKE ' trunk/%' ) -- Filter out restart jobs
90
92
AND workflow .id in (select id from materialized_views .workflow_run_by_head_sha where head_sha = {sha: String})
91
93
AND (
92
94
{workflowId: Int64} = 0
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ with failed_jobs as (
37
37
and w .name in (' trunk' , ' pull' )
38
38
and job .name not like ' %mem_leak_check%'
39
39
and job .name not like ' %rerun_disabled_tests%'
40
+ and w .event != ' workflow_dispatch' -- Filter out restart jobs
40
41
order by
41
42
job ._event_time
42
43
),
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ WITH job AS (
32
32
) -- Should be filtered out by the workflow_event filters, but workflow_event takes some time to populate
33
33
AND job .workflow_event != ' workflow_run' -- Filter out workflow_run-triggered jobs, which have nothing to do with the SHA
34
34
AND job .workflow_event != ' repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
35
+ AND NOT (job .workflow_event = ' workflow_dispatch' AND job .head_branch LIKE ' trunk/%' ) -- Filter out restart jobs
35
36
AND job .id in (select id from materialized_views .workflow_job_by_head_sha where head_sha in {shas: Array(String)})
36
37
AND job .repository_full_name = {repo: String}
37
38
AND job .workflow_name != ' Upload test stats while running' -- Continuously running cron job that cancels itself to avoid running concurrently
You can’t perform that action at this time.
0 commit comments