Skip to content

Commit

Permalink
[fix] #1630: Move back to self-hosted runners.
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr <a-p-petrosyan@yandex.ru>
  • Loading branch information
appetrosyan committed Dec 2, 2021
1 parent 4341b35 commit cd8e7b3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/iroha2-add-label.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Add Iroha2 label

on:
pull_request_target:
pull_request:
branches: [iroha2-dev, iroha2]
types: [opened]
types: [opened, edited, reopened]

jobs:
add_label:
Expand All @@ -12,4 +12,5 @@ jobs:
- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: iroha2
labels: |
iroha2
14 changes: 9 additions & 5 deletions .github/workflows/iroha2-dev-pr-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: I2::Dev::Static Analysis
on:
pull_request:
branches: [iroha2-dev]
paths:
- "**.rs"
- "**.json"
- "**.toml"
- "**.yml"

jobs:
check:
runs-on: ubuntu-latest
#container: rust:1.56-buster
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
steps:
Expand All @@ -28,13 +32,13 @@ jobs:
- name: Format check
run: cargo +nightly-2021-10-22 fmt --all -- --check
- name: Static analysis without features
run: cargo lints clippy --workspace --benches --tests
run: cargo lints clippy --workspace --benches --tests --quiet
if: always()
- name: Static analysis with all features enabled
run: cargo lints clippy --workspace --benches --tests --all-features
run: cargo lints clippy --workspace --benches --tests --all-features --quiet
if: always()
- name: Documentation check
run: |
cargo doc --no-deps
cargo doc --no-deps --quiet
./scripts/check_docs.sh
if: always()
4 changes: 3 additions & 1 deletion .github/workflows/iroha2-dev-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ jobs:
env:
PR_TITLE: ${{ github.event.pull_request.title }}
# Example: "[feature] #1: Some new feature"
run: echo $PR_TITLE | grep -Eq "^\[(feature|fix|refactor)\] \#[[:digit:]]+:.+$"
run: |
echo "$PR_TITLE" | grep -Eq '^\[(feature|fix|refactor)\] \#[[:digit:]]+:.+$'
|| echo "PR_TITLE" | grep -Eq
5 changes: 2 additions & 3 deletions .github/workflows/iroha2-dev-pr-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ env:

jobs:
test:
runs-on: ubuntu-latest
#container: rust:1.56-buster
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
timeout-minutes: 60
Expand All @@ -30,4 +29,4 @@ jobs:
restore-keys: |
iroha2-rust-test
- name: Run tests
run: cargo test -p iroha_client --tests unstable_network
run: cargo test -p iroha_client --tests unstable_network --quiet
14 changes: 6 additions & 8 deletions .github/workflows/iroha2-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ env:

jobs:
test:
runs-on: ubuntu-latest
#container: rust:1.56-buster
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
timeout-minutes: 60
Expand All @@ -30,16 +29,16 @@ jobs:
restore-keys: |
iroha2-rust-test
- name: Run tests
run: mold -run cargo test --workspace --no-fail-fast -- --skip unstable_network --test-threads 2
run: mold -run cargo test --quiet --workspace --no-fail-fast -- --skip unstable_network --test-threads 2
env:
RUSTC_BOOTSTRAP: 1
- name: Run iroha tests with network mock
run: mold -run cargo test --features mock -- --ignored --skip unstable_network --test-threads 2
run: mold -run cargo test --quiet --features mock -- --ignored --skip unstable_network --test-threads 2
env:
RUSTC_BOOTSTRAP: 1
working-directory: core/test_network
- name: Run iroha_actor deadlock detection tests
run: mold -run cargo test --features deadlock_detection -- --skip unstable_network --test-threads 2
run: mold -run cargo test --quiet --features deadlock_detection -- --skip unstable_network --test-threads 2
if: always()
env:
RUSTC_BOOTSTRAP: 1
Expand All @@ -49,8 +48,7 @@ jobs:
# 1. PR can get coverage report from bot.
# 2 Coverage bot can have results from `iroha2-dev` to report coverage changes.
coverage:
runs-on: ubuntu-latest
#container: rust:1.56-buster
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
steps:
Expand All @@ -64,7 +62,7 @@ jobs:
restore-keys: |
iroha2-rust-test-coverage
- name: Run tests
run: mold -run cargo test --workspace --no-fail-fast -- --skip unstable_network --test-threads 2 || true
run: mold -run cargo test --quiet --workspace --no-fail-fast -- --skip unstable_network --test-threads 2 || true
env:
RUSTFLAGS: "-Zinstrument-coverage"
RUSTC_BOOTSTRAP: 1
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/iroha2-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ env:

jobs:
deploy:
runs-on: ubuntu-latest
# container: rust:1.56-buster
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
steps:
Expand Down

0 comments on commit cd8e7b3

Please sign in to comment.