Skip to content

test(evals): Move the GitHub evals into the coding suite - #2023

Merged
dcramer merged 1 commit into
mainfrom
claude/junior-issue-2001-f6ed5b
Oct 3, 2026
Merged

dcramer merged 1 commit into
mainfrom
claude/junior-issue-2001-f6ed5b

Conversation

@dcramer

@dcramer dcramer commented Oct 3, 2026

Copy link
Copy Markdown
Member

Moves the GitHub tests that call agent(github) into the coding suite, as the suites comment on #2001 proposes. Five eval files set up the GitHub plugin in each test. They now call run() on the suite defaults, so they all run on the same agent: the GitHub and memory plugins and the coding skills.

// Before: each test set up the plugin.
test("when an event matches, ...", async ({ agent }) => {
  const { run } = await agent({ plugins: defineJuniorPlugins([githubPlugin()]) });
  const delivery = await run(githubWebhook(...));
});

// After: the suite sets it up.
test("when an event matches, ...", async ({ run }) => {
  const delivery = await run(githubWebhook(...));
});

Moved files

  • evals/integration/event-automations/ → evals/integration/coding/event-automations/
  • evals/integration/agent/subscriptions.eval.ts → evals/integration/coding/subscriptions.eval.ts
  • evals/agent/subscriptions.eval.ts → evals/coding/subscriptions.eval.ts

The behavioral config gets the suite too

evals/agent/subscriptions.eval.ts is a behavioral eval, so it stays under the 80% score gate. vitest.evals.behavioral.config.ts now has the same two projects as the integration config: behavioral and coding, with evals/coding/ as the suite directory. The shard command and the result file do not change. The behavioral workflow path filter adds evals/coding/**.

Both configs read the suite settings from src/suites/coding.ts: the project name, SKILL_DIRS, and the options module. The options module moved from evals/integration/coding/agent-options.ts to src/suites/coding-agent-options.ts. A change to the suite now starts both eval workflows, because both select on src/**.

Review focus

Refs #2001

🤖 Generated with Claude Code

The event automation and watch evals each set up the GitHub plugin with
agent(). They now run in the coding suite and call run() on the suite
defaults.

The behavioral config gets the same suite for evals/coding/. Both
configs read the suite settings from src/suites/coding.ts, so the
plugins and skills of the suite have one definition.

Refs #2001

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 3, 2026 3:16am UTC

Request Review

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

5 screenshot changes — 5 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Executions · Desktop
Automation Executions · Desktop
Changed
Automation Executions · Mobile
Automation Executions · Mobile
Changed
Conversation Event Details · Desktop
Conversation Event Details · Desktop
Changed
Conversation Fork Dialog · Desktop
Conversation Fork Dialog · Desktop
Changed
Conversation Image Reply · Desktop
Conversation Image Reply · Desktop
Changed

@sentry-evals

sentry-evals Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Sentry Evals

junior-behavioral

Run Status Passed Failed Errored Cost Tokens Duration
Head Complete 60 6 1 $0.44 2.0M 1,467.96s

Base commit d7c9b39 has no eval run to compare against.

@dcramer
dcramer marked this pull request as ready for review October 3, 2026 03:53
@github-actions github-actions Bot added the risk: high PR risk score: high label Oct 3, 2026
@dcramer
dcramer merged commit 11aedb8 into main Oct 3, 2026
50 of 53 checks passed
@dcramer
dcramer deleted the claude/junior-issue-2001-f6ed5b branch October 3, 2026 04:02
sergical added a commit that referenced this pull request Oct 9, 2026
Frameshift reports the same unrelated screenshots on most pull requests.
Across the last 44 reports (#2023–#2089), 202 of 310 changed screenshots
were exact repeats of a diff seen on another PR. Each one flips between
two fixed renders from one capture to the next. 31 of the 44 reports
contained nothing else.

I reproduced CI locally with system Google Chrome (CI uses `channel:
"chrome"`) and Ubuntu's subpixel font settings. With that setup, `main`
produces the same image files CI flips between, byte for byte. I then
tested each change on its own:

- **Partial raster:** Chromium re-rasters only the invalidated part of a
tile, so some pixels depend on paint history. This causes the 1–2 px
diffs at the avatar stack overlap and the repo icon, plus some text
edges. `--disable-partial-raster` removes them. On the conversation
specs, unstable screenshots went from 5 of 18 to 0 of 14.
- **Noise texture:** the full-screen `feTurbulence` overlay still varies
by up to 3/255 with partial raster disabled. Screenshots now hide it
through Playwright's `style` option, using a `data-dashboard-noise`
attribute on the overlay.
- **Late font requests:** `document.fonts.ready` only waits for font
faces the page has already requested. A face requested later can arrive
after the wait and change text. The screenshot helper now loads every
declared face before capture. With this step removed, 4 runs had 7
unstable screenshots: the same Share Details, Share Menu, Detail Focused
and Workspace tab diffs that recur in CI.
- **`SegmentedNav`:** the tab row's scroll position and edge fade
depended on earlier layouts (Locations and Workspaces on mobile). It now
recomputes from the start whenever the row or a link changes size.
- **`ChartSvg`:** the axis label scale came from `getScreenCTM()`, which
was only re-read when the SVG resized. It is now derived from the
element's current size and the viewBox. CI showed labels drawn far too
large or small. I could not reproduce that locally, so this fix is not
proven yet.

Loading fonts from Google at test time was not a problem by itself.
Fonts load live in these runs and the output still matches CI.

Results with all changes: 0 of 84 screenshots varied across 8 full-suite
runs. Without them, `main` had 9 of 84 varying across 3 runs.

When this merges, every saved screenshot changes once because the noise
overlay is no longer captured. Later reports should only show real
changes. If the chart label flip shows up again, the `ChartSvg` change
did not cover it.

Follow-up worth considering: CI uses whatever Chrome the runner image
ships, so a runner image update will shift text in all screenshots at
once. Pinning the browser would avoid that.

<!-- junior-request-attribution:start -->
via @sergical.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0B2KJG9B5Z%3A1791509162.264559 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B2KJG9B5Z%3A1791509162.264559)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B2KJG9B5Z%3A1791509162.264559/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Sergiy Deceive-skiy <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — bb7eb746 Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant