Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
4e62008
feat: add Autorevert Signal Grid toggle to HUD page
izaitsevfb Apr 8, 2026
04b707a
fix: address UI feedback for autorevert signal grid
izaitsevfb Apr 8, 2026
babdd8c
fix: address second round of UI feedback
izaitsevfb Apr 9, 2026
8f24ae7
feat: third round of UI improvements for autorevert grid
izaitsevfb Apr 9, 2026
9150ced
fix: HUD link format and crash on missing state data
izaitsevfb Apr 9, 2026
daa75ef
fix: remove 10-minute window limit from state query
izaitsevfb Apr 9, 2026
0020477
fix: move stateValid before its first use
izaitsevfb Apr 9, 2026
9544851
fix: optimize state query to return 1 row per workflow set
izaitsevfb Apr 9, 2026
73ee01d
fix: rename query param to avoid column name conflict
izaitsevfb Apr 9, 2026
07a56be
fix: use local time consistently, matching main HUD convention
izaitsevfb Apr 9, 2026
4a33c02
fix: consistent timestamp parsing — match LocalTimeHuman (dayjs local…
izaitsevfb Apr 9, 2026
0d804eb
feat: add autorevert events column to signal grid
izaitsevfb Apr 9, 2026
7430ca3
fix: parse CH timestamps as UTC (append Z suffix)
izaitsevfb Apr 9, 2026
b26df39
fix: strip milliseconds from event query timestamps (CH toDateTime re…
izaitsevfb Apr 9, 2026
8abf089
fix: UTC timestamp parsing throughout autorevert grid
izaitsevfb Apr 9, 2026
b7a13cf
refactor: extract ensureUtc/parseChTimestamp utilities, add tests
izaitsevfb Apr 9, 2026
55b14f7
feat: replace inline events column with proportional timeline
izaitsevfb Apr 9, 2026
c0ba0bd
feat: add "Activity" title, run dots line, and click-to-navigate
izaitsevfb Apr 9, 2026
93117f0
fix: show AI advisor verdicts and dispatches properly in cells
izaitsevfb Apr 9, 2026
412e1f6
fix: remove unused parseChTimestamp import (build error)
izaitsevfb Apr 9, 2026
6053e0f
feat: permalink support — sync all autorevert view state to URL
izaitsevfb Apr 9, 2026
b53aea0
feat: permalink button copies full autorevert URL with all params
izaitsevfb Apr 9, 2026
d17bcc6
fix: read autorevert toggle from window.location on initial render
izaitsevfb Apr 9, 2026
a6218c0
fix: preserve autorevert URL params across HUD route changes
izaitsevfb Apr 9, 2026
b468359
feat: clean URL for autorevert view (/hud/.../autorevert)
izaitsevfb Apr 9, 2026
e02b4ae
fix: hide HUD controls in autorevert view, multi-term signal filter
izaitsevfb Apr 9, 2026
d8d11a2
fix: use pipe (|) as signal filter separator instead of space
izaitsevfb Apr 9, 2026
554673e
feat: group timeline events by snapshot, fixed-width layout
izaitsevfb Apr 9, 2026
e407a58
fix: always reserve timeline width, anti-overlap, overflow clip
izaitsevfb Apr 9, 2026
1d48637
fix: set timeline height to match table (overflow:hidden needs explic…
izaitsevfb Apr 9, 2026
1ecd199
refactor: extract AutorevertToggle, fix hooks rule violation
izaitsevfb Apr 9, 2026
a342df2
feat: UX polish — legend, context banner, rich tooltips, commit highl…
izaitsevfb Apr 9, 2026
fd7a169
fix: nits — PR title in summary, full signal names, current snapshot dot
izaitsevfb Apr 9, 2026
4a2f89d
fix: rename Signal→Failure (red), vertical 'this snapshot' label on t…
izaitsevfb Apr 9, 2026
56d87f7
fix: align 'showing this snapshot' label below the dot, reads top-to-…
izaitsevfb Apr 9, 2026
1e64706
fix: position 'showing this snapshot' label above the blue dot
izaitsevfb Apr 9, 2026
b515e6c
fix: shift label up, add ← arrow
izaitsevfb Apr 9, 2026
3b39225
fix: signal filter matches against 'workflow: key' (colon, not space)
izaitsevfb Apr 9, 2026
6ed3731
fix: reset autorevert view on navigation, toggle z-index
izaitsevfb Apr 9, 2026
7b6f9d8
fix: add background glow to toggle for readability over rotated text
izaitsevfb Apr 9, 2026
9004e87
feat: AI dispatches shown with dashed border, signal key consistency
izaitsevfb Apr 9, 2026
1382871
feat: full AI advisor analysis in cell popover, remove badge click
izaitsevfb Apr 9, 2026
4aa850f
fix: show cell popover on hover instead of click
izaitsevfb Apr 9, 2026
2e0a191
fix: show AI dispatch context in popover even when verdict exists
izaitsevfb Apr 9, 2026
99ce9c9
feat: colored badges [RST] [AI] in cell popover for restart/dispatch …
izaitsevfb Apr 9, 2026
83f6000
fix: restart dashed border color matches RST badge (blue #1976d2)
izaitsevfb Apr 9, 2026
585a2b3
remove junk
izaitsevfb Apr 9, 2026
f796e42
fix: yarn format, add 300ms hover delay to prevent scroll hijacking
izaitsevfb Apr 9, 2026
19b5260
fix: replace MUI Popover with CSS tooltip (fixes scroll blocking)
izaitsevfb Apr 9, 2026
0076763
fix: revert to MUI Tooltip (was working before Popover switch)
izaitsevfb Apr 9, 2026
4d6ba60
feat: ar_notl=1 URL param hides the left timeline panel
izaitsevfb Apr 9, 2026
8ea0e75
fix: ar_notl is a flag (presence-only, no value needed)
izaitsevfb Apr 9, 2026
4c4e9a0
feat: ar_focus flag filters to revert-related signals only
izaitsevfb Apr 9, 2026
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
16 changes: 16 additions & 0 deletions torchci/clickhouse_queries/autorevert_events_in_range/params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"params": {
"repo": "String",
"startTime": "String",
"endTime": "String",
"filterWorkflows": "Array(String)"
},
"tests": [
{
"repo": "pytorch/pytorch",
"startTime": "2026-04-08 00:00:00",
"endTime": "2026-04-09 00:00:00",
"filterWorkflows": ["Lint", "trunk", "pull"]
}
]
}
16 changes: 16 additions & 0 deletions torchci/clickhouse_queries/autorevert_events_in_range/query.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Fetch non-dry-run autorevert events in a time range, filtered by workflows.
-- Used to show event activity counts between commits in the autorevert grid.
SELECT
ts,
action,
commit_sha,
workflows,
source_signal_keys
FROM misc.autorevert_events_v2
WHERE
repo = {repo: String}
AND dry_run = 0
AND ts >= toDateTime({startTime: String})
AND ts <= toDateTime({endTime: String})
AND hasAny(workflows, {filterWorkflows: Array(String)})
ORDER BY ts DESC
16 changes: 16 additions & 0 deletions torchci/clickhouse_queries/autorevert_run_timestamps/params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"params": {
"repo": "String",
"startTime": "String",
"endTime": "String",
"filterWorkflows": "Array(String)"
},
"tests": [
{
"repo": "pytorch/pytorch",
"startTime": "2026-04-08 00:00:00",
"endTime": "2026-04-09 00:00:00",
"filterWorkflows": ["Lint", "trunk", "pull"]
}
]
}
13 changes: 13 additions & 0 deletions torchci/clickhouse_queries/autorevert_run_timestamps/query.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- List autorevert run timestamps (state snapshots) in a time range.
-- Used to render dots on the timeline showing when autorevert ran.
-- Lightweight: returns only ts and workflows, no state blob.
SELECT
ts,
workflows
FROM misc.autorevert_state
WHERE
repo = {repo: String}
AND ts >= toDateTime({startTime: String})
AND ts <= toDateTime({endTime: String})
AND hasAny(workflows, {filterWorkflows: Array(String)})
ORDER BY ts DESC
12 changes: 12 additions & 0 deletions torchci/clickhouse_queries/autorevert_state_for_ts/params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"params": {
"repo": "String",
"target_ts": "String"
},
"tests": [
{
"repo": "pytorch/pytorch",
"target_ts": "2026-04-08 21:00:00"
}
]
}
14 changes: 14 additions & 0 deletions torchci/clickhouse_queries/autorevert_state_for_ts/query.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Fetch the most recent autorevert state snapshot per workflow set
-- at or before the target timestamp.
-- argMax picks the row with the highest ts per workflow set.
SELECT
max(ts) AS snapshot_ts,
argMax(state, ts) AS state,
workflows,
argMax(lookback_hours, ts) AS lookback_hours
FROM misc.autorevert_state
WHERE
repo = {repo: String}
AND ts <= toDateTime({target_ts: String})
AND ts > toDateTime({target_ts: String}) - INTERVAL 24 HOUR
GROUP BY workflows
12 changes: 12 additions & 0 deletions torchci/clickhouse_queries/commit_info_for_shas/params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"params": {
"shas": "Array(String)",
"repo": "String"
},
"tests": [
{
"shas": ["4fdbeb7393919717a7ae4e49e982b46cd3dc2f31"],
"repo": "pytorch/pytorch"
}
]
}
11 changes: 11 additions & 0 deletions torchci/clickhouse_queries/commit_info_for_shas/query.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Fetch commit metadata (title, author, PR number) for a set of SHAs.
-- Uses the push table which contains commit messages from trunk pushes.
SELECT DISTINCT
p.head_commit.id AS sha,
p.head_commit.message AS message,
p.head_commit.author.name AS author,
p.head_commit.timestamp AS time
FROM default.push p
WHERE p.head_commit.id IN {shas: Array(String)}
AND p.repository.full_name = {repo: String}
ORDER BY p.head_commit.timestamp DESC
Loading
Loading