Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Polkadot v1.6.0 #569

Merged
merged 36 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b12f5b0
create base workspace dependencies, update runner, runtime, service (…
gianfra-t Nov 19, 2024
39f922b
updated vault, cargo check only
gianfra-t Nov 20, 2024
e09ed14
upgrade pallet clients-info
gianfra-t Nov 21, 2024
60d6d56
upgrade currency pallet, using maybe temporary orml fork
gianfra-t Nov 21, 2024
7baf14e
upgrade pallet security, remove mocktopus, upgrade fee (cargo check)
gianfra-t Nov 21, 2024
115068a
upgrade staking, oracle
gianfra-t Nov 21, 2024
f2d328e
update stellar-relay, pooled-reards
gianfra-t Nov 21, 2024
61b053c
add mocktopus again
gianfra-t Nov 22, 2024
3c6fbdc
fixes for mocktopus error, finish upgrade oracle pallet
gianfra-t Nov 22, 2024
423f62d
fix and re-add mocktopus
gianfra-t Nov 22, 2024
2cf0d25
upgrade, vault-registry
gianfra-t Nov 25, 2024
e87ff26
upgrade nomination, redeem, issue
gianfra-t Nov 25, 2024
6a774ac
upgrade replace, reward
gianfra-t Nov 25, 2024
45a69d5
updating runtimes, wip
gianfra-t Nov 25, 2024
b027527
upgrade node, mainnet toml
gianfra-t Nov 25, 2024
820a064
fix incorrect features flags, sha2 api change
gianfra-t Nov 26, 2024
8875c79
checking runtimes, default-features fixes
gianfra-t Nov 26, 2024
d3b5817
upgrade node
gianfra-t Nov 27, 2024
b86d117
fix chain spec definition
gianfra-t Nov 27, 2024
f9a6d42
fmt and clippy
gianfra-t Nov 28, 2024
c32f9ca
install rust-src for nightly also
gianfra-t Nov 28, 2024
4e521dd
update stellar relay configs
gianfra-t Nov 28, 2024
1f582d1
fixes for test issues
gianfra-t Nov 29, 2024
000118d
test only integration on CI
gianfra-t Dec 3, 2024
3f68792
fix testnet_config spec
gianfra-t Dec 4, 2024
8cc27db
fix spec definition
gianfra-t Dec 4, 2024
aaf57c7
Add `#[serde(skip)]` to phantom definitions
ebma Dec 4, 2024
019be8c
cleanup, fmt
gianfra-t Dec 4, 2024
5a26b6a
remove other node
gianfra-t Dec 5, 2024
fa97c08
more cleanup
gianfra-t Dec 5, 2024
289c845
regenerate metadata
gianfra-t Dec 5, 2024
13c2bdf
re-introduce patch
gianfra-t Dec 5, 2024
53525ba
run zepter
gianfra-t Dec 9, 2024
8e7f637
re-add offchain features substrate-stellar-sdk
gianfra-t Dec 10, 2024
35abbbc
generated metadata with 1.6.0 runtimes
gianfra-t Jan 8, 2025
c8a0201
fix incorrect dependency version
gianfra-t Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/installations/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ runs:
echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: Install Rust and Rust-src
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
rustup default stable
rustup update
rustup target add wasm32-unknown-unknown
rustup component add rust-src

# - name: Use Cache
# uses: Swatinem/rust-cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/prerequisite-nightly/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ runs:
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ inputs.version }}
components: rustfmt, clippy
components: rustfmt, clippy, rust-src
target: wasm32-unknown-unknown
162 changes: 78 additions & 84 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,92 +11,86 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
check-code:
name: Check Code
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Undergo Prerequisite
uses: ./.github/actions/prerequisite
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Check Build
run: |
bash ./scripts/cmd-all build check "--release"

