Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/engineer-bot-followup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
&& !startsWith(github.event.sender.login, 'peco-engineer-bot')
)
)
runs-on: ubuntu-latest # VERIFY: a protected/self-hosted runner if the fix-verification tests need a warehouse
runs-on: [self-hosted, Linux, X64, peco-driver]
# 55 min: the App installation token expires at 60; PRs with many threads need headroom
# (the agent pushes fixes + posts replies at the END of the run).
timeout-minutes: 55
Expand Down Expand Up @@ -198,13 +198,13 @@ jobs:
# repo cuts one). claude-agent-sdk / @anthropic-ai/claude-code are left
# unpinned to match the hub (databricks-driver-test); pin them to exact
# versions here if you want full reproducibility.
ENGINE_REF: 7e36703f5cae56a3db12fd25620735315fc4c506
ENGINE_REF: 76a6e5902b217606b72a9476636df0d761260846
run: |
set -euo pipefail
: "${ENGINE_REF:?pin the engine to a tag/SHA before activation (refusing @main)}"
python -m pip install --upgrade pip
# Drop the `x-access-token:${ENGINE_PAT}@` prefix once the engine repo is public; ENGINE_REF stays pinned.
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/eric-wang-1990/databricks-bot-engine@${ENGINE_REF}"
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/databricks/databricks-bot-engine@${ENGINE_REF}"
pip install claude-agent-sdk
npm install -g @anthropic-ai/claude-code

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/engineer-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# - secrets BOT_ENGINE_PAT, ENGINEER_BOT_APP_ID/PRIVATE_KEY (DATABRICKS_HOST + DATABRICKS_TOKEN already exist in adbc CI)
# - ENGINE_REF in the install step is pinned to an immutable commit SHA (never @main);
# bump it to adopt engine changes. claude-agent-sdk / @anthropic-ai/claude-code are
# unpinned to match the hub. The engine repo (eric-wang-1990/databricks-bot-engine)
# unpinned to match the hub. The engine repo (databricks/databricks-bot-engine)
# is PRIVATE for now, so BOT_ENGINE_PAT is scoped to it; when it goes public, drop
# the PAT (anonymous install) but keep ENGINE_REF pinned to a tag/SHA (never @main)
# - an `engineer-bot` label that only maintainers can apply (one label does both:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
# auto-label on the fix PR) is a `pull_request` event and never re-triggers
# this job, so the single shared label can't cause a fix→PR→fix loop.
if: github.event.label.name == 'engineer-bot'
runs-on: ubuntu-latest # VERIFY: a protected/self-hosted runner if E2E tests need a warehouse
runs-on: [self-hosted, Linux, X64, peco-driver]
timeout-minutes: 45
steps:
- name: Mint engineer-bot App token
Expand Down Expand Up @@ -120,23 +120,23 @@ jobs:

