Skip to content

ci(guardian): publish score check on PR checklist - #1542

Merged
dcramer merged 1 commit into
mainfrom
ci/guardian-eval-score-check
Aug 14, 2026
Merged

ci(guardian): publish score check on PR checklist#1542
dcramer merged 1 commit into
mainfrom
ci/guardian-eval-score-check

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Guardian evals already computed pass rate text, but the PR checklist only showed GitHub's canned job line (failing after 2m) because we never published a dedicated Check Run.

Mirror the behavioral eval reporter path:

  • grant checks: write
  • soft-fail the run step, hard-fail if results are missing
  • publish guardian / score with fail-on-failures: true so the checklist secondary line shows pass-rate title text (for example Eval pass rate 94.4% — required 100.0%)

Evidence: #1533

Requested by David Cramer.

--

View Junior Session [Sentry]

Guardian evals only wrote a job summary, so the PR checklist showed
GitHub's canned "failing after Xm" line. Mirror behavioral reporting:
soft-fail the run step, hard-fail on missing results, and publish a
dedicated guardian / score Check Run with pass-rate title text.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 13, 2026 9:02pm

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 13, 2026
@dcramer dcramer added trigger-evals-guardian and removed risk: medium PR risk score: medium labels Aug 13, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit afa1fe3. Configure here.

name: guardian-evals
path: packages/junior-evals/guardian-results.json
if-no-files-found: warn
if-no-files-found: error

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed evals skip artifact upload

Medium Severity

fail-on-failures: true on the publish step exits non-zero when Guardian cases miss, and the upload step’s if still implies a prior success() status. Failed runs therefore never upload guardian-results.json, even though the results gate already passed. That drops the artifact in the failure case where it is most useful for debugging.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit afa1fe3. Configure here.

@dcramer
dcramer merged commit e399dca into main Aug 14, 2026
47 checks passed
@dcramer
dcramer deleted the ci/guardian-eval-score-check branch August 14, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant