git.delta.rocks / unique-network / refs/commits / c8ae4813a1ad

difftreelog

tests: remove unit test from integration tests

Alexander Aksenov2022-08-22parent: #a22c270.patch.diff
in: master

2 files changed

modified.github/workflows/codestyle.ymldiffbeforeafterboth
before · .github/workflows/codestyle.yml
1name: cargo fmt23on:4  pull_request:5    branches:6      - develop7    types:8      - opened9      - reopened10      - synchronize11      - ready_for_review1213concurrency: 14  group: ${{ github.workflow }}-${{ github.ref }}15  cancel-in-progress: true1617jobs:18  rustfmt:19    runs-on: self-hosted-ci2021    steps:22      - name: Skip if pull request is in Draft23        # `if: github.event.pull_request.draft == true` should be kept here, at24        # the step level, rather than at the job level. The latter is not25        # recommended because when the PR is moved from "Draft" to "Ready to26        # review" the workflow will immediately be passing (since it was skipped),27        # even though it hasn't actually ran, since it takes a few seconds for28        # the workflow to start. This is also disclosed in:29        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1730        # That scenario would open an opportunity for the check to be bypassed:31        # 1. Get your PR approved32        # 2. Move it to Draft33        # 3. Push whatever commits you want34        # 4. Move it to "Ready for review"; now the workflow is passing (it was35        #    skipped) and "Check reviews" is also passing (it won't be updated36        #    until the workflow is finished)37        if: github.event.pull_request.draft == true38        run: exit 13940      - uses: actions/checkout@v341      - name: Install latest nightly42        uses: actions-rs/toolchain@v143        with:44            toolchain: nightly45            default: true46            target: wasm32-unknown-unknown47            components: rustfmt, clippy 48      - name: Run cargo fmt49        run: cargo fmt -- --check   # In that mode it returns only exit code.50      - name: Cargo fmt state51        if: success()52        run: echo "Nothing to do. Cargo fmt returned exit code 0."535455  clippy:56    if: ${{ false }}57    runs-on: self-hosted-ci58      59    steps:60      - name: Skip if pull request is in Draft61        # `if: github.event.pull_request.draft == true` should be kept here, at62        # the step level, rather than at the job level. The latter is not63        # recommended because when the PR is moved from "Draft" to "Ready to64        # review" the workflow will immediately be passing (since it was skipped),65        # even though it hasn't actually ran, since it takes a few seconds for66        # the workflow to start. This is also disclosed in:67        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1768        # That scenario would open an opportunity for the check to be bypassed:69        # 1. Get your PR approved70        # 2. Move it to Draft71        # 3. Push whatever commits you want72        # 4. Move it to "Ready for review"; now the workflow is passing (it was73        #    skipped) and "Check reviews" is also passing (it won't be updated74        #    until the workflow is finished)75        if: github.event.pull_request.draft == true76        run: exit 177        78      - uses: actions/checkout@v379      - name: Install substrate dependencies80        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang81      - name: Install latest nightly82        uses: actions-rs/toolchain@v183        with:84            toolchain: nightly85            default: true86            target: wasm32-unknown-unknown87            components: rustfmt, clippy88      - name: Run cargo check89        run: cargo clippy -- -Dwarnings
after · .github/workflows/codestyle.yml
1name: cargo fmt23on:4  pull_request:5    branches:6      - develop7    types:8      - opened9      - reopened10      - synchronize11      - ready_for_review1213concurrency: 14  group: ${{ github.workflow }}-${{ github.ref }}15  cancel-in-progress: true1617jobs:18  rustfmt:19    runs-on: self-hosted-ci2021    steps:22      - name: Skip if pull request is in Draft23        # `if: github.event.pull_request.draft == true` should be kept here, at24        # the step level, rather than at the job level. The latter is not25        # recommended because when the PR is moved from "Draft" to "Ready to26        # review" the workflow will immediately be passing (since it was skipped),27        # even though it hasn't actually ran, since it takes a few seconds for28        # the workflow to start. This is also disclosed in:29        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1730        # That scenario would open an opportunity for the check to be bypassed:31        # 1. Get your PR approved32        # 2. Move it to Draft33        # 3. Push whatever commits you want34        # 4. Move it to "Ready for review"; now the workflow is passing (it was35        #    skipped) and "Check reviews" is also passing (it won't be updated36        #    until the workflow is finished)37        if: github.event.pull_request.draft == true38        run: exit 13940      - uses: actions/checkout@v341      - name: Install latest nightly42        uses: actions-rs/toolchain@v143        with:44            toolchain: nightly45            default: true46            target: wasm32-unknown-unknown47            components: rustfmt, clippy 48      - name: Run cargo fmt49        run: cargo fmt -- --check   # In that mode it returns only exit code.50      - name: Cargo fmt state51        if: success()52        run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."535455  clippy:56    if: ${{ false }}57    runs-on: self-hosted-ci58      59    steps:60      - name: Skip if pull request is in Draft61        # `if: github.event.pull_request.draft == true` should be kept here, at62        # the step level, rather than at the job level. The latter is not63        # recommended because when the PR is moved from "Draft" to "Ready to64        # review" the workflow will immediately be passing (since it was skipped),65        # even though it hasn't actually ran, since it takes a few seconds for66        # the workflow to start. This is also disclosed in:67        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1768        # That scenario would open an opportunity for the check to be bypassed:69        # 1. Get your PR approved70        # 2. Move it to Draft71        # 3. Push whatever commits you want72        # 4. Move it to "Ready for review"; now the workflow is passing (it was73        #    skipped) and "Check reviews" is also passing (it won't be updated74        #    until the workflow is finished)75        if: github.event.pull_request.draft == true76        run: exit 177        78      - uses: actions/checkout@v379      - name: Install substrate dependencies80        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang81      - name: Install latest nightly82        uses: actions-rs/toolchain@v183        with:84            toolchain: nightly85            default: true86            target: wasm32-unknown-unknown87            components: rustfmt, clippy88      - name: Run cargo check89        run: cargo clippy -- -Dwarnings
modified.github/workflows/dev-build-tests.ymldiffbeforeafterboth
--- a/.github/workflows/dev-build-tests.yml
+++ b/.github/workflows/dev-build-tests.yml
@@ -123,66 +123,3 @@
       - name: Stop running containers
         if: always()                   # run this step always
         run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
-
-
-  dev_build_unit_test:
-    # The type of runner that the job will run on
-    runs-on: [self-hosted-ci,medium]
-    timeout-minutes: 1380
-
-    name: unit tests
-
-
-    continue-on-error: true         #Do not stop testing of matrix runs failed.  As it decided during PR review - it required 50/50& Let's check it with false.
-
-
-    steps:
-      - name: Skip if pull request is in Draft
-        # `if: github.event.pull_request.draft == true` should be kept here, at
-        # the step level, rather than at the job level. The latter is not
-        # recommended because when the PR is moved from "Draft" to "Ready to
-        # review" the workflow will immediately be passing (since it was skipped),
-        # even though it hasn't actually ran, since it takes a few seconds for
-        # the workflow to start. This is also disclosed in:
-        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
-        # That scenario would open an opportunity for the check to be bypassed:
-        # 1. Get your PR approved
-        # 2. Move it to Draft
-        # 3. Push whatever commits you want
-        # 4. Move it to "Ready for review"; now the workflow is passing (it was
-        #    skipped) and "Check reviews" is also passing (it won't be updated
-        #    until the workflow is finished)
-        if: github.event.pull_request.draft == true
-        run: exit 1
-
-      - name: Clean Workspace
-        uses: AutoModality/action-clean@v1.1.0
-
-      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-      - uses: actions/checkout@v3
-        with:
-          ref: ${{ github.head_ref }}  #Checking out head commit
-
-      - name: Read .env file
-        uses: xom9ikk/dotenv@v1.0.2
-
-      - name: Generate ENV related extend file for docker-compose
-        uses: cuchi/jinja2-action@v1.2.0
-        with:
-          template: .docker/docker-compose.tmp-unit.j2
-          output_file: .docker/docker-compose.unit.yml
-          variables: |
-            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
-            FEATURE=${{ matrix.features }}
-    
-
-      - name: Show build configuration
-        run: cat .docker/docker-compose.unit.yml
-
-      - name: Build the stack
-        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" up -d --build --remove-orphans
-
-
-      - name: Stop running containers
-        if: always()                   # run this step always
-        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down