Skip to content

ci: post evals-monitor link comment on new PRs#430

Draft
calvarjorge wants to merge 2 commits into
mainfrom
jorge_calvar/eval_pr_comment
Draft

ci: post evals-monitor link comment on new PRs#430
calvarjorge wants to merge 2 commits into
mainfrom
jorge_calvar/eval_pr_comment

Conversation

@calvarjorge

Copy link
Copy Markdown
Contributor

What

Posts a small, one-time comment on every opened/reopened PR linking to the evals-monitor PR page, where the author can start an eval for their PR.

The comment renders as:

🧪  Run evals on this PR  ·  Start eval →

Why this approach

This replaces the direct CI-trigger approach (closed #428). GitHub Actions runners — including databricks-protected-runner-group, even with id-token: write — cannot reach the dogfood.staging workspace; every request is rejected at the network perimeter with 403 RBAC: access denied. Rather than fight that boundary, GitHub just posts a link, and the evals-monitor app (which runs inside dogfood and can reach everything) performs the actual trigger when the user clicks Start eval.

Details

  • Triggers on pull_request opened/reopened (targeting main).
  • Idempotent: checks for a <!-- pr-eval-link --> marker and skips if already present, so reopen won't double-post.
  • No secrets, no Databricks calls, no network egress — just pull-requests: write to post the comment.

Note: only applies to PRs opened/reopened after this merges; existing open PRs won't be back-filled.

This pull request and its description were written by Isaac.

Add a workflow that comments once on each opened/reopened PR with a small
link to the evals-monitor PR page, where the author can start an eval.
This replaces the direct CI-trigger approach (see closed #428): GitHub
Actions runners can't reach the dogfood.staging workspace, so the app —
which runs inside dogfood — performs the actual trigger instead.

Co-authored-by: Isaac
Signed-off-by: Jorge Calvar <jorge.calvar@databricks.com>
…ink)

Co-authored-by: Isaac
Signed-off-by: Jorge Calvar <jorge.calvar@databricks.com>
@databricks databricks deleted a comment from github-actions Bot Jun 9, 2026
@calvarjorge calvarjorge closed this Jun 9, 2026
@calvarjorge calvarjorge reopened this Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🔬  Run evals on this PR  ·  Go to Evals Monitor →

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.

1 participant