- name: Clippy -- Libraries and Binaries
run: |
bash ./scripts/cmd-all clippy "clippy --lib --bins" "--release -- -W clippy::all -A clippy::style -A forgetting_copy_types -A forgetting_references"

check-code-nightly:
name: Run Clippy and Fmt
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Prerequisite (for Nightly)
uses: ./.github/actions/prerequisite-nightly
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.RUSTUP_NIGHTLY_VERSION }}

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }}
command: fmt
args: --all -- --check

- name: Clippy for Tests and Examples
uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }}
command: clippy
args: --release --all-features --tests --benches --examples -- -A clippy::all -W clippy::correctness -A forgetting_copy_types -A forgetting_references

cargo-test:
name: Run Tests for Pallets and Clients
needs: check-code
if: needs.check-code.result == 'success'
runs-on: ubuntu-latest
env:
SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }}
SOURCE_STELLAR_SECRET_TESTNET: ${{ secrets.SOURCE_STELLAR_SECRET_TESTNET }}
DEST_STELLAR_SECRET_MAINNET: ${{ secrets.DEST_STELLAR_SECRET_MAINNET }}
DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Prerequisite (for Nightly)
uses: ./.github/actions/prerequisite-nightly
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.RUSTUP_NIGHTLY_VERSION }}

- name: Run Tests for Pallets
run: |
bash ./scripts/cmd-pallets test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release"

- name: Run Tests for Other Libraries
run: |
bash ./scripts/cmd-pallets test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release"

- name: Run Tests for Clients
run: |
bash ./scripts/cmd-clients test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release"
# check-code:
# name: Check Code
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
#
# - name: Undergo Prerequisite
# uses: ./.github/actions/prerequisite
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Check Build
# run: |
# bash ./scripts/cmd-all build check "--release"
#
# - name: Clippy -- Libraries and Binaries
# run: |
# bash ./scripts/cmd-all clippy "clippy --lib --bins" "--release -- -W clippy::all -A clippy::style -A forgetting_copy_types -A forgetting_references"

# check-code-nightly:
# name: Run Clippy and Fmt
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
#
# - name: Run Prerequisite (for Nightly)
# uses: ./.github/actions/prerequisite-nightly
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# version: ${{ env.RUSTUP_NIGHTLY_VERSION }}
#
# - name: Rustfmt
# uses: actions-rs/cargo@v1
# with:
# toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }}
# command: fmt
# args: --all -- --check
#
# - name: Clippy for Tests and Examples
# uses: actions-rs/cargo@v1
# with:
# toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }}
# command: clippy
# args: --release --all-features --tests --benches --examples -- -A clippy::all -W clippy::correctness -A forgetting_copy_types -A forgetting_references

# cargo-test:
# name: Run Tests for Pallets and Clients
# needs: check-code
# if: needs.check-code.result == 'success'
# runs-on: ubuntu-latest
# env:
# SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }}
# SOURCE_STELLAR_SECRET_TESTNET: ${{ secrets.SOURCE_STELLAR_SECRET_TESTNET }}
# DEST_STELLAR_SECRET_MAINNET: ${{ secrets.DEST_STELLAR_SECRET_MAINNET }}
# DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }}
#
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
#
# - name: Run Prerequisite (for Nightly)
# uses: ./.github/actions/prerequisite-nightly
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# version: ${{ env.RUSTUP_NIGHTLY_VERSION }}
#
# - name: Run Tests for Pallets
# run: |
# bash ./scripts/cmd-pallets test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release"
#
# - name: Run Tests for Clients
# run: |
# bash ./scripts/cmd-clients test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release"

cargo-test-vault:
name: Run Tests for Vault
needs: check-code
if: needs.check-code.result == 'success'
runs-on: ubuntu-latest

steps:
Expand All @@ -120,4 +114,4 @@ jobs:
toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }}
command: test
# we only test the standalone-metadata
args: --release -p vault --features integration-test
args: --test '*' --package vault --features integration-test
Loading