π 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.ymlindex 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-2204permissions:actions: writecontents: readdiff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.ymlindex 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-2204steps:- uses: actions/checkout@v4with:fetch-depth: 0- - uses: actions/setup-node@v4+ - uses: useblacksmith/setup-node@v5with:node-version: 18cache: npmcache-dependency-path: docs/package-lock.json- name: Set up Python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with: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 runningconcurrency:diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.ymlindex 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-2204steps:- uses: actions/checkout@v4- name: Set up Docker Buildx@@ -25,13 +25,13 @@ jobs:- name: Install tmuxrun: sudo apt-get update && sudo apt-get install -y tmux- name: Setup Node.js- uses: actions/setup-node@v4+ uses: useblacksmith/setup-node@v5with:node-version: '22.x'- name: Install poetry via pipxrun: pipx install poetry- name: Set up Python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: '3.12'cache: 'poetry'diff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.ymlindex 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 testsfe-test:name: FE Unit Tests- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204strategy:matrix:node-version: [20, 22]@@ -30,7 +30,7 @@ jobs:- name: Checkoutuses: actions/checkout@v4- name: Set up Node.js- uses: actions/setup-node@v4+ uses: useblacksmith/setup-node@v5with:node-version: ${{ matrix.node-version }}- name: Install dependenciesdiff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.ymlindex c6ab3c8389..8979750a8a 100644--- a/.github/workflows/ghcr-build.yml+++ b/.github/workflows/ghcr-build.yml@@ -32,7 +32,7 @@ jobs:# Builds the OpenHands Docker imagesghcr_build_app:name: Build App Image- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204permissions:contents: readpackages: write@@ -80,7 +80,7 @@ jobs:# Builds the runtime Docker imagesghcr_build_runtime:name: Build Image- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204permissions:contents: readpackages: write@@ -108,11 +108,11 @@ jobs:id: buildxuses: docker/setup-buildx-action@v3- name: Set up Python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: '3.12'- name: Cache Poetry dependencies- uses: actions/cache@v4+ uses: useblacksmith/cache@v5with: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-2204needs: [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@v5with: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@v6with: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-2204strategy:fail-fast: falsematrix:@@ -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@v5with: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@v6with: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 usertest_runtime_oh:name: RT Unit Tests (openhands)- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204needs: [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@v5with: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@v6with:python-version: '3.12'- name: Install poetry via pipx@@ -338,7 +338,7 @@ jobs:runtime_tests_check_success:name: All Runtime Tests Passedif: ${{ !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204needs: [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 Passedif: ${{ cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204needs: [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 Descriptionif: 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-2204steps:- name: Checkoutuses: actions/checkout@v4diff --git a/.github/workflows/integration-runner.yml b/.github/workflows/integration-runner.ymlindex 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-2204permissions: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@v6with:python-version: ${{ matrix.python-version }}cache: "poetry"- name: Setup Node.js- uses: actions/setup-node@v4+ uses: useblacksmith/setup-node@v5with:node-version: '22.x'diff --git a/.github/workflows/lint-fix.yml b/.github/workflows/lint-fix.ymlindex 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-2204permissions:contents: writepull-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@v5with: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-2204permissions:contents: writepull-requests: write@@ -65,7 +65,7 @@ jobs:token: ${{ secrets.GITHUB_TOKEN }}- name: Set up python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: 3.12cache: 'pip'diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 789a938e1d..539d265ca5 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -19,11 +19,11 @@ jobs:# Run lint on the frontend codelint-frontend:name: Lint frontend- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204steps:- uses: actions/checkout@v4- name: Install Node.js 20- uses: actions/setup-node@v4+ uses: useblacksmith/setup-node@v5with:node-version: 20- name: Install dependencies@@ -39,13 +39,13 @@ jobs:# Run lint on the python codelint-python:name: Lint python- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204steps:- uses: actions/checkout@v4with:fetch-depth: 0- name: Set up python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: 3.12cache: 'pip'@@ -57,11 +57,11 @@ jobs:# Check version consistency across documentationcheck-version-consistency:name: Check version consistency- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204steps:- uses: actions/checkout@v4- name: Set up python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: 3.12- name: Run version consistency checkdiff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.ymlindex 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-2204steps:- name: Checkout repositoryuses: actions/checkout@v4- name: Set up Python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: "3.12"@@ -106,7 +106,7 @@ jobs:contains(github.event.review.body, '@openhands-agent-exp')))- uses: actions/cache@v4+ uses: useblacksmith/cache@v5with: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.ymlindex 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 Linuxtest-on-linux:name: Python Unit Tests on Linux- runs-on: ubuntu-latest+ runs-on: blacksmith-4vcpu-ubuntu-2204env:INSTALL_DOCKER: '0' # Set to '0' to skip Docker installationstrategy:@@ -33,13 +33,13 @@ jobs:- name: Install tmuxrun: sudo apt-get update && sudo apt-get install -y tmux- name: Setup Node.js- uses: actions/setup-node@v4+ uses: useblacksmith/setup-node@v5with:node-version: '22.x'- name: Install poetry via pipxrun: pipx install poetry- name: Set up Python- uses: actions/setup-python@v5+ uses: useblacksmith/setup-python@v6with:python-version: ${{ matrix.python-version }}cache: 'poetry'diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.ymlindex 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-2204steps:- uses: actions/checkout@v4- - uses: actions/setup-python@v5+ - uses: useblacksmith/setup-python@v6with:python-version: 3.12- name: Install Poetrydiff --git a/.github/workflows/run-eval.yml b/.github/workflows/run-eval.ymlindex 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 jobif: ${{ 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-2204steps:- name: Checkout PR branchdiff --git a/.github/workflows/stale.yml b/.github/workflows/stale.ymlindex 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-2204steps:- uses: actions/stale@v9with: