Skip to content

Commit c76adde

Browse files
BillyWoooKailai-WangBillyWooowangminqizhiming-zhong
authored
Update tee-dev branch into polkadot v0.9.29 (#971)
* 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]> 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>
1 parent 59b698f commit c76adde

File tree

134 files changed

+3784
-3489
lines changed

Some content is hidden

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

134 files changed

+3784
-3489
lines changed

.github/workflows/benchmark-machine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
echo "Remote instance reachable now after $SECONDS seconds"
4444
remote_ip=`aws ec2 describe-instances --filters 'Name=instance-state-name,Values=running' 'Name=instance-id,Values=${{ env.INSTANCE_ID }}' --query 'Reservations[*].Instances[*].[PublicIpAddress]' --output text`
4545
echo "Running instances ip address: $remote_ip"
46-
echo "::set-output name=remote_ip::$remote_ip"
46+
echo "remote_ip=$remote_ip" >> $GITHUB_OUTPUT
4747
4848
# exit status should propagate through ssh
4949
- name: Remotely benchmark machine

.github/workflows/benchmark-runtime-weights.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ env:
3333
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }} # remote AWS host to run benchmarking
3434
BENCHMARK_SSH_USER: ${{ secrets.BENCHMARK_SSH_USER }}
3535
BENCHMARK_SSH_KEYPATH: ${{ secrets.BENCHMARK_SSH_KEYPATH }}
36+
DOCKER_BUILDKIT: 1
37+
3638
jobs:
3739
## build docker image with runtime-benchmarks feature
3840
build-docker:
@@ -112,7 +114,7 @@ jobs:
112114
echo "Remote instance reachable now after $SECONDS seconds"
113115
remote_ip=`aws ec2 describe-instances --filters 'Name=instance-state-name,Values=running' 'Name=instance-id,Values=${{ env.INSTANCE_ID }}' --query 'Reservations[*].Instances[*].[PublicIpAddress]' --output text`
114116
echo "Running instances ip address: $remote_ip"
115-
echo "::set-output name=remote_ip::$remote_ip"
117+
echo "remote_ip=$remote_ip" >> $GITHUB_OUTPUT
116118
117119
# exit status should propagate through ssh
118120
- name: Remotely benchmark pallets ${{ github.event.inputs.pallets }} for ${{ env.CHAIN }}

.github/workflows/build-and-test.yml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919

2020
env:
2121
CARGO_TERM_COLOR: always
22+
DOCKER_BUILDKIT: 1
23+
# the branch or tag on which this workflow is triggered
24+
# `head_ref` will only be set if the triggering event is `pull_request`
25+
REF_VERSION: ${{ github.head_ref || github.ref_name }}
2226

2327
concurrency:
2428
group: ${{ github.workflow }}-${{ github.ref }}
@@ -73,8 +77,14 @@ jobs:
7377
- name: Run cargo fmt check
7478
run: make fmtcheck
7579

76-
- name: Install taplo
77-
run: cargo install taplo-cli --locked
80+
- name: Install pre-built taplo
81+
run: |
82+
mkdir -p $HOME/.local/bin
83+
wget -q https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz
84+
gzip -d taplo-linux-x86_64.gz
85+
cp taplo-linux-x86_64 $HOME/.local/bin/taplo
86+
chmod a+x $HOME/.local/bin/taplo
87+
echo "$HOME/.local/bin" >> $GITHUB_PATH
7888
7989
- name: Run taplo fmt check
8090
run: make taplocheck
@@ -145,6 +155,10 @@ jobs:
145155
run: |
146156
[ -z "$(docker images --filter=dangling=true -q)" ] || docker rmi -f $(docker images --filter=dangling=true -q)
147157
158+
- name: Fail-fast; cancel other jobs
159+
if: failure()
160+
uses: andymckay/[email protected]
161+
148162
run-ts-tests:
149163
runs-on: ubuntu-latest
150164
needs: build-docker
@@ -204,7 +218,7 @@ jobs:
204218
default: true
205219

206220
- name: Run unittests
207-
run: cargo test --release -p pallet-* --lib
221+
run: cargo test --locked --release -p pallet-* --lib
208222

209223
- name: Fail-fast; cancel other jobs
210224
if: failure()
@@ -228,7 +242,7 @@ jobs:
228242
default: true
229243

230244
- name: Run benchmarks
231-
run: cargo test --release -p pallet-* --lib --features runtime-benchmarks
245+
run: cargo test --locked --release -p pallet-* --lib --features runtime-benchmarks
232246

