Skip to content

Commit ead95ac

Browse files
BillyWoooKailai-WangBillyWooowangminqizhiming-zhong
authored
Tee worker polkadot v0.9.32 (#1093)
* merge tee-dev branch into dev branch (#902) * adjust docker tag for tee-dev * use integritee/pallets master branch * add teeracle to tee-dev * switch to sdk-v0.9.0-polkadot-v0.9.26 as release branch * add back the dummy method for testing purpose * fix make clippy * small cleanup * add back teeracle * use specific branch of tee-primitives (todo:revert it) * correctify branch for tee-primitives * temporarily use TEE pallets master branch * add EnsureOrigin impl and tests * its better to place it in runtime_common * remove the dummy extrinsic (used for testing previous) Co-authored-by: Kailai Wang <[email protected]> Co-authored-by: BillyWooo <[email protected]> * 0.9.29 update (#891) * feat: rough update to 0.9.29 * debug:temp fmt * debug: 0.9.29 without trystate * debug: Integration with latest try-runtime * debug: update weight template * debug: fmt * debug: patch toml try-runtime * debug: fmt * debug: revert template non-weight part * debug: add teeracle try-runtime * debug: cargo lock * fix Cargo.lock (#904) * lift the bridge transfer restriciton and bump version (#907) * use hash to compute the raw payload (#910) * remove Litmus sudo (#876) * sudo * change Root into Root +democracy * debug: recover chainspec rootkey * fix clippy * try to fix #900 * add debug log #900 * make CI tests pass after remove litmus `Sudo` * fmt * debug * debug * rococo/litentry align with litmus * remove useless test code Co-authored-by: Kai <[email protected]> Co-authored-by: BillyWooo <[email protected]> Co-authored-by: zhiming-zhong <[email protected]> * Use rococo as dev network (#918) * add rococo staging * cargo update * update README * fix bad english * Bump aes-gcm from `be0d6c2` to `5eb6d1a` (#925) Bumps [aes-gcm](https://github.com/RustCrypto/AEADs) from `be0d6c2` to `5eb6d1a`. - [Release notes](https://github.com/RustCrypto/AEADs/releases) - [Commits](RustCrypto/AEADs@be0d6c2...5eb6d1a) --- updated-dependencies: - dependency-name: aes-gcm dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump scale-info from 2.2.0 to 2.3.0 (#926) Bumps [scale-info](https://github.com/paritytech/scale-info) from 2.2.0 to 2.3.0. - [Release notes](https://github.com/paritytech/scale-info/releases) - [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md) - [Commits](https://github.com/paritytech/scale-info/commits/v2.3.0) --- updated-dependencies: - dependency-name: scale-info dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Minor update (#928) * add dwellir bootnode * bump litmus runtime version * cargo update * feat: relocate remove_sudo migration code (#936) * feat: relocate remove_sudo migration code * debug: fmt * debug: change staking parameter (#931) * debug: change staking parameter * debug: bump rococo.litentry spec version * Use sccache in Dockerfile (#937) * try to switch to github-runner * use sccache in Dockerfile for self-hosted runner * fix syntax * download sccache * fix path and use pre-built taplo * intentionally change lib.rs * intentionally update a pallet only * try to add/stop sccache server * minor update * update README * try to use rust-cache * use /root * use GITHUB_REF_NAME in hash-key * I dislike github syntax * another try * deprecate set-output * revert back lib.rs * dintinguish between release and prod * fix RUN order * use head_ref or ref_name Co-authored-by: BillyWooo <[email protected]> * Update v0.9.30 (#942) * some deps update to v0.9.30 * deps update to v0.9.30 * format code * change deps * fix docker file * fix docker file * change docker file * change docker file * fix docker yml file * fix docker yml file * fix docker yml file * add install dependencis shell * fix install dependencis shell * fix install dependencis shell * fix docker file * fix yml file * add sudo permisson * add some dep Co-authored-by: Chengcheng Shi <Chengcheng@litentry> * optimize cli commands (#947) * optimize cli commands * Change some command's names * format docker file Co-authored-by: SCC <[email protected]> * Add onfinality script (#952) * minor update * bump version and cargo update * [benchmarking bot] Auto commit generated weights files (#951) Co-authored-by: Kailai-Wang <[email protected]> * try to use new weights * fix typo * add missing mods * fix compile * add onFinality image version update * fix indention * add continue-on-error Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Kailai-Wang <[email protected]> * Enable parachain staking extrinsic (#955) * debug: change extrinsic filter * debug: fmt and clippy * debug: revert cargo.lock * Add release bot GHA (#957) * add release bot yml * small update * Issue 958 (#959) * fix parachain staking benchmark code * fix syntax * omit CollatorSelection benchmark code * [benchmarking bot] Auto commit generated weights files (#961) Co-authored-by: Jinsipang <[email protected]> Co-authored-by: Chengcheng Shi Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Bump serde_json from 1.0.87 to 1.0.88 (#967) Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.87 to 1.0.88. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](serde-rs/json@v1.0.87...v1.0.88) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Optimize parachain-staking benchmark code to shorten running time (#974) * remove reward for delegator warn logs * fix benchmark shell * fix some syntax * fix shell * fix shells * optimized benchmark code and shell * fix some params * optimize benchmark code * [benchmarking bot] Auto commit generated weights files (#973) Co-authored-by: Jinsipang * fix benchmark code * add staking benchmark code at runtime * fix benchmark code * fix benchmark code * fix benchmark code * format code * change benchmark code args Co-authored-by: Chengcheng Shi <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Bump aes-gcm from `86250ac` to `6ac2d1c` (#970) Bumps [aes-gcm](https://github.com/RustCrypto/AEADs) from `86250ac` to `6ac2d1c`. - [Release notes](https://github.com/RustCrypto/AEADs/releases) - [Commits](RustCrypto/AEADs@86250ac...6ac2d1c) --- updated-dependencies: - dependency-name: aes-gcm dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump serde from 1.0.147 to 1.0.148 (#991) Bumps [serde](https://github.com/serde-rs/serde) from 1.0.147 to 1.0.148. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.147...v1.0.148) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump serde_json from 1.0.88 to 1.0.89 (#990) Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.88 to 1.0.89. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](serde-rs/json@v1.0.88...v1.0.89) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: add PolkadotXCM filter (#993) * update Polkadot v0.9.32 (#1043) * update deps to polkaodt-v0.9.31 * update node cli * fix some test code * update to polkadot-v0.9.32 * fix buuld benchmark failed and run test failed issues * fix node code * [benchmarking bot] Auto commit generated weights files (#1046) Co-authored-by: Chengcheng Shi <[email protected]> * Support standalone node for parachain (#1059) * use unified crate version and cargo update * initial add standalone mode * fix chain spec id * fix clippy * add script to start standalone node * add Makefile * use 9944 as parachain port consistently * adjust bridge endpoint * minor update * recover docker image * minor update * bump version * update README * Bump decode-uri-component from 0.2.0 to 0.2.2 in /ts-tests (#1060) Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Backport from release-v0.9.13 banch (#1067) * minor fix of text search * fix small typo * Bump express from 4.17.2 to 4.18.2 in /ts-tests (#1071) Bumps [express](https://github.com/expressjs/express) from 4.17.2 to 4.18.2. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.17.2...4.18.2) --- updated-dependencies: - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Runtime upgrade simulation (#1081) * update script * use relative path * update script * improve arg handling * fix trap * simulmation runtime upgrade demo impl * runtime-upgrade ts impl * fix some syntax * fix makefile * optimized scripts && cli * use master branch of fork-off-substrate * optimize ts code * fix description * fix action sytanx * fix cli syntax * fix cli syntax * fix cli syntax * fix cli syntax * fix cli syntax * fix cli syntax * fix cli syntax * fix cli syntax * optimize ts-code & cli * adjustment of script and GHA * try to fix CI Co-authored-by: Scc <[email protected]> Co-authored-by: Scc <[email protected]> * update dependencies from fork pallets to origin integritee pallets v0.9.32 (#1083) * switch to temp branch * update to integritee-pallets v0.9.32 * update pallets repo source * add up missing lock file * [benchmarking bot] Auto commit generated weights files * [benchmarking bot] Auto commit generated weights files (#1082) Co-authored-by: BillyWooo <[email protected]> * Revert "[benchmarking bot] Auto commit generated weights files (#1082)" This reverts commit 6b11ff2. * Revert "Merge remote-tracking branch 'origin/benchmarking-bot-3656108355' into pr-integritee-pallets-v0.9.32" This reverts commit 3cb2961, reversing changes made to d93c244. Co-authored-by: BillyWooo <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: zhizming-zhong <[email protected]> * Bump serde from 1.0.149 to 1.0.150 (#1085) Bumps [serde](https://github.com/serde-rs/serde) from 1.0.149 to 1.0.150. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.149...v1.0.150) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump scale-info from 2.3.0 to 2.3.1 (#1086) Bumps [scale-info](https://github.com/paritytech/scale-info) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/paritytech/scale-info/releases) - [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md) - [Commits](paritytech/scale-info@v2.3.0...v2.3.1) --- updated-dependencies: - dependency-name: scale-info dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add test local pallets benchmarking shell (#1087) * add local benchmark testing shell * fix benmarking scripts * fix some syntax * fix some syntax * fix some syntax Co-authored-by: SCC <[email protected]> * Revert "Add test local pallets benchmarking shell (#1087)" (#1091) This reverts commit 1c1ee63. * update tee-worker to upstream/master (3cc02342) * bump up version to 0.9.32 * cargo build / fmt / clippy / test pass * parachain build Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Kailai Wang <[email protected]> Co-authored-by: BillyWooo <[email protected]> Co-authored-by: WMQ <[email protected]> Co-authored-by: Kai <[email protected]> Co-authored-by: zhiming-zhong <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: SCC <[email protected]> Co-authored-by: Chengcheng Shi <Chengcheng@litentry> Co-authored-by: SCC <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Kailai-Wang <[email protected]> Co-authored-by: Chengcheng Shi <[email protected]> Co-authored-by: BillyWooo <[email protected]> Co-authored-by: ericzhang <[email protected]>
1 parent cc55ce7 commit ead95ac

File tree

409 files changed

+11819
-8591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+11819
-8591
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install additional dependencies
3939
run: |
4040
sudo apt update -y &&
41-
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
41+
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
4242
4343
- name: Install cargo-tarpaulin
4444
run: |

.github/workflows/parachain-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ jobs:
108108
target: wasm32-unknown-unknown
109109
default: true
110110

111+
- name: Install dependencies
112+
run: |
113+
sudo apt-get update && \
114+
sudo apt-get install -yq openssl clang libclang-dev cmake protobuf-compiler
115+
111116
- name: Run cargo clippy check
112117
run: make clippy
113118

@@ -300,6 +305,11 @@ jobs:
300305
chmod +x $HOME/.local/bin/sccache
301306
echo "$HOME/.local/bin" >> $GITHUB_PATH
302307
308+
- name: Install dependencies
309+
run: |
310+
sudo apt-get update && \
311+
sudo apt-get install -yq openssl clang libclang-dev cmake protobuf-compiler
312+
303313
- name: Cache cargo registry
304314
if: needs.check-file-change.outputs.src == 'true'
305315
uses: actions/cache@v3

.github/workflows/release-bot.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: 'Release bot'
2+
on:
3+
release:
4+
types: [released]
5+
6+
jobs:
7+
release-bot:
8+
runs-on: ubuntu-latest
9+
# this means the release contains a new docker image (thus a new client)
10+
if: contains(github.event.release.body, 'litentry/litentry-parachain:v')
11+
steps:
12+
- name: Post discord message
13+
env:
14+
DISCORD_WEBHOOK: ${{ secrets.RELEASE_BOT_DISCORD_WEBHOOK }}
15+
uses: Ilshidur/[email protected]
16+
continue-on-error: true
17+
with:
18+
args: |
19+
Hi @everyone,
20+
🚀 A new client release has been built: https://github.com/litentry/litentry-parachain/releases/tag/${{ github.event.release.tag_name }}
21+
✨ Please update the client using the docker image litentry/litentry-parachain:${{ github.event.release.tag_name }}
22+
23+
- name: Update litmus image version
24+
uses: "OnFinality-io/action-onf-release@v1"
25+
continue-on-error: true
26+
with:
27+
# These keys should be in your GitHub secrets
28+
# https://documentation.onfinality.io/support/onfinality-cli-tool-and-access-keys
29+
onf-access-key: ${{ secrets.ONF_ACCESS_KEY }}
30+
onf-secret-key: ${{ secrets.ONF_SECRET_KEY }}
31+
onf-workspace-id: ${{ secrets.ONF_WORKSPACE_ID }}
32+
onf-network-key: litmus-onfinality-key
33+
# Add a new image version to network spec
34+
onf-sub-command: image
35+
onf-action: add
36+
image-version: ${{ github.event.release.tag_name }}
37+
38+
- name: Update litentry image version
39+
uses: "OnFinality-io/action-onf-release@v1"
40+
continue-on-error: true
41+
with:
42+
# These keys should be in your GitHub secrets
43+
# https://documentation.onfinality.io/support/onfinality-cli-tool-and-access-keys
44+
onf-access-key: ${{ secrets.ONF_ACCESS_KEY }}
45+
onf-secret-key: ${{ secrets.ONF_SECRET_KEY }}
46+
onf-workspace-id: ${{ secrets.ONF_WORKSPACE_ID }}
47+
onf-network-key: litentry
48+
# Add a new image version to network spec
49+
onf-sub-command: image
50+
onf-action: add
51+
image-version: ${{ github.event.release.tag_name }}
52+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Simulate runtime upgrade
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
workflow_dispatch:
8+
inputs:
9+
release_tag:
10+
description: runtime.wasm release_tag
11+
required: true
12+
13+
env:
14+
RELEASE_TAG: ${{ github.event.inputs.release_tag || github.event.release.tag_name }}
15+
16+
jobs:
17+
simulate-runtime-upgrade:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
chain:
22+
# litmus is not supported, as sudo was removed
23+
# TODO: add runtime upgrade via governance
24+
- litentry
25+
- rococo
26+
steps:
27+
- name: Checkout codes on ${{ github.ref }}
28+
uses: actions/checkout@v3
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Fork ${{ matrix.chain }} and launch parachain
33+
timeout-minutes: 10
34+
run: |
35+
./scripts/fork-parachain-and-launch.sh ${{ matrix.chain }}
36+
37+
- name: Test runtime upgrade
38+
timeout-minutes: 10
39+
run: |
40+
./scripts/runtime-upgrade.sh https://github.com/litentry/litentry-parachain/releases/download/${{ env.RELEASE_TAG }}/${{ matrix.chain }}-parachain-runtime.compact.compressed.wasm

0 commit comments

Comments
 (0)