Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into release-v0.9.17
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyWooo committed Apr 19, 2024
2 parents 7e7c6cd + 4623a75 commit f3e8e88
Show file tree
Hide file tree
Showing 395 changed files with 10,185 additions and 17,649 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,13 @@ updates:
schedule:
interval: "weekly"

- package-ecosystem: github-actions
directory: '/'
labels: ["automated-pr"]
reviewers:
- "litentry/parachain"
schedule:
interval: "weekly"

# handle ts-tests dependencies manually before we find a way to merge
# the dependabot PRs
4 changes: 2 additions & 2 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
echo "CHAIN=$chain" >> $GITHUB_ENV
- name: Checkout codes on ${{ github.ref }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
echo "Remote instance running state: $ret"
- name: Create auto PR
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6
with:
commit-message: "[benchmarking bot] Auto commit generated weights files"
committer: benchmarking bot <[email protected]>
Expand Down
70 changes: 54 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
fi
if [ "${{ github.event.inputs.rebuild-bitacross-docker }}" = "true" ] || [ "${{ steps.filter.outputs.bitacross_src }}" = "true" ]; then
rebuild_bitacross=true
fi
fi
if [ "${{ github.event.inputs.push-docker }}" = "true" ]; then
push_docker=true
elif [ "${{ github.event_name }}" = 'push' ] && [ "${{ github.ref }}" = 'refs/heads/dev' ]; then
Expand All @@ -133,7 +133,7 @@ jobs:
fi
if [ "${{ steps.filter.outputs.bitacross_test }}" = "true" ] || [ "$rebuild_parachain" = "true" ] || [ "$rebuild_bitacross" = "true" ]; then
run_bitacross_test=true
fi
fi
echo "rebuild_parachain=$rebuild_parachain" | tee -a $GITHUB_OUTPUT
echo "rebuild_tee=$rebuild_tee" | tee -a $GITHUB_OUTPUT
echo "rebuild_bitacross=$rebuild_bitacross" | tee -a $GITHUB_OUTPUT
Expand All @@ -153,7 +153,7 @@ jobs:
- name: Install pre-built taplo
run: |
mkdir -p $HOME/.local/bin
wget -q https://github.com/tamasfe/taplo/releases/download/0.8.1/taplo-linux-x86_64.gz
wget -q https://github.com/tamasfe/taplo/releases/download/0.8.1/taplo-linux-x86_64.gz
gzip -d taplo-linux-x86_64.gz
cp taplo-linux-x86_64 $HOME/.local/bin/taplo
chmod a+x $HOME/.local/bin/taplo
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:

- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

# sequentialise the workflow runs on `dev` branch
# the if condition is applied in step level to make this job always `successful`
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:

- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

tee-clippy:
runs-on: ubuntu-latest
Expand All @@ -264,16 +264,30 @@ jobs:
- name: Tee-worker clippy
working-directory: ./tee-worker
run: |
echo "::group::cargo clippy all"
echo "::group::cargo clippy no features"
cargo clippy --release -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy sidechain"
cargo clippy --release --features sidechain -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy evm"
cargo clippy --release --features evm -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy offchain-worker"
cargo clean --profile release
cargo clippy --release --features offchain-worker -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy development"
cargo clippy --release --features development -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy sidechain development"
cargo clippy --release --features sidechain,development -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy evm development"
cargo clippy --release --features evm,development -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy offchain-worker develpment"
cargo clippy --release --features offchain-worker,development -- -D warnings
echo "::endgroup::"
- name: Clean up disk
working-directory: ./tee-worker
Expand All @@ -289,20 +303,31 @@ jobs:
- name: Tee-enclave clippy
working-directory: ./tee-worker/enclave-runtime
run: |
echo "::group::cargo clippy all"
echo "::group::cargo clippy no features"
cargo clippy --release -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy sidechain"
cargo clippy --release --features sidechain -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy offchain-worker"
cargo clean --profile release
cargo clippy --release --features offchain-worker -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy development"
cargo clippy --release --features development -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy sidechain development"
cargo clippy --release --features sidechain,development -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy evm development"
cargo clippy --release --features evm,development -- -D warnings
echo "::endgroup::"
echo "::group::cargo clippy offchain-worker develpment"
cargo clippy --release --features offchain-worker,development -- -D warnings
echo "::endgroup::"
- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

bitacross-clippy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -330,6 +355,9 @@ jobs:
echo "::group::cargo clippy offchain-worker"
cargo clean --profile release
cargo clippy --release --features offchain-worker -- -D warnings
echo "::group::cargo clippy offchain-worker,development"
cargo clean --profile release
cargo clippy --release --features offchain-worker,development -- -D warnings
echo "::endgroup::"
- name: Clean up disk
Expand All @@ -352,11 +380,14 @@ jobs:
echo "::group::cargo clippy offchain-worker"
cargo clean --profile release
cargo clippy --release --features offchain-worker -- -D warnings
echo "::group::cargo clippy offchain-worker,development"
cargo clean --profile release
cargo clippy --release --features offchain-worker,development -- -D warnings
echo "::endgroup::"
- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

parachain-build-dev:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -403,7 +434,7 @@ jobs:

- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

tee-build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -477,6 +508,8 @@ jobs:
target: builder
build-args: |
WORKER_MODE_ARG=sidechain
WORKER_ENV_DATA_PROVIDERS_CONFIG=1
WORKER_MOCK_SERVER=1
ADDITIONAL_FEATURES_ARG=
- name: Copy caches from the built image
Expand Down Expand Up @@ -545,7 +578,7 @@ jobs:
if-no-files-found: error
- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

parachain-ts-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -606,7 +639,7 @@ jobs:

- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

parachain-unit-test:
runs-on: ubuntu-latest
Expand All @@ -633,7 +666,7 @@ jobs:
- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

parachain-runtime-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -669,7 +702,7 @@ jobs:
- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

tee-single-worker-test:
runs-on: ubuntu-latest
Expand All @@ -685,10 +718,12 @@ jobs:
- test_name: lit-di-substrate-identity-test
- test_name: lit-di-evm-identity-test
- test_name: lit-di-bitcoin-identity-test
- test_name: lit-di-solana-identity-test
- test_name: lit-di-vc-test
- test_name: lit-dr-vc-test
- test_name: lit-parentchain-nonce
- test_name: lit-test-failed-parentchain-extrinsic
- test_name: lit-scheduled-enclave-test
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -765,11 +800,14 @@ jobs:
fail-fast: false
matrix:
include:
- test_name: lit-di-bitcoin-identity-multiworker-test
- test_name: lit-di-evm-identity-multiworker-test
- test_name: lit-di-solana-identity-multiworker-test
- test_name: lit-di-substrate-identity-multiworker-test
- test_name: lit-di-vc-multiworker-test
- test_name: lit-dr-vc-multiworker-test
- test_name: lit-resume-worker
- test_name: lit-scheduled-enclave-multiworker-test
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
--exclude-files **/mock.rs **/weights.rs **/benchmarking.rs **/weights/* node/* runtime/*
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
verbose: true
2 changes: 1 addition & 1 deletion .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ jobs:

- name: Fail early
if: failure()
uses: andymckay/cancel-action@0.3
uses: andymckay/cancel-action@0.4

## test again the built docker image ##
run-ts-tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-stale-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
stale-bot:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-issue-message: '
:exclamation: This issue is stale because it has been open for 60 days with no activity.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ts-api-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
docker compose -f docker-compose.yml -f lit-ts-api-package-build.yml up --no-build --exit-code-from lit-ts-api-package-build lit-ts-api-package-build
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
Expand Down
Loading

0 comments on commit f3e8e88

Please sign in to comment.