Skip to content

Dashboard screenshots change on PRs that do not touch them #4177

Backlog

Description

@sentry-junior

Frameshift reports dashboard screenshot changes on pull requests that do not change the dashboard. Each report compares against a baseline from main, and some of those baselines look wrong.

In System Cache Warming Refill Running, the chart in the main baseline is collapsed. The PR shot renders it at full height, so the page height changes (1115 px to 1508 px).

Baseline (main) #4152
System Cache Warming Refill Running on main, chart collapsed System Cache Warming Refill Running on the PR, chart at full height

The cause is not known yet. The shots that change are different on each PR, and they do not depend on the PR diff.

via @armcknight.

--

View Session [Sentry]

Activity

  1. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    Four more shots changed on #4164 that its diff does not explain (report):

    Shot What moves
    conversation-fork-dialog__desktop, __mobile The page behind the dialog is scrolled to a different point. The message time is 11:54 AM in the baseline and 7:54 AM in the candidate, so the candidate looks like a different render, maybe the other project's shot. Both projects save this name: classic from e2e/conversations-event-log.spec.ts, and inbox from e2e/inbox/conversations-event-log.spec.ts.
    conversation-unsent-answers__desktop The page behind the dialog is scrolled to a different point. Saved by e2e/inbox.spec.ts (classic) and e2e/inbox/conversation-inbox-items.spec.ts (inbox).
    conversation-title__desktop Only text anti-aliasing changes: 257 pixels differ by more than 40 of 255, and the layout is the same.

    ci.yml downloads the classic shots last so that they overwrite the inbox shots with the same name. Shots that come from both projects still seem to be where the flakes come from: conversation-title and conversation-unsent-answers also changed on #4166, #4165, #4159 and #4148.

    Shot Baseline Candidate
    fork dialog
    unsent answers
  2. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    Seen again on #4179. That PR changes no dashboard code, fixtures, or e2e specs. It changes only packages/junior server code, its tests, and evals. (report)

    Shot What moves
    conversation-unsent-answers__desktop The transcript behind the dialog sits at a different scroll point. The baseline starts at the item card, and the candidate starts about 300 px higher, at Morgan Lee's message.
    conversation-title__desktop The text in the transcript area shows a small diff, but the layout stays the same.
    system-cache-share__desktop New on this list. The x-axis labels of the System charts differ: the diff shows mid-period labels in each chart overlapping ("Jul 23" / "Aug 7"). It is likely the same chart-layout timing as system-cache-warming-refill-running in #4176.
    Shot Baseline Candidate
    unsent answers
    title
    cache share
  3. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    More cases. #4185 changes only the Sentry SDK versions, a server-utils patch, and nitro.ts, and its report shows 4 changed shots:

    • Locations · Desktop
    • System Cache Health Stale · Desktop
    • System Cache Tokens · Desktop
    • System Cache Warming · Desktop

    The same shots change on unrelated PRs: Locations and System Cache Health Stale on #4179 and #4182, and System Cache Tokens on #4168.

  4. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    Another collapsed-chart baseline, on #4202 (Inbox link menus and message-text links, nothing near People pages): person-profile__desktop. In the main baseline the profile's charts, including "Changes over time", are collapsed to a sliver with overlapping axis labels. The candidate draws them at full width. Report

    Baseline (main) #4202
  5. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    It happened on #4207 as well, and this time the candidate is the broken side. That PR changes Inbox assignee handling and touches no chart code, Locations, or People pages. Its report shows 2 changed shots:

    • locations__desktop: in the candidate, "Conversations per 6 hours" is squeezed into a narrow strip in the middle, and the "Aug 4" labels overlap. The main baseline draws it at full width.
    • person-profile__desktop: the same squeeze on the usage and "Changes over time" charts.

    A chart can collapse on either side, main or the PR, so the fault is likely a chart-sizing race at capture time, not one bad baseline.

    Baseline (main) Candidate (#4207)
    Locations on main, chart at full width Locations on the PR, chart collapsed
  6. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    #4206 changes only SQL in packages/junior (the /api/versions feed token and the subtree walk) and its integration tests. The dashboard e2e renders mock reporting data, so these shots likely do not depend on that diff. Report: 2 changed shots.

    • System Cache Missing · Desktop, as in Five dashboard screenshots change on a PR that does not touch the dashboard #4176.
    • Conversation Title · Desktop, which is new on this list. The changes are all in the transcript text (bbox 414,78 to 983,696). The layout does not move: the best match is at a 0 px offset, and the largest pixel difference is 64 of 255. This is likely text antialiasing at a fractional scroll offset, not a change in layout.
    Baseline #4206
  7. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    One more case: #4220 changes only comments and description strings (no dashboard rendering code), and Frameshift reports 2 changed shots: System Cache Warming · Desktop and System Cache Warming Refill · Desktop. Report

  8. sentry-junior commented on Nov 24, 2026

    @sentry-junior
    ContributorAuthor

    Seen again on #4259. That PR changes only packages/junior server code, its tests, and TERMINOLOGY.md. (report)

    conversation-unsent-answers__desktop: the transcript behind the dialog is at a different scroll point. The baseline starts at the message above the Inbox item card. The candidate starts at the card and shows the whole answer form.

    Baseline Candidate

    The same report also changed repository-conversations-held. That one comes from the wall clock, not from this issue, and #4261 fixes it.

  9. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Another occurrence on #4257, whose diff doesn't touch the dashboard (listAgents and its tests, plus a merge of main): Conversation Unsent Answers · Desktop. Report

    Only the transcript scroll position behind the "Send without your answers?" dialog changes. The main baseline is scrolled to the question card's form fields. The PR shot is scrolled about 300 px higher and shows the assistant message above the card. The dialog, the sidebar, and the details panel are identical. The diff bounding box is (316, 57)–(1011, 739), which is only the transcript column.

    Baseline (main) #4257

    This likely means the shot in e2e/inbox/conversation-inbox-items.spec.ts is taken before the transcript's scroll-to-latest settles. Waiting for a stable scroll position before the screenshot would likely fix this shot.

  10. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Seen again on #4266. That PR changes only the startAgent description and one <tool-policy> line in packages/junior, with no dashboard code. Frameshift reports Conversation Long Transcript Memory · Desktop as changed (report). The transcript is scrolled to a different position, so the rows in view shift.

    Baseline Candidate Diff
  11. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Another case: #4271. It changes only LeadWatchReport.tsx and the Lead mock transcript in the dashboard. Its report has 3 changed shots:

    • Conversation Attachment Zoom · Desktop and Mobile (already listed above)
    • Conversation Stop Active · Mobile

    In Conversation Stop Active · Mobile, the only difference is the focus ring on the header's … menu button. The main baseline shows the ring, and the PR shot does not. The spec moves focus to "Show fewer queued messages" before it takes the shot, so the baseline likely took the shot while focus was still on the menu button.

    Baseline (main) #4271
    Conversation Stop Active on main, focus ring on the menu button Conversation Stop Active on the PR, no focus ring on the menu button
  12. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Seen again on #4278, which changes no dashboard code (runtime, schema, and tests only). Report

    • conversation-attachment-zoom__desktop and __mobile: new to this issue. After the pinch in e2e/conversation-attachments.spec.ts, the zoomed image sits about 4px lower in the candidate. Layout is the same. The shot is taken right after touchEnd, and screenshot() resizes the page for each view, so the pan clamp in ImageAttachment.tsx likely settles at a different point.
    • conversation-unsent-answers__desktop: the page behind the dialog is scrolled to a different point, as reported above.
    Shot Baseline Candidate
    attachment zoom
    unsent answers
  13. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Another case: #4297 (core-next → main). Its only dashboard changes are three lines in route unit tests, with no UI, fixture, or e2e spec changes. Report: 1 changed shot.

    • conversation-stop-active__mobile (from e2e/conversation-queue.spec.ts): only the header's ⋯ menu button changes. In the candidate it has a light border, which is likely a hover or focus-visible ring. The rest of the page is identical, and the desktop shot did not change. The spec asserts that "Show fewer queued messages" has focus right before the shot, so the ring on the menu button is likely a hover state. capture() moves the pointer to (-1, -1) only when the viewport size changes.
    Baseline (main) #4297
  14. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Seen again on #4298 (head 960215c2c), in the same shot: conversation-stop-active__mobile. Only the ⋯ menu button gets a ring. Report. The PR changes auth on the server and one requireAuth path in the dashboard. It changes no UI, fixtures, or e2e specs.

    Two new facts:

    • I ran e2e/conversation-queue.spec.ts 4 times locally on the same head. All 4 runs gave the same image, which matches the baseline (no ring). So the ring comes and goes in CI.
    • A hover state is not likely. The spec sets no viewport, so it starts at Playwright's 1280x720, and capture() moves the pointer to (-1, -1) before each resize, which includes the mobile one. The ring is the lavender focus color, so focus likely moves to the menu trigger. One possible cause: "Show fewer queued messages" has focus at desktop, and the mobile layout drops that button.
    Baseline (main) #4298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions