From df76bbc304c209513cece10b05b4fe700d52bd98 Mon Sep 17 00:00:00 2001 From: Oleksandr Anyshchenko Date: Thu, 12 Oct 2023 14:50:57 +0100 Subject: [PATCH] ci: debug #1 --- .github/workflows/contract-analysis.yml | 34 +++---- .github/workflows/lints.yml | 114 ++++++++++++------------ .github/workflows/scheduled_lints.yml | 13 ++- .github/workflows/tests.yml | 56 ++++++------ 4 files changed, 112 insertions(+), 105 deletions(-) diff --git a/.github/workflows/contract-analysis.yml b/.github/workflows/contract-analysis.yml index 19eb0771e..af69e9141 100644 --- a/.github/workflows/contract-analysis.yml +++ b/.github/workflows/contract-analysis.yml @@ -1,17 +1,17 @@ ---- -on: - push: - branches: - - main - - develop - pull_request: - schedule: - - cron: "30 5 * * *" - workflow_dispatch: - -name: "Contract Security Analysis" -jobs: - contract_analysis: - name: "Shared" - uses: aurora-is-near/.github/.github/workflows/contract_analysis.yml@master - secrets: inherit +#--- +#on: +# push: +# branches: +# - main +# - develop +# pull_request: +# schedule: +# - cron: "30 5 * * *" +# workflow_dispatch: +# +#name: "Contract Security Analysis" +#jobs: +# contract_analysis: +# name: "Shared" +# uses: aurora-is-near/.github/.github/workflows/contract_analysis.yml@master +# secrets: inherit diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index 5d976701d..d6d230a27 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -1,57 +1,57 @@ ---- -on: - push: - branches: - - master - - develop - pull_request: - -name: Lints -jobs: - fmt: - name: Format - runs-on: [self-hosted, light] - steps: - - name: Potential broken submodules fix - run: | - git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - - name: Clone the repository - uses: actions/checkout@v3 - - name: Run cargo fmt - run: cargo make check-fmt - clippy: - name: Clippy - runs-on: [self-hosted, heavy] - steps: - - name: Potential broken submodules fix - run: | - git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - - name: Clone the repository - uses: actions/checkout@v3 - - run: cargo make build-contracts - - name: Run Contract cargo clippy - run: cargo make clippy - udeps: - name: Udeps - runs-on: [self-hosted, heavy] - steps: - - name: Potential broken submodules fix - run: | - git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - - name: Clone the repository - uses: actions/checkout@v3 - - name: Run udeps - run: cargo make udeps - contracts: - name: Contracts - runs-on: [self-hosted, light] - steps: - - name: Potential broken submodules fix - run: | - git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - - name: Clone the repository - uses: actions/checkout@v3 - - name: Run yarn lint - run: cargo make check-contracts - - name: Check committed EvmErc20.bin - run: bash scripts/verify_evm_erc20.sh +#--- +#on: +# push: +# branches: +# - master +# - develop +# pull_request: +# +#name: Lints +#jobs: +# fmt: +# name: Format +# runs-on: [self-hosted, light] +# steps: +# - name: Potential broken submodules fix +# run: | +# git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : +# - name: Clone the repository +# uses: actions/checkout@v3 +# - name: Run cargo fmt +# run: cargo make check-fmt +# clippy: +# name: Clippy +# runs-on: [self-hosted, heavy] +# steps: +# - name: Potential broken submodules fix +# run: | +# git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : +# - name: Clone the repository +# uses: actions/checkout@v3 +# - run: cargo make build-contracts +# - name: Run Contract cargo clippy +# run: cargo make clippy +# udeps: +# name: Udeps +# runs-on: [self-hosted, heavy] +# steps: +# - name: Potential broken submodules fix +# run: | +# git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : +# - name: Clone the repository +# uses: actions/checkout@v3 +# - name: Run udeps +# run: cargo make udeps +# contracts: +# name: Contracts +# runs-on: [self-hosted, light] +# steps: +# - name: Potential broken submodules fix +# run: | +# git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : +# - name: Clone the repository +# uses: actions/checkout@v3 +# - name: Run yarn lint +# run: cargo make check-contracts +# - name: Check committed EvmErc20.bin +# run: bash scripts/verify_evm_erc20.sh diff --git a/.github/workflows/scheduled_lints.yml b/.github/workflows/scheduled_lints.yml index b1cb9dc8e..4f7b01186 100644 --- a/.github/workflows/scheduled_lints.yml +++ b/.github/workflows/scheduled_lints.yml @@ -12,11 +12,16 @@ jobs: run: | git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - name: Clone the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test mainnet - run: cargo make --profile mainnet test + run: cargo make --profile mainnet test-flow - name: Test testnet - run: cargo make --profile testnet test + run: cargo make --profile testnet test-flow + - name: Test mainnet silo + run: cargo make --profile mainnet-silo test-flow + - name: Test testnet silo + run: cargo make --profile testnet-silo test-flow + checks: name: Run checks runs-on: [self-hosted, heavy] @@ -25,5 +30,5 @@ jobs: run: | git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - name: Clone the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: cargo make check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 817fab46a..1c56ca3a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: runs-on: github-hosted-heavy-runner strategy: matrix: - profile: [ mainnet, testnet, mainnet-silo, testnet-silo ] + profile: [ mainnet ] #, testnet, mainnet-silo, testnet-silo ] steps: - name: Potential broken submodules fix run: | @@ -34,7 +34,7 @@ jobs: with: node-version: 16 - name: Install dependencies - run: cargo install cargo-make + run: cargo make -V || cargo install cargo-make - name: Build main contract run: | case ${{ matrix.profile }} in @@ -49,32 +49,34 @@ jobs: esac - name: Tests ${{ matrix.profile }} run: cargo make --profile ${{ matrix.profile }} test-flow + - run: cat /home/runner/work/aurora-engine/aurora-engine/engine-tests/target/limit-order-protocol/yarn-error.log - test_modexp: - name: Test modexp suite ${{ matrix.profile }} - runs-on: github-hosted-heavy-runner - strategy: - matrix: - profile: [ mainnet, testnet ] - steps: - - name: Potential broken submodules fix - run: | - git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - - name: Clone the repository - uses: actions/checkout@v4 - - name: Cargo Cache - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ matrix.profile }}-cargo-modexp-test - - run: cargo install cargo-make - - name: Test ${{ matrix.profile }} bench-modexp - run: cargo make --profile ${{ matrix.profile }} bench-modexp +# test_modexp: +# name: Test modexp suite ${{ matrix.profile }} +# runs-on: github-hosted-heavy-runner +# strategy: +# matrix: +# profile: [ mainnet, testnet ] +# steps: +# - name: Potential broken submodules fix +# run: | +# git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : +# - name: Clone the repository +# uses: actions/checkout@v4 +# - name: Cargo Cache +# uses: actions/cache@v3 +# with: +# path: | +# ~/.cargo/bin/ +# ~/.cargo/registry/index/ +# ~/.cargo/registry/cache/ +# ~/.cargo/git/db/ +# target/ +# key: ${{ matrix.profile }}-cargo-modexp-test +# - name: Install dependencies +# run: cargo make -V || cargo install cargo-make +# - name: Test ${{ matrix.profile }} bench-modexp +# run: cargo make --profile ${{ matrix.profile }} bench-modexp env: CARGO_TERM_COLOR: always