Skip to content

Commit

Permalink
Merge branch 'dev' into release-v0.9.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailai-Wang committed Feb 23, 2024
2 parents 769b536 + 655fc19 commit d78525e
Show file tree
Hide file tree
Showing 742 changed files with 17,154 additions and 36,977 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
required: true

env:
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }} # remote AWS host to run benchmarking
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }} # remote AWS host to run benchmarking
BENCHMARK_SSH_USER: ${{ secrets.BENCHMARK_SSH_USER }}
BENCHMARK_SSH_KEYPATH: ${{ secrets.BENCHMARK_SSH_KEYPATH }}
DOCKER_BUILDKIT: 1
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
./scripts/build-docker.sh production runtime-benchmarks --features=runtime-benchmarks
- name: Dockerhub login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-with-args.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
docker images
- name: Dockerhub login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Install pre-built taplo
run: |
mkdir -p $HOME/.local/bin
wget -q https://github.com/tamasfe/taplo/releases/latest/download/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 @@ -184,7 +184,7 @@ jobs:
- name: bitacross-worker enclave-runtime fmt check
working-directory: ./bitacross-worker/enclave-runtime
run: |
cargo fmt --all -- --check
cargo fmt --all -- --check
- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm
Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:
- set-condition
- sequentialise
if: needs.set-condition.outputs.rebuild_bitacross == 'true'
# todo: we might want to change this image in the future
# todo: we might want to change this image in the future
container: "litentry/litentry-tee-dev:latest"
steps:
- uses: actions/checkout@v4
Expand All @@ -327,9 +327,6 @@ jobs:
echo "::group::cargo clippy all"
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
Expand All @@ -352,9 +349,6 @@ jobs:
echo "::group::cargo clippy all"
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
Expand Down Expand Up @@ -692,20 +686,16 @@ jobs:
fail-fast: false
matrix:
include:
- test_name: demo-shielding-unshielding-multiworker
- test_name: demo-direct-call
# Litentry
- test_name: lit-set-heartbeat-timeout
- test_name: lit-ii-vc-test
- test_name: lit-ii-identity-test
- 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-vc-test
- test_name: lit-dr-vc-test
- test_name: lit-parentchain-nonce
- test_name: lit-ii-batch-test
- test_name: lit-test-stress-script
- test_name: lit-data-providers-test
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -785,6 +775,7 @@ jobs:
- test_name: lit-di-evm-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-ii-batch-test-multiworker
- test_name: lit-ii-identity-multiworker-test
- test_name: lit-ii-vc-multiworker-test
Expand Down Expand Up @@ -890,7 +881,7 @@ jobs:
docker load < litentry-tee.tar.gz
- name: Dockerhub login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/verify-correctness-of-vc-content-.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Verify the correctness of VC content

on:
workflow_dispatch:
inputs:
docker-tag:
description: "client tag(e.g. p1.2.0-9701-w0.0.1-101)"
required: true
default: "latest"
jobs:
test-data-provider:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set ENV
run: |
# extracting parachain version and worker version from release tag
echo "PARACHAIN_TAG=$(echo ${{inputs.docker-tag}} | sed 's/p/v/;s/\(.*\)-w.*/\1/')" >> $GITHUB_ENV
echo "WORKER_TAG=$(echo ${{inputs.docker-tag}} | sed 's/.*\(w.*\)/\1/;s/w/v/')" >> $GITHUB_ENV
- name: Pull litentry image optionally
run: |
docker pull parity/polkadot
docker pull litentry/litentry-worker:$WORKER_TAG
docker pull litentry/litentry-cli:$WORKER_TAG
docker pull litentry/litentry-parachain:$PARACHAIN_TAG
- name: Re-tag docker image
run: |
docker tag litentry/litentry-worker:$WORKER_TAG litentry/litentry-worker:latest
docker tag litentry/litentry-cli:$WORKER_TAG litentry/litentry-cli:latest
docker tag litentry/litentry-parachain:$PARACHAIN_TAG litentry/litentry-parachain:latest
- run: docker images --all

- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm

- name: Generate parachain artefacts
run: |
./tee-worker/scripts/litentry/generate_parachain_artefacts.sh
- name: Build litentry parachain docker images
run: |
cd tee-worker/docker
docker compose -f litentry-parachain.build.yml build
- name: Run data-provider-test
run: |
cd tee-worker/docker
docker compose -f docker-compose.yml -f lit-data-provider-test.yml up --no-build --exit-code-from lit-data-provider-test lit-data-provider-test
- name: Stop docker containers
run: |
cd tee-worker/docker
docker compose -f docker-compose.yml -f lit-data-provider-test.yml stop
- name: Collect Docker Logs
continue-on-error: true
if: always()
uses: jwalton/gh-docker-logs@v2
with:
tail: all
dest: logs

- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs-lit-data-provider-test
path: logs
if-no-files-found: ignore
Loading

0 comments on commit d78525e

Please sign in to comment.