From c210230802cf226244ced2eeba6a6414ea80af50 Mon Sep 17 00:00:00 2001 From: Ray Myers Date: Thu, 10 Apr 2025 14:10:29 -0500 Subject: [PATCH] chore - Add more workers to speed up runtime CI tests (#7796) --- .github/workflows/ghcr-build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml index a0b415869b..f6c2014a95 100644 --- a/.github/workflows/ghcr-build.yml +++ b/.github/workflows/ghcr-build.yml @@ -248,7 +248,7 @@ jobs: test_runtime_root: name: RT Unit Tests (Root) needs: [ghcr_build_runtime, define-matrix] - runs-on: blacksmith-4vcpu-ubuntu-2204 + runs-on: blacksmith-8vcpu-ubuntu-2204 strategy: fail-fast: false matrix: @@ -286,7 +286,7 @@ jobs: - name: Install poetry via pipx run: pipx install poetry - name: Install Python dependencies using Poetry - run: make install-python-dependencies INSTALL_PLAYWRIGHT=0 + run: make install-python-dependencies POETRY_GROUP=main,test,runtime INSTALL_PLAYWRIGHT=0 - name: Lowercase Repository Owner run: | echo REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV @@ -308,7 +308,7 @@ jobs: SANDBOX_RUNTIME_CONTAINER_IMAGE=$image_name \ TEST_IN_CI=true \ RUN_AS_OPENHANDS=false \ - poetry run pytest -n 3 -raRs --reruns 2 --reruns-delay 5 --cov=openhands --cov-report=xml -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py + poetry run pytest -n 7 -raRs --reruns 2 --reruns-delay 5 --cov=openhands --cov-report=xml -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py --durations=10 - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 env: @@ -317,7 +317,7 @@ jobs: # Run unit tests with the Docker runtime Docker images as openhands user test_runtime_oh: name: RT Unit Tests (openhands) - runs-on: blacksmith-4vcpu-ubuntu-2204 + runs-on: blacksmith-8vcpu-ubuntu-2204 needs: [ghcr_build_runtime, define-matrix] strategy: matrix: @@ -355,7 +355,7 @@ jobs: - name: Install poetry via pipx run: pipx install poetry - name: Install Python dependencies using Poetry - run: make install-python-dependencies INSTALL_PLAYWRIGHT=0 + run: make install-python-dependencies POETRY_GROUP=main,test,runtime INSTALL_PLAYWRIGHT=0 - name: Lowercase Repository Owner run: | echo REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV @@ -374,7 +374,7 @@ jobs: SANDBOX_RUNTIME_CONTAINER_IMAGE=$image_name \ TEST_IN_CI=true \ RUN_AS_OPENHANDS=true \ - poetry run pytest -n 3 -raRs --reruns 2 --reruns-delay 5 --cov=openhands --cov-report=xml -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py + poetry run pytest -n 7 -raRs --reruns 2 --reruns-delay 5 --cov=openhands --cov-report=xml -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py --durations=10 - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 env: