Skip to content
Open
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
25 changes: 25 additions & 0 deletions .config/tend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@ secrets:
- DOCKERHUB_USERNAME
setup:
- uses: ./.github/actions/tend-setup
# cargo-insta and cargo-nextest are used only by the agent, never by a
# runner-side step. `tend-setup` used to install them with `cargo-install`,
# under the *runner* user's home — which tend deliberately keeps off the sandbox
# PATH, since that home can hold credentials — so the agent got a stub that
# exits 127. Install them under the sandbox user's home instead, which is what
# that stub asks for. Both ship prebuilt binaries, so this downloads rather than
# builds (~1s for the pair).
#
# `~/.local/bin` rather than the cargo default: it is first on the sandbox PATH,
# ahead of both `~/.tend-blocked/bin` (where the 127 stubs live) and
# `~/.cargo/bin`. Hence `CARGO_HOME` on the cargo-dist installer, which places
# the binary at `$CARGO_HOME/bin`.
#
# Without this, `task prqlc:test` — the inner loop `CLAUDE.md` documents —
# aborts in every tend session. `task prqlc:pull-request` needs more: it also
# reaches `cargo llvm-cov` and `pre-commit`, neither of which is on the sandbox
# PATH at all.
sandbox_setup:
- mkdir -p ~/.local/bin
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
- cargo-nextest --version
- curl -LsSf
https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh
| CARGO_HOME=~/.local sh
- cargo-insta --version
workflows:
ci-fix:
watched_workflows:
Expand Down
8 changes: 0 additions & 8 deletions .github/actions/tend-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ runs:
repo-token: ${{ inputs.github-token }}
version: 3.53.1

- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-insta

- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-nextest

- run: ./.github/workflows/scripts/set_version.sh
shell: bash

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tend-ci-fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:ci-fix ${{ github.event.workflow_run.id }}
- Run URL: ${{ github.event.workflow_run.html_url }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tend-mention.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: >-
${{ steps.delay.outputs.seconds
&& format('This job started {0}s after the triggering event (over ~40s means it was queued). ',
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tend-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:nightly
6 changes: 6 additions & 0 deletions .github/workflows/tend-notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:notifications

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tend-review-runs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:review-runs
6 changes: 6 additions & 0 deletions .github/workflows/tend-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:review ${{ github.event.pull_request.number }}

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tend-triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:triage ${{ github.event.issue.number }}

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tend-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
bot_name: prql-bot
model: opus
sandbox_setup: |
mkdir -p ~/.local/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ~/.local/bin
cargo-nextest --version
curl -LsSf https://github.com/mitsuhiko/insta/releases/latest/download/cargo-insta-installer.sh | CARGO_HOME=~/.local sh
cargo-insta --version
prompt: |2
/tend-ci-runner:weekly
Loading