- name: Install bot engine (interim PAT git-install) + Claude SDK/CLI
env:
# Fine-grained PAT, read-only Contents on eric-wang-1990/databricks-bot-engine.
# Fine-grained PAT, read-only Contents on databricks/databricks-bot-engine.
ENGINE_PAT: ${{ secrets.BOT_ENGINE_PAT }}
# SUPPLY-CHAIN PIN: the engine is pinned to an immutable commit SHA — never
# install from the force-pushable `@main` ref in a secret-bearing job. Bump
# ENGINE_REF to adopt engine changes (prefer a release tag once the engine
# repo cuts one). claude-agent-sdk / @anthropic-ai/claude-code are left
# unpinned to match the hub (databricks-driver-test); pin them to exact
# versions here if you want full reproducibility.
ENGINE_REF: 7e36703f5cae56a3db12fd25620735315fc4c506
ENGINE_REF: 76a6e5902b217606b72a9476636df0d761260846
run: |
set -euo pipefail
: "${ENGINE_REF:?pin the engine to a tag/SHA before activation (refusing @main)}"
python -m pip install --upgrade pip
# The dedicated engine repo (PRIVATE for now → install via the PAT). Once
# it's public, drop the `x-access-token:${ENGINE_PAT}@` prefix (anonymous);
# ENGINE_REF stays pinned to a commit SHA / release tag for reproducibility.
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/eric-wang-1990/databricks-bot-engine@${ENGINE_REF}"
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/databricks/databricks-bot-engine@${ENGINE_REF}"
# The engine drives the Claude Agent SDK + Claude Code CLI (public registries).
pip install claude-agent-sdk
npm install -g @anthropic-ai/claude-code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reviewer-bot-followup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
github.event.pull_request.head.repo.fork == false
&& github.event.pull_request.state == 'open'
&& contains(github.event.pull_request.labels.*.name, 'review-bot')
runs-on: ubuntu-latest # VERIFY: a protected runner if model creds come from the runner env
runs-on: [self-hosted, Linux, X64, peco-driver]
timeout-minutes: 15
steps:
- name: Mint review-bot App token
Expand Down Expand Up @@ -171,13 +171,13 @@ jobs:
# repo cuts one). claude-agent-sdk / @anthropic-ai/claude-code are left
# unpinned to match the hub (databricks-driver-test); pin them to exact
# versions here if you want full reproducibility.
ENGINE_REF: 7e36703f5cae56a3db12fd25620735315fc4c506
ENGINE_REF: 76a6e5902b217606b72a9476636df0d761260846
run: |
set -euo pipefail
: "${ENGINE_REF:?pin the engine to a tag/SHA before activation (refusing @main)}"
python -m pip install --upgrade pip
# Drop the `x-access-token:${ENGINE_PAT}@` prefix once the engine repo is public; ENGINE_REF stays pinned.
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/eric-wang-1990/databricks-bot-engine@${ENGINE_REF}"
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/databricks/databricks-bot-engine@${ENGINE_REF}"
pip install claude-agent-sdk
npm install -g @anthropic-ai/claude-code

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/reviewer-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# - secrets BOT_ENGINE_PAT, REVIEW_BOT_APP_ID/PRIVATE_KEY (DATABRICKS_HOST + DATABRICKS_TOKEN already exist in adbc CI)
# - ENGINE_REF in the install step is pinned to an immutable commit SHA (never @main);
# bump it to adopt engine changes. claude-agent-sdk / @anthropic-ai/claude-code are
# unpinned to match the hub. The engine repo (eric-wang-1990/databricks-bot-engine)
# unpinned to match the hub. The engine repo (databricks/databricks-bot-engine)
# is PRIVATE for now, so BOT_ENGINE_PAT is scoped to it; when it goes public, drop
# the PAT (anonymous install) but keep ENGINE_REF pinned to a tag/SHA (never @main)
#
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
# short-lived model credential distinct from the CI DATABRICKS_TOKEN). As long
# as the live workspace token is reachable in env, an LLM run over untrusted PR
# content must NOT execute on a shared GitHub-hosted runner. See .bot/SETUP.md.
runs-on: ubuntu-latest # DRAFT default only — replace per the note above before activation
runs-on: [self-hosted, Linux, X64, peco-driver]
timeout-minutes: 30
steps:
- name: Mint review-bot App token
Expand Down Expand Up @@ -102,14 +102,14 @@ jobs:
# repo cuts one). claude-agent-sdk / @anthropic-ai/claude-code are left
# unpinned to match the hub (databricks-driver-test); pin them to exact
# versions here if you want full reproducibility.
ENGINE_REF: 7e36703f5cae56a3db12fd25620735315fc4c506
ENGINE_REF: 76a6e5902b217606b72a9476636df0d761260846
run: |
set -euo pipefail
: "${ENGINE_REF:?pin the engine to a tag/SHA before activation (refusing @main)}"
python -m pip install --upgrade pip
# The dedicated engine repo (PRIVATE for now → install via the PAT). Drop the
# `x-access-token:${ENGINE_PAT}@` prefix once it's public; ENGINE_REF stays pinned.
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/eric-wang-1990/databricks-bot-engine@${ENGINE_REF}"
pip install "databricks-bot-engine @ git+https://x-access-token:${ENGINE_PAT}@github.com/databricks/databricks-bot-engine@${ENGINE_REF}"
pip install claude-agent-sdk
npm install -g @anthropic-ai/claude-code

Expand Down
Loading