233247
- name: Fail-fast; cancel other jobs
234248
if: failure()
@@ -241,16 +255,17 @@ jobs:
241255
# This is required when setting github merge rules to protected branch,
242256
# where you can only select one of `run-cargo-runtime-tests` and `run-cargo-runtime-tests(litmus)`.
243257
# If you put if-check on the job level, it can't fit every possible case.
258+
#
259+
# Tried https://github.com/Swatinem/rust-cache too but it didn't work so well
244260
run-cargo-runtime-tests:
245261
runs-on: ubuntu-latest
246262
needs: [check-cargo-fmt, check-file-change]
247263
env:
248-
RUST_BACKTRACE: full
249264
RUSTC_WRAPPER: sccache
250265
SCCACHE_CACHE_SIZE: 10G
251266
SCCACHE_DIR: /home/runner/.cache/sccache
252-
CARGO_INCREMENTAL: 0
253267
strategy:
268+
fail-fast: true
254269
matrix:
255270
chain:
256271
- litmus
@@ -273,10 +288,9 @@ jobs:
273288
# use sccache to accelerate binary compilation
274289
# see https://www.infinyon.com/blog/2021/04/github-actions-best-practices/
275290
- name: Install sccache
276-
if: needs.check-file-change.outputs.src == 'true'
277291
env:
278292
LINK: https://github.com/mozilla/sccache/releases/download
279-
SCCACHE_VERSION: v0.2.15
293+
SCCACHE_VERSION: v0.3.0
280294
run: |
281295
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
282296
mkdir -p $HOME/.local/bin
@@ -287,29 +301,31 @@ jobs:
287301
288302
- name: Cache cargo registry
289303
if: needs.check-file-change.outputs.src == 'true'
290-
uses: actions/cache@v2
304+
uses: actions/cache@v3
291305
continue-on-error: false
292306
with:
293307
path: |
294308
~/.cargo/registry
295309
~/.cargo/git
296-
key: cargo-${{ hashFiles('**/Cargo.lock') }}
310+
key: cargo-${{ env.REF_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
297311
restore-keys: |
312+
cargo-${{ env.REF_VERSION }}-
298313
cargo-
299314
300315
- name: Cache sccache
301316
if: needs.check-file-change.outputs.src == 'true'
302-
uses: actions/cache@v2
317+
uses: actions/cache@v3
303318
continue-on-error: false
304319
with:
305320
path: /home/runner/.cache/sccache
306-
key: sccache-${{ hashFiles('**/Cargo.lock') }}
321+
key: sccache-${{ env.REF_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
307322
restore-keys: |
323+
sccache-${{ env.REF_VERSION }}-
308324
sccache-
309325
310326
- name: Run runtime integration tests
311327
if: needs.check-file-change.outputs.src == 'true'
312-
run: cargo test --release -p ${{ matrix.chain }}-parachain-runtime --lib
328+
run: cargo test --locked --release -p ${{ matrix.chain }}-parachain-runtime --lib
313329

314330
- name: Print sccache stats
315331
if: needs.check-file-change.outputs.src == 'true'
@@ -343,7 +359,7 @@ jobs:
343359
docker load -i litentry-parachain.tar
344360
345361
- name: Dockerhub login
346-
uses: docker/login-action@v1
362+
uses: docker/login-action@v2
347363
with:
348364
username: ${{ secrets.DOCKERHUB_USERNAME }}
349365
password: ${{ secrets.DOCKERHUB_PASSWORD }}

.github/workflows/build-docker-with-args.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ on:
2121
default: ''
2222
required: false
2323

24+
env:
25+
DOCKER_BUILDKIT: 1
2426

2527
jobs:
2628
## build docker image of client binary with args ##

.github/workflows/create-release-draft.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ env:
3333
RELEASE_TAG: ${{ github.event.inputs.release_tag }}
3434
DIFF_TAG: ${{ github.event.inputs.diff_tag }}
3535
GENESIS_RELEASE: ${{ github.event.inputs.genesis_release }}
36+
DOCKER_BUILDKIT: 1
3637

3738
jobs:
3839
set-release-type:
@@ -52,7 +53,7 @@ jobs:
5253
echo "::error::Please select at least one release type."
5354
exit 1
5455
fi
55-
echo "::set-output name=release_type::${release_type}"
56+
echo "release_type=${release_type}" >> $GITHUB_OUTPUT
5657
outputs:
5758
release_type: ${{ steps.vars.outputs.release_type }}
5859

0 commit comments

Comments
 (0)