From 5fc67f1d84be160c1b635169a642ddce841888b1 Mon Sep 17 00:00:00 2001 From: BAStos525 <66615487+BAStos525@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:53:35 +0300 Subject: [PATCH] [ci]: Migrate to AWS spot runners CI (#4306) [ci]: Migrate to AWS spot CI runners Signed-off-by: BAStos525 --- .github/workflows/iroha2-dev-pr-static.yml | 2 -- .github/workflows/iroha2-dev-pr-wasm.yaml | 2 +- .github/workflows/iroha2-dev-pr.yml | 12 ++++++------ .github/workflows/iroha2-dev.yml | 2 +- .github/workflows/iroha2-profiling-image.yml | 2 +- .github/workflows/iroha2-release-pr.yml | 8 ++++---- 6 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/iroha2-dev-pr-static.yml b/.github/workflows/iroha2-dev-pr-static.yml index f2bcdb1e423..7ae3aa0b6e6 100644 --- a/.github/workflows/iroha2-dev-pr-static.yml +++ b/.github/workflows/iroha2-dev-pr-static.yml @@ -81,5 +81,3 @@ jobs: working-directory: client_cli/pytests run: | poetry run flake8 . --max-line-length=110 --ignore=F401,W503,E203 - - diff --git a/.github/workflows/iroha2-dev-pr-wasm.yaml b/.github/workflows/iroha2-dev-pr-wasm.yaml index ff674b5bb9f..e4efaf00a0e 100644 --- a/.github/workflows/iroha2-dev-pr-wasm.yaml +++ b/.github/workflows/iroha2-dev-pr-wasm.yaml @@ -23,7 +23,7 @@ env: jobs: tests: - runs-on: ubuntu-latest #[self-hosted, Linux] + runs-on: ubuntu-latest container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: diff --git a/.github/workflows/iroha2-dev-pr.yml b/.github/workflows/iroha2-dev-pr.yml index ee2fab3d43a..0b6d47e7428 100644 --- a/.github/workflows/iroha2-dev-pr.yml +++ b/.github/workflows/iroha2-dev-pr.yml @@ -19,7 +19,7 @@ env: jobs: consistency: - runs-on: [self-hosted, Linux, iroha2ci] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: @@ -36,7 +36,7 @@ jobs: run: ./scripts/tests/consistency.sh docker-compose with_coverage: - runs-on: [self-hosted, Linux, iroha2ci] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: @@ -72,7 +72,7 @@ jobs: # fail_ci_if_error: false integration: - runs-on: [self-hosted, Linux, iroha2ci] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 timeout-minutes: 30 @@ -85,7 +85,7 @@ jobs: integration:: --skip unstable_network unstable: - runs-on: [self-hosted, Linux, iroha2ci] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 timeout-minutes: 60 @@ -99,7 +99,7 @@ jobs: pr-generator-build: # Job will only execute if the head of the pull request is a branch for PR-generator case if: startsWith(github.head_ref, 'iroha2-pr-deploy/') - runs-on: [self-hosted, Linux, iroha2-dev-push] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: @@ -129,7 +129,7 @@ jobs: context: . client-cli-tests: - runs-on: [self-hosted, Linux, iroha2ci] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 timeout-minutes: 60 diff --git a/.github/workflows/iroha2-dev.yml b/.github/workflows/iroha2-dev.yml index 02bce00d85e..9d72efdf786 100644 --- a/.github/workflows/iroha2-dev.yml +++ b/.github/workflows/iroha2-dev.yml @@ -10,7 +10,7 @@ env: jobs: registry: - runs-on: [self-hosted, Linux, iroha2-dev-push] + runs-on: [self-hosted, Linux, iroha2] steps: - uses: actions/checkout@v4 - name: Set up Docker Buildx diff --git a/.github/workflows/iroha2-profiling-image.yml b/.github/workflows/iroha2-profiling-image.yml index d24599abca8..d69b6629c0d 100644 --- a/.github/workflows/iroha2-profiling-image.yml +++ b/.github/workflows/iroha2-profiling-image.yml @@ -26,7 +26,7 @@ on: jobs: registry: - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: diff --git a/.github/workflows/iroha2-release-pr.yml b/.github/workflows/iroha2-release-pr.yml index 99067c687fb..c51e737b3f0 100644 --- a/.github/workflows/iroha2-release-pr.yml +++ b/.github/workflows/iroha2-release-pr.yml @@ -16,7 +16,7 @@ env: jobs: client-cli-tests: - runs-on: [self-hosted, Linux, iroha2ci] + runs-on: [self-hosted, Linux, iroha2] container: image: hyperledger/iroha2-ci:nightly-2024-01-12 timeout-minutes: 60 @@ -59,7 +59,7 @@ jobs: run: bash -c './scripts/tests/panic_on_invalid_genesis.sh' bench: - runs-on: ubuntu-latest #[self-hosted, Linux] + runs-on: ubuntu-latest container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: @@ -75,7 +75,7 @@ jobs: # ------------------------------ SDK tests go here ------------------------ java-api: - runs-on: ubuntu-latest #[self-hosted, Linux] + runs-on: ubuntu-latest container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: @@ -129,7 +129,7 @@ jobs: rm -f ~/.gradle/caches/modules-2/gc.properties long: - runs-on: ubuntu-latest #[self-hosted, Linux] + runs-on: ubuntu-latest container: image: hyperledger/iroha2-ci:nightly-2024-01-12 steps: