Skip to content

[CRCR] Add nightly results view to per-repo dashboard - #8441

Merged
atalman merged 12 commits into
mainfrom
crcr-nightly-per-repo-view
Aug 6, 2026
Merged

[CRCR] Add nightly results view to per-repo dashboard#8441
atalman merged 12 commits into
mainfrom
crcr-nightly-per-repo-view

Conversation

@subinz1

@subinz1 subinz1 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds ?event=nightly query parameter support to the per-repo CRCR dashboard page (/crcr/{org}/{repo})
  • When event=nightly, the page shows nightly CI results grouped by SHA with Time/SHA/Commit columns (no PR number or author)
  • The CRCR summary page's nightly tab now links repos to /crcr/{org}/{repo}?event=nightly so navigation is context-aware
  • Creates a new crcr_nightly_dashboard ClickHouse query that filters by event_type = 'nightly' and deduplicates by max(run_attempt) per run_id + job_name

Navigation flow

Source Link Target
CRCR Summary → Pull Requests tab → click repo /crcr/{org}/{repo} (default, PR results)
CRCR Summary → Nightly tab → click repo /crcr/{org}/{repo}?event=nightly (nightly results)

Mockup

Test plan

  • Visit /crcr/{org}/{repo} — should show PR-based results (default behavior unchanged)
  • Visit /crcr/{org}/{repo}?event=nightly — should show nightly results grouped by SHA
  • CRCR summary nightly tab repo links navigate to ?event=nightly
  • Nightly view hides PR/Author columns and stat cards
  • Time range selector works for nightly view
  • Empty state displays correctly when no nightly data exists

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: torchci.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 5, 2026
@subinz1
subinz1 requested a review from atalman August 5, 2026 11:43
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
torchci Ready Ready Preview Aug 6, 2026 3:16pm

Request Review

@subinz1

subinz1 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Mockup: Nightly Per-Repo View

This is what /crcr/TorchedHat/pytorch-redhat-ci?event=nightly would look like:

Key differences from the PR view:

  • Title shows repo : nightly suffix
  • 3 nightly-specific summary cards: Pass Rate, Nightly Runs (unique SHAs), Failures
  • No PR or Author columns — rows are grouped by SHA
  • Commit column shows actual commit titles (fetched via GitHub GraphQL API)
  • Columns are the nightly workflow stages: build, cpu-tests, inductor-tests, sgpu-tests, mgpu-tests

Interactive mockup: https://subinz1.github.io/CRCR/oot-hud-mockup-crcr-nightly.html

@subinz1
subinz1 marked this pull request as ready for review August 6, 2026 06:44
subinz1 added 10 commits August 6, 2026 20:29
The per-repo CRCR page now accepts an `?event=nightly` query parameter
to switch between PR-based and nightly results views. When viewing
nightly results, the page drops the PR and Author columns and groups
rows by SHA instead of PR number, matching the nightly workflow's
data model. The CRCR summary page's nightly tab now links repos to
`?event=nightly` so clicking a repo name is context-aware.

Adds a new `crcr_nightly_dashboard` ClickHouse query that filters by
`event_type = 'nightly'` and deduplicates by `max(run_attempt)`.
The summary stats endpoint (crcr_backend_summary) returns PR-specific
metrics that aren't rendered on the nightly view. Setting summaryUrl
to null when isNightly avoids a wasted ClickHouse query on every
nightly page load.
Since pr_number is now optional in CrcrJobRow (the nightly query
doesn't return it), buildMatrix could silently collapse rows with
undefined pr_number into a single map key. Skip rows with missing
or non-positive pr_number to prevent this.
Instead of showing fabricated "nightly release (sha...)" text, use
the existing commit-info API endpoint to fetch real commit titles
from GitHub via GraphQL. Falls back to the SHA-based placeholder
while the API response is loading or if it fails.
When the user changes the time range on the CRCR summary page (e.g.
to 30 days), clicking through to a repo's nightly view now preserves
that selection instead of resetting to the default 7 days.
The nightly view now shows its own stat cards — Pass Rate, Nightly
Runs (unique SHAs), and Failures — computed client-side from the
already-fetched ClickHouse data. This fills the visual gap left by
hiding the PR-specific cards.
The SQL_PARAMS linter requires params.json to have 'params' and
'tests' keys. Update to match the expected format used by all other
ClickHouse queries.
Correct JSX indentation inside the fragment wrapper in
CrcrNightlyMatrix, and collapse the short pageTitle ternary
to a single line as Prettier expects.
Collapse short filter chain and tr element props to single lines
as Prettier expects.
@subinz1
subinz1 force-pushed the crcr-nightly-per-repo-view branch from 48af7e8 to 80e5ec6 Compare August 6, 2026 15:00
The nightly view's commit title cell uses MUI's Tooltip component
but it was never imported, causing a react/jsx-no-undef lint error.
Import CSSProperties from React (used by table style constants) and
pass the required sha prop to GroupedJobCell and JobCell in the
nightly view, matching how the PR matrix already passes it.

@atalman atalman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@atalman
atalman merged commit 11bc878 into main Aug 6, 2026
10 of 12 checks passed
@atalman
atalman deleted the crcr-nightly-per-repo-view branch August 6, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CRCR][HUD] Create downstream repo level HUD UI results page for nightly

2 participants