Skip to content

Commit

Permalink
Filter some calls for proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie <djptux@gmail.com>
  • Loading branch information
Dengjianping committed Jun 14, 2024
2 parents d74773c + 95e5e27 commit efcdc3a
Show file tree
Hide file tree
Showing 178 changed files with 16,950 additions and 15,082 deletions.
4 changes: 0 additions & 4 deletions .github/resources/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ pub trait WeightInfo {

/// Weights for {{pallet}} using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
{{#if (eq pallet "frame_system")}}
impl<T: crate::Config> {{pallet}}::WeightInfo for SubstrateWeight<T> {
{{else}}
impl<T: frame_system::Config> {{pallet}}::WeightInfo for SubstrateWeight<T> {
{{/if}}
{{#each benchmarks as |benchmark|}}
{{#each benchmark.comments as |comment|}}
/// {{comment}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmark_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup update
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -93,8 +93,8 @@ jobs:
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup update
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/integration_test_calamari.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ concurrency:
cancel-in-progress: true
env:
DEBIAN_FRONTEND: noninteractive
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v1.3.0/polkadot
POLKADOT_BINARY: https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.7.0/polkadot
POLKADOT_EXECUTE: https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.7.0/polkadot-execute-worker
POLKADOT_PREPARE: https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.7.0/polkadot-prepare-worker
jobs:
print-rust-versions:
if: contains(github.event.pull_request.labels.*.name, 'A-calamari')
Expand Down Expand Up @@ -69,8 +71,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -133,11 +135,14 @@ jobs:
shell: bash
run: |
apt update && apt install -y curl jq wget git
if [[ ! -f "$HOME/.local/bin/polkadot" ]]; then
curl -L -o $HOME/.local/bin/polkadot ${{ env.POLKADOT_BINARY }}
chmod +x $HOME/.local/bin/polkadot
fi
curl -L -o $HOME/.local/bin/polkadot ${{ env.POLKADOT_BINARY }}
curl -L -o $HOME/.local/bin/polkadot-execute-worker ${{ env.POLKADOT_EXECUTE }}
curl -L -o $HOME/.local/bin/polkadot-prepare-worker ${{ env.POLKADOT_PREPARE }}
chmod +x $HOME/.local/bin/polkadot
chmod +x $HOME/.local/bin/polkadot-execute-worker
chmod +x $HOME/.local/bin/polkadot-prepare-worker
ls -ahl $HOME/.local/bin/
$HOME/.local/bin/polkadot --version
- name: Install dasel cli
run: |
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep linux_amd64 | grep -v .gz | cut -d\" -f 4)" -L -o $HOME/dasel && chmod +x $HOME/dasel
Expand Down Expand Up @@ -217,7 +222,7 @@ jobs:
shell: bash
run: |
cd $GITHUB_WORKSPACE/zombienet-tool
git pull && git checkout v1.3.89
git pull && git checkout v1.3.92
cd $GITHUB_WORKSPACE/zombienet-tool/javascript
yarn
npm run build
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/integration_test_manta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ concurrency:
cancel-in-progress: true
env:
DEBIAN_FRONTEND: noninteractive
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v1.3.0/polkadot
POLKADOT_BINARY: https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.7.0/polkadot
POLKADOT_EXECUTE: https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.7.0/polkadot-execute-worker
POLKADOT_PREPARE: https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.7.0/polkadot-prepare-worker
jobs:
print-rust-versions:
if: contains(github.event.pull_request.labels.*.name, 'A-manta')
Expand Down Expand Up @@ -65,8 +67,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -129,11 +131,14 @@ jobs:
shell: bash
run: |
apt update && apt install -y curl jq wget git
if [[ ! -f "$HOME/.local/bin/polkadot" ]]; then
curl -L -o $HOME/.local/bin/polkadot ${{ env.POLKADOT_BINARY }}
chmod +x $HOME/.local/bin/polkadot
fi
curl -L -o $HOME/.local/bin/polkadot ${{ env.POLKADOT_BINARY }}
curl -L -o $HOME/.local/bin/polkadot-execute-worker ${{ env.POLKADOT_EXECUTE }}
curl -L -o $HOME/.local/bin/polkadot-prepare-worker ${{ env.POLKADOT_PREPARE }}
chmod +x $HOME/.local/bin/polkadot
chmod +x $HOME/.local/bin/polkadot-execute-worker
chmod +x $HOME/.local/bin/polkadot-prepare-worker
ls -ahl $HOME/.local/bin/
$HOME/.local/bin/polkadot --version
- name: Install dasel cli
shell: bash
run: |
Expand Down Expand Up @@ -232,7 +237,7 @@ jobs:
shell: bash
run: |
cd $GITHUB_WORKSPACE/zombienet-tool
git pull && git checkout v1.3.89
git pull && git checkout v1.3.92
cd $GITHUB_WORKSPACE/zombienet-tool/javascript
yarn
npm run build
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/metadata_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand All @@ -78,8 +78,9 @@ jobs:
chmod +x $HOME/manta
- name: Fetch and chmod old release binary
run: |
curl -L -o $HOME/polkadot https://github.com/paritytech/polkadot/releases/download/v1.3.0/polkadot
curl -L -o $HOME/polkadot https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.8.0/polkadot
chmod +x $HOME/polkadot
$HOME/polkadot --version
ls -ahl $HOME/
- name: stop sccache server
run: sccache --stop-server || true
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish_draft_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ jobs:
rustup default stable
rustup update
rustup target add wasm32-unknown-unknown
rustup install 1.71.0
rustup target add wasm32-unknown-unknown --toolchain 1.71.0
rustup install 1.74.0
rustup target add wasm32-unknown-unknown --toolchain 1.74.0
- name: cache cargo
uses: Swatinem/rust-cache@v2
- name: build
Expand All @@ -127,7 +127,7 @@ jobs:
SCCACHE_DIR: ~/.cache/sccache
run: |
source ${HOME}/.cargo/env
RUSTC_BOOTSTRAP=1 cargo +1.71.0 build --profile production --verbose
RUSTC_BOOTSTRAP=1 cargo +1.74.0 build --profile production --verbose
- name: stop sccache server
run: sccache --stop-server || true
- if: always()
Expand Down Expand Up @@ -184,9 +184,10 @@ jobs:
with:
name: ${{ matrix.runtime.name }}-srtool-json
- name: ruby setup
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: '2.7'
bundler-cache: true
- name: get runtime version
id: get-runtime-version
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_all_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/run_linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
cargo install taplo-cli --locked
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand All @@ -77,9 +77,10 @@ jobs:
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: ~/.cache/sccache
shell: bash
# It's pointless to use no-default features.
run: |
source ${HOME}/.cargo/env
SKIP_WASM_BUILD=1 cargo check --no-default-features
SKIP_WASM_BUILD=1 cargo check --all-targets --all-features
SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features -- -D warnings
- name: stop sccache server
run: sccache --stop-server || true
4 changes: 2 additions & 2 deletions .github/workflows/try-runtime-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
rustup update
rustup toolchain install 1.71.0
rustup default 1.71.0
rustup toolchain install 1.74.0
rustup default 1.74.0
rustup target add wasm32-unknown-unknown
- name: cache cargo
uses: Swatinem/rust-cache@v2
Expand Down
Loading

0 comments on commit efcdc3a

Please sign in to comment.