Skip to content

ci(evals): only trigger on eval path changes#347

Merged
dcramer merged 1 commit into
mainfrom
cursor/evals-skip-lockfile-changes-1757
May 21, 2026
Merged

ci(evals): only trigger on eval path changes#347
dcramer merged 1 commit into
mainfrom
cursor/evals-skip-lockfile-changes-1757

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 21, 2026

What

Stop running the Evals workflow for PRs that only touch package.json or pnpm-lock.yaml.

Why

#345 (a @sentry/starlight-theme bump that only modified the docs lockfile entries) triggered the full evals suite. The lockfile and root package.json were listed as eval paths in two places:

  1. on.push.paths — any merge to main touching the lockfile would run evals on push.
  2. The evalPaths array inside the should-run job — any PR touching those files matched and ran evals.

How

Removed package.json and pnpm-lock.yaml from both lists. Evals now run only when:

  • packages/evals/** changes,
  • .github/workflows/evals.yml changes,
  • the run-evals label is applied to a PR, or
  • the workflow is manually dispatched.

The pull_request trigger stays broad (no paths: filter) on purpose. GitHub applies path filters to every event type in a trigger block, so adding paths there would silently drop labeled events on non-eval PRs and break the run-evals escape hatch. The should-run job is cheap (single script step, no checkout) so the broad trigger costs almost nothing.

Slack Thread

Open in Web Open in Cursor 

PR #345 (a starlight-theme bump touching only package.json and
pnpm-lock.yaml) ran the evals workflow because the lockfile and
root package.json were listed as eval paths. Drop them from both
the on.push.paths trigger and the should-run filter so evals only
fire when packages/evals/ or the workflow itself changes, or when
the run-evals label is applied.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Co-authored-by: David Cramer <dcramer@users.noreply.github.com>
@dcramer dcramer marked this pull request as ready for review May 21, 2026 21:16
@dcramer dcramer enabled auto-merge (squash) May 21, 2026 21:16
@dcramer dcramer merged commit c6d91dc into main May 21, 2026
19 checks passed
@dcramer dcramer deleted the cursor/evals-skip-lockfile-changes-1757 branch May 21, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants