Skip to content

Commit

Permalink
ci: temporarily change runners (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenequm authored Dec 20, 2023
1 parent 8f7eaf7 commit 85b6ad9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 12 deletions.
44 changes: 34 additions & 10 deletions .github/workflows/reusable-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ permissions:
jobs:
build-node-image:
name: Build Docker image
runs-on: [compile-gke]
runs-on: [compile]
container:
image: ${{ inputs.builder_image }}
env:
DOCKER_HOST: "unix:///run/docker/docker.sock"
volumes:
- /run/docker:/run/docker
# env:
# DOCKER_HOST: "unix:///run/docker/docker.sock"
# volumes:
# - /run/docker:/run/docker
steps:
- uses: actions/checkout@v3
- name: Authenticate to Google Cloud
Expand Down Expand Up @@ -109,6 +109,10 @@ jobs:
./mangata_rococo_runtime-${{ inputs.version }}.compact.compressed.wasm
./mangata_kusama_runtime-${{ inputs.version }}-fast.compact.compressed.wasm
./mangata_rococo_runtime-${{ inputs.version }}-fast.compact.compressed.wasm
- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

rustfmt-check:
name: Formatting check
Expand Down Expand Up @@ -146,7 +150,7 @@ jobs:

unit-test:
name: Unit tests
runs-on: [compile-gke]
runs-on: [compile]
container:
image: ${{ inputs.builder_image }}
steps:
Expand All @@ -167,10 +171,14 @@ jobs:
key: cargo-unit-cache-${{ inputs.cache_version }}-${{ hashFiles('Cargo.lock') }}
- name: Run unit tests
run: cargo test -j2

- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

coverage-report:
name: Coverage report
runs-on: [compile-gke]
runs-on: [compile]
container:
image: ${{ inputs.builder_image }}
options: --security-opt seccomp=unconfined
Expand Down Expand Up @@ -199,6 +207,10 @@ jobs:
with:
token: ${{ secrets.ORG_CODECOV_TOKEN }}
fail_ci_if_error: true

- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

run-benchmarks-tests:
name: Run benchmark tests
Expand Down Expand Up @@ -231,7 +243,7 @@ jobs:

build-and-run-try-runtime:
name: Run try-runtime checks
runs-on: [compile-gke]
runs-on: [compile]
container:
image: ${{ inputs.builder_image }}
steps:
Expand Down Expand Up @@ -261,10 +273,14 @@ jobs:
- name: Run try-runtime Kusama Mainnet
run: try-runtime --runtime=target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.wasm on-runtime-upgrade live --uri wss://kusama-rpc.mangata.online:443

- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

run-benchmarks:
name: Run runtime benchmarks
# `performance` self-hosted runners have 8 cores and 16GB of RAM
runs-on: [performance-gke]
runs-on: [compile]
env:
STEPS: 2
REPEATS: 1
Expand Down Expand Up @@ -323,10 +339,14 @@ jobs:
with:
name: benchmarks
path: ./benchmarks

- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

build-wasms:
name: Export wasm artifacts
runs-on: [compile-gke]
runs-on: [compile]
env:
STEPS: 2
REPEATS: 1
Expand Down Expand Up @@ -364,3 +384,7 @@ jobs:
/bin/bash -c 'target/release/mangata-node export-genesis-wasm --chain=mangata-rococo -l=info,xyk=error > /dev/null'
/bin/bash -c 'target/release/mangata-node export-genesis-state --chain=mangata-rococo-local -l=info,xyk=error > /dev/null'
/bin/bash -c 'target/release/mangata-node export-genesis-wasm --chain=mangata-rococo-local -l=info,xyk=error > /dev/null'
- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE
6 changes: 5 additions & 1 deletion .github/workflows/reusable-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
fast: false
- command: "yarn test-sdk"
fast: true
runs-on: [e2e-gke]
runs-on: [compile]
timeout-minutes: 180
env:
API_URL: "ws://127.0.0.1:9946"
Expand Down Expand Up @@ -285,6 +285,10 @@ jobs:
run: |
docker kill $(docker ps -q) 2>/dev/null && echo $?
docker-compose down -v
- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

test-complete:
needs: [setup-report, e2e-test-matrix]
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/reusable-perfomance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
performance-tests:
# Allows to keep e2e tests jobs running even if performance-tests fail
continue-on-error: true
runs-on: [compile-gke]
runs-on: [compile]
timeout-minutes: 180
env:
ENV_REF: ${{ inputs.targetEnv || format('pr-{0}', github.event.number) }}
Expand Down Expand Up @@ -90,3 +90,7 @@ jobs:
./e2e/performance/enqueued.txt
./e2e/performance/executed.txt
./e2e/performance/pending.txt
- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1100:1100 $GITHUB_WORKSPACE

0 comments on commit 85b6ad9

Please sign in to comment.