Skip to content

Commit

Permalink
Do not show upload test stats while running job on HUD (#5943)
Browse files Browse the repository at this point in the history
Companion to pytorch/pytorch#140453

Exclude this job from HUD to reduce confusion, as it is always going to
be red
  • Loading branch information
clee2000 authored Nov 20, 2024
1 parent 9a4ea4e commit a68eef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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 @@ -60,6 +60,7 @@ WITH job AS (
AND workflow.id in (select id from materialized_views.workflow_run_by_head_sha where head_sha = {sha: String})
AND job.id in (select id from materialized_views.workflow_job_by_head_sha where head_sha = {sha: String})
AND workflow.repository. 'full_name' = {repo: String } -- UNION
AND workflow.name != 'Upload test stats while running' -- Continuously running cron job that cancels itself to avoid running concurrently
UNION ALL
SELECT
workflow.created_at AS time,
Expand Down Expand Up @@ -96,6 +97,7 @@ WITH job AS (
AND workflow.event != 'repository_dispatch' -- Filter out repository_dispatch-triggered jobs, which have nothing to do with the SHA
AND workflow.id in (select id from materialized_views.workflow_run_by_head_sha where head_sha = {sha: String})
AND workflow.repository.full_name = {repo: String }
AND workflow.name != 'Upload test stats while running' -- Continuously running cron job that cancels itself to avoid running concurrently
)
SELECT
sha,
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 @@ -42,6 +42,7 @@ WITH job AS (
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)})
AND workflow.repository.'full_name' = {repo: String}
AND workflow.name != 'Upload test stats while running' -- Continuously running cron job that cancels itself to avoid running concurrently
-- Removed CircleCI query
)
SELECT
Expand Down

0 comments on commit a68eef5

Please sign in to comment.