Skip to content

chore(bots): reviewer-bot foundation — shared SDK engine + install#826

Open
eric-wang-1990 wants to merge 1 commit into
mainfrom
eric-wang-1990/reviewer-bot-foundation
Open

chore(bots): reviewer-bot foundation — shared SDK engine + install#826
eric-wang-1990 wants to merge 1 commit into
mainfrom
eric-wang-1990/reviewer-bot-foundation

Conversation

@eric-wang-1990
Copy link
Copy Markdown

First of a stacked series migrating the PR-review bot from databricks-driver-test to this repo. Reviewer-bot only (engineer-bot deferred). This PR is the task-agnostic foundation — no bot logic, nothing runs on PRs yet.

Contents

  • scripts/shared/ — the common agent engine (Claude Agent SDK loop/transport, security guard, markers, threads, github/git ops). Self-contained (no sibling-package imports); 94 unit tests pass under scripts/shared/tests.
  • scripts/__init__.py — makes scripts importable for python -m scripts.*.
  • scripts/requirements-sdk.txt — the claude-agent-sdk pin.
  • .github/actions/setup-claude-sdk + setup-jfrog — install the SDK (pip) + Claude Code CLI (npm) through Databricks' internal JFrog mirror (the protected runner is egress-blocked from pypi.org/npmjs.org).
  • .github/workflows/sdk-smoke.yml — manual (workflow_dispatch) smoke verifying the SDK/CLI install on this repo's runner (the one infra unknown). No secrets needed.

Next in the stack

  • PR2: scripts/reviewer_bot/ (adapted for this Python repo) + unit-test workflow.
  • PR3: the live reviewer-bot.yml / reviewer-bot-followup.yml (needs the peco-review-bot App + secrets).

Verify

python -m pytest scripts/shared/tests (green locally), and the SDK Smoke workflow once this lands.

This pull request and its description were written by Isaac.

First of a stacked series migrating the PR-review bot from
databricks-driver-test to this repo. This PR adds only the task-agnostic
foundation (no bot logic, nothing runs on PRs yet):

- scripts/shared/ — the common agent engine (Claude Agent SDK loop/transport,
  security guard, markers, threads, github/git ops). Self-contained; 94 unit
  tests pass under scripts/shared/tests.
- scripts/__init__.py — makes `scripts` importable for `python -m scripts.*`.
- scripts/requirements-sdk.txt — the claude-agent-sdk pin.
- .github/actions/setup-claude-sdk + setup-jfrog — install the SDK (pip) + CLI
  (npm) through Databricks' internal JFrog mirror (the protected runner is
  egress-blocked from pypi.org/npmjs.org).
- .github/workflows/sdk-smoke.yml — manual smoke verifying the SDK/CLI install
  on this repo's runner.

Co-authored-by: Isaac
Signed-off-by: Eric Wang <e.wang@databricks.com>
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