Commit a439748
authored
[CRCR] Add nightly tab to CI summary page (#8377)
## Summary
Adds event-type tabs (**Pull Requests** | **Nightly**) to the CRCR CI
summary page (`hud.pytorch.org/crcr`), enabling visibility into nightly
CI results from downstream repos alongside existing PR CI data.
### Changes
- **New ClickHouse query `crcr_nightly_summary`**: Aggregates nightly CI
results per downstream repo, filtering on `event_type = 'nightly'`,
including the latest tested SHA
- **Filter PR data**: Adds `AND pr_number > 0` to `crcr_summary` query
to prevent nightly rows from appearing in the PR tab
- **Nightly tab UI**: Tab-based navigation with repo count badges, a
nightly results table with SHA links, and an empty state when no nightly
data exists yet
### Dependencies
- Depends on #8353 for the `event_type` column in `crcr_workflow_job`
ClickHouse schema
### Mockup
**Design**:
https://subinz1.github.io/CRCR/mockups/crcr-summary-nightly-design.html
### Test plan
- [ ] Verify PR tab displays current CRCR data as before
- [ ] Verify Nightly tab shows empty state (no nightly data reported
yet)
- [ ] Once #8353 is deployed, verify nightly results appear in the
Nightly tab
- [ ] Verify tab count badges update correctly
- [ ] Verify SHA links point to correct pytorch/pytorch commits1 parent 1b7faf9 commit a439748
3 files changed
Lines changed: 308 additions & 42 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments