Skip to content

πŸ™Œ OpenHands: AI-Driven Development

blacksmith.sh: Migrate workflows to Blacksmith (#7148)

blacksmith-sh[bot]09aa62f1c34a
diff --git a/.github/workflows/clean-up.yml b/.github/workflows/clean-up.yml
index e6195f8907..b7587746cc 100644
--- a/.github/workflows/clean-up.yml
+++ b/.github/workflows/clean-up.yml
@@ -46,7 +46,7 @@ on:
jobs:
del_runs:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
actions: write
contents: read
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index b24a480d01..f5f4edd4aa 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -24,18 +24,18 @@ jobs:
build:
if: github.repository == 'All-Hands-AI/OpenHands'
name: Build Docusaurus
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- - uses: actions/setup-node@v4
+ - uses: useblacksmith/setup-node@v5
with:
node-version: 18
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: '3.12'
- name: Install dependencies
@@ -52,7 +52,7 @@ jobs:
deploy:
if: github.ref == 'refs/heads/main' && github.repository == 'All-Hands-AI/OpenHands'
name: Deploy to GitHub Pages
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
# This job only runs on "main" so only run one of these jobs at a time
# otherwise it will fail if one is already running
concurrency:
diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.yml
index e7e25ce043..0faff92bae 100644
--- a/.github/workflows/dummy-agent-test.yml
+++ b/.github/workflows/dummy-agent-test.yml
@@ -16,7 +16,7 @@ concurrency:
jobs:
test:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
@@ -25,13 +25,13 @@ jobs:
- name: Install tmux
run: sudo apt-get update && sudo apt-get install -y tmux
- name: Setup Node.js
- uses: actions/setup-node@v4
+ uses: useblacksmith/setup-node@v5
with:
node-version: '22.x'
- name: Install poetry via pipx
run: pipx install poetry
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: '3.12'
cache: 'poetry'
diff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.yml
index 0b19a5e837..d8f74a8398 100644
--- a/.github/workflows/fe-unit-tests.yml
+++ b/.github/workflows/fe-unit-tests.yml
@@ -21,7 +21,7 @@ jobs:
# Run frontend unit tests
fe-test:
name: FE Unit Tests
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
matrix:
node-version: [20, 22]
@@ -30,7 +30,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: useblacksmith/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml
index c6ab3c8389..8979750a8a 100644
--- a/.github/workflows/ghcr-build.yml
+++ b/.github/workflows/ghcr-build.yml
@@ -32,7 +32,7 @@ jobs:
# Builds the OpenHands Docker images
ghcr_build_app:
name: Build App Image
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
contents: read
packages: write
@@ -80,7 +80,7 @@ jobs:
# Builds the runtime Docker images
ghcr_build_runtime:
name: Build Image
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
contents: read
packages: write
@@ -108,11 +108,11 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v3
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: '3.12'
- name: Cache Poetry dependencies
- uses: actions/cache@v4
+ uses: useblacksmith/cache@v5
with:
path: |
~/.cache/pypoetry
@@ -150,7 +150,7 @@ jobs:
verify_hash_equivalence_in_runtime_and_app:
name: Verify Hash Equivalence in Runtime and Docker images
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [ghcr_build_runtime, ghcr_build_app]
strategy:
fail-fast: false
@@ -161,7 +161,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Poetry dependencies
- uses: actions/cache@v4
+ uses: useblacksmith/cache@v5
with:
path: |
~/.cache/pypoetry
@@ -170,7 +170,7 @@ jobs:
restore-keys: |
${{ runner.os }}-poetry-
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: '3.12'
- name: Install poetry via pipx
@@ -204,7 +204,7 @@ jobs:
test_runtime_root:
name: RT Unit Tests (Root)
needs: [ghcr_build_runtime]
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
fail-fast: false
matrix:
@@ -226,7 +226,7 @@ jobs:
run: |
docker load --input /tmp/runtime-${{ matrix.base_image }}.tar
- name: Cache Poetry dependencies
- uses: actions/cache@v4
+ uses: useblacksmith/cache@v5
with:
path: |
~/.cache/pypoetry
@@ -235,7 +235,7 @@ jobs:
restore-keys: |
${{ runner.os }}-poetry-
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: '3.12'
- name: Install poetry via pipx
@@ -269,7 +269,7 @@ jobs:
# Run unit tests with the Docker runtime Docker images as openhands user
test_runtime_oh:
name: RT Unit Tests (openhands)
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [ghcr_build_runtime]
strategy:
matrix:
@@ -291,7 +291,7 @@ jobs:
run: |
docker load --input /tmp/runtime-${{ matrix.base_image }}.tar
- name: Cache Poetry dependencies
- uses: actions/cache@v4
+ uses: useblacksmith/cache@v5
with:
path: |
~/.cache/pypoetry
@@ -300,7 +300,7 @@ jobs:
restore-keys: |
${{ runner.os }}-poetry-
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: '3.12'
- name: Install poetry via pipx
@@ -338,7 +338,7 @@ jobs:
runtime_tests_check_success:
name: All Runtime Tests Passed
if: ${{ !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [test_runtime_root, test_runtime_oh, verify_hash_equivalence_in_runtime_and_app]
steps:
- name: All tests passed
@@ -347,7 +347,7 @@ jobs:
runtime_tests_check_fail:
name: All Runtime Tests Passed
if: ${{ cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [test_runtime_root, test_runtime_oh, verify_hash_equivalence_in_runtime_and_app]
steps:
- name: Some tests failed
@@ -358,7 +358,7 @@ jobs:
name: Update PR Description
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]'
needs: [ghcr_build_runtime]
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Checkout
uses: actions/checkout@v4
diff --git a/.github/workflows/integration-runner.yml b/.github/workflows/integration-runner.yml
index 9b78f789e2..2ad5994df8 100644
--- a/.github/workflows/integration-runner.yml
+++ b/.github/workflows/integration-runner.yml
@@ -18,7 +18,7 @@ env:
jobs:
run-integration-tests:
if: github.event.label.name == 'integration-test' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
contents: "read"
id-token: "write"
@@ -35,13 +35,13 @@ jobs:
run: pipx install poetry
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Setup Node.js
- uses: actions/setup-node@v4
+ uses: useblacksmith/setup-node@v5
with:
node-version: '22.x'
diff --git a/.github/workflows/lint-fix.yml b/.github/workflows/lint-fix.yml
index dca35010fb..8ce580596f 100644
--- a/.github/workflows/lint-fix.yml
+++ b/.github/workflows/lint-fix.yml
@@ -9,7 +9,7 @@ jobs:
lint-fix-frontend:
if: github.event.label.name == 'lint-fix'
name: Fix frontend linting issues
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
contents: write
pull-requests: write
@@ -22,7 +22,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Node.js 20
- uses: actions/setup-node@v4
+ uses: useblacksmith/setup-node@v5
with:
node-version: 20
- name: Install frontend dependencies
@@ -52,7 +52,7 @@ jobs:
lint-fix-python:
if: github.event.label.name == 'lint-fix'
name: Fix Python linting issues
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
contents: write
pull-requests: write
@@ -65,7 +65,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: 3.12
cache: 'pip'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 789a938e1d..539d265ca5 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -19,11 +19,11 @@ jobs:
# Run lint on the frontend code
lint-frontend:
name: Lint frontend
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Install Node.js 20
- uses: actions/setup-node@v4
+ uses: useblacksmith/setup-node@v5
with:
node-version: 20
- name: Install dependencies
@@ -39,13 +39,13 @@ jobs:
# Run lint on the python code
lint-python:
name: Lint python
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: 3.12
cache: 'pip'
@@ -57,11 +57,11 @@ jobs:
# Check version consistency across documentation
check-version-consistency:
name: Check version consistency
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: 3.12
- name: Run version consistency check
diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml
index d550fb802b..fa2015e475 100644
--- a/.github/workflows/openhands-resolver.yml
+++ b/.github/workflows/openhands-resolver.yml
@@ -74,13 +74,13 @@ jobs:
(github.event.review.author_association == 'OWNER' || github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER')
)
)
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: "3.12"
@@ -106,7 +106,7 @@ jobs:
contains(github.event.review.body, '@openhands-agent-exp')
)
)
- uses: actions/cache@v4
+ uses: useblacksmith/cache@v5
with:
path: ${{ env.pythonLocation }}/lib/python3.12/site-packages/*
key: ${{ runner.os }}-pip-openhands-resolver-${{ hashFiles('/tmp/requirements.txt') }}
diff --git a/.github/workflows/py-unit-tests.yml b/.github/workflows/py-unit-tests.yml
index 5aaa607cb3..96927ba666 100644
--- a/.github/workflows/py-unit-tests.yml
+++ b/.github/workflows/py-unit-tests.yml
@@ -19,7 +19,7 @@ jobs:
# Run python unit tests on Linux
test-on-linux:
name: Python Unit Tests on Linux
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
env:
INSTALL_DOCKER: '0' # Set to '0' to skip Docker installation
strategy:
@@ -33,13 +33,13 @@ jobs:
- name: Install tmux
run: sudo apt-get update && sudo apt-get install -y tmux
- name: Setup Node.js
- uses: actions/setup-node@v4
+ uses: useblacksmith/setup-node@v5
with:
node-version: '22.x'
- name: Install poetry via pipx
run: pipx install poetry
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: useblacksmith/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml
index f7228697b8..28efba4976 100644
--- a/.github/workflows/pypi-release.yml
+++ b/.github/workflows/pypi-release.yml
@@ -12,10 +12,10 @@ on:
jobs:
release:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: useblacksmith/setup-python@v6
with:
python-version: 3.12
- name: Install Poetry
diff --git a/.github/workflows/run-eval.yml b/.github/workflows/run-eval.yml
index 460e9405d5..b74726612c 100644
--- a/.github/workflows/run-eval.yml
+++ b/.github/workflows/run-eval.yml
@@ -10,7 +10,7 @@ jobs:
trigger-job:
name: Trigger remote eval job
if: ${{ github.event.label.name == 'run-eval-xs' || github.event.label.name == 'run-eval-s' || github.event.label.name == 'run-eval-m' }}
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Checkout PR branch
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 0d9e879efd..e3d36d4589 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -8,7 +8,7 @@ on:
jobs:
stale:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/stale@v9
with: