-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into p-554-implement-submitting-batched-callback-e…
…xtrinsics-to-the
- Loading branch information
Showing
7 changed files
with
73 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ name: General CI | |
# - fmt | ||
# - set-condition | ||
# - parachain-build-dev | ||
# - tee-build | ||
# - identity-build | ||
# | ||
# [4] please note that job-level if `env` is not supported: | ||
# https://github.com/actions/runner/issues/1189 | ||
|
@@ -240,14 +240,18 @@ jobs: | |
if: failure() | ||
uses: andymckay/[email protected] | ||
|
||
tee-clippy: | ||
tee-check: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- fmt | ||
- set-condition | ||
- sequentialise | ||
if: needs.set-condition.outputs.rebuild_tee == 'true' | ||
container: "litentry/litentry-tee-dev:latest" | ||
strategy: | ||
matrix: | ||
type: | ||
- tee # TODO: switch to identity | ||
- bitacross | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -256,136 +260,52 @@ jobs: | |
sudo apt-get update && \ | ||
sudo apt-get install -yq openssl clang libclang-dev cmake protobuf-compiler | ||
- name: Pallet unittests | ||
working-directory: ./tee-worker | ||
run: | | ||
cargo test --release -p pallet-* --lib | ||
cargo test --release -p lc-* --lib | ||
cargo test --release -p litentry-primitives --lib | ||
- name: Tee-worker clippy | ||
working-directory: ./tee-worker | ||
run: | | ||
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 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: Cargo test | ||
working-directory: ./${{ matrix.type }}-worker | ||
run: | | ||
cargo test --release | ||
- name: Worker common clippy | ||
working-directory: ./${{ matrix.type }}-worker | ||
shell: bash | ||
run: | | ||
for d in . enclave-runtime; do | ||
pushd "$d" | ||
echo "::group::cargo clippy all" | ||
cargo clippy --release -- -D warnings | ||
echo "::endgroup::" | ||
echo "::group::cargo clippy development" | ||
cargo clippy --release --features development -- -D warnings | ||
echo "::endgroup::" | ||
echo "::group::cargo clippy offchain-worker" | ||
cargo clippy --release --features offchain-worker -- -D warnings | ||
echo "::group::cargo clippy offchain-worker,development" | ||
cargo clippy --release --features offchain-worker,development -- -D warnings | ||
echo "::endgroup::" | ||
popd | ||
done | ||
- name: Clean up disk | ||
- name: Identity-worker specific clippy | ||
if: matrix.type == 'tee' | ||
working-directory: ./tee-worker | ||
run: | | ||
echo "::group::Show disk usage" | ||
df -h . | ||
echo "::endgroup::" | ||
cargo clean --profile release | ||
echo "::group::Show disk usage" | ||
df -h . | ||
echo "::endgroup::" | ||
- name: Tee-enclave clippy | ||
working-directory: ./tee-worker/enclave-runtime | ||
run: | | ||
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 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/[email protected] | ||
|
||
bitacross-clippy: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- fmt | ||
- set-condition | ||
- sequentialise | ||
if: needs.set-condition.outputs.rebuild_bitacross == 'true' | ||
# todo: we might want to change this image in the future | ||
container: "litentry/litentry-tee-dev:latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && \ | ||
sudo apt-get install -yq openssl clang libclang-dev cmake protobuf-compiler | ||
- name: bitacross-worker clippy | ||
working-directory: ./bitacross-worker | ||
run: | | ||
echo "::group::cargo clippy all" | ||
cargo clippy --release -- -D warnings | ||
echo "::endgroup::" | ||
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 | ||
working-directory: ./bitacross-worker | ||
run: | | ||
echo "::group::Show disk usage" | ||
df -h . | ||
echo "::endgroup::" | ||
cargo clean --profile release | ||
echo "::group::Show disk usage" | ||
df -h . | ||
echo "::endgroup::" | ||
- name: bitacross-enclave clippy | ||
working-directory: ./bitacross-worker/enclave-runtime | ||
run: | | ||
echo "::group::cargo clippy all" | ||
cargo clippy --release -- -D warnings | ||
echo "::endgroup::" | ||
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::" | ||
shell: bash | ||
run: | | ||
for d in . enclave-runtime; do | ||
pushd "$d" | ||
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 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::" | ||
popd | ||
done | ||
- name: Fail early | ||
if: failure() | ||
|
@@ -438,7 +358,7 @@ jobs: | |
if: failure() | ||
uses: andymckay/[email protected] | ||
|
||
tee-build: | ||
identity-build: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- fmt | ||
|
@@ -706,12 +626,12 @@ jobs: | |
if: failure() | ||
uses: andymckay/[email protected] | ||
|
||
tee-single-worker-test: | ||
identity-single-worker-test: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- set-condition | ||
- parachain-build-dev | ||
- tee-build | ||
- identity-build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -793,13 +713,13 @@ jobs: | |
if-no-files-found: ignore | ||
retention-days: 3 | ||
|
||
tee-multi-worker-test: | ||
identity-multi-worker-test: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
needs: | ||
- set-condition | ||
- parachain-build-dev | ||
- tee-build | ||
- identity-build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -882,7 +802,7 @@ jobs: | |
# | ||
# Only try to push docker image when | ||
# - parachain-ts-test passes | ||
# - tee-single-worker-test passes | ||
# - identity-single-worker-test passes | ||
# - set-condition.outputs.push_docker is `true` | ||
# Whether the parachain or tee-worker image will actually be pushed still depends on if a new image was built/rebuilt. | ||
# This is important not to overwrite any other jobs where a rebuild **was** triggered. | ||
|
@@ -896,7 +816,7 @@ jobs: | |
needs: | ||
- set-condition | ||
- parachain-ts-test | ||
- tee-single-worker-test | ||
- identity-single-worker-test | ||
if: ${{ !failure() && needs.set-condition.outputs.push_docker == 'true' }} | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters