Skip to content

Commit 55dcbd9

Browse files
committed
remove applied migrations
enable ci for devnet and testnet remove dead code
1 parent 1e1ba1b commit 55dcbd9

File tree

5 files changed

+34
-277
lines changed

5 files changed

+34
-277
lines changed

.github/workflows/check-rust.yml

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -359,40 +359,34 @@ jobs:
359359
runtime-package: "node-subtensor-runtime"
360360
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
361361
checks: "pre-and-post"
362-
extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
363-
364-
# ----
365-
# We can enable devnet and finney migrations once Polkadot v1.0 is deployed to finney, after
366-
# which time all future migrations should be idempotent and won't start failing after the
367-
# upgrade is deployed.
368-
# ----
369-
# check-devnet-migrations:
370-
# name: check devnet migrations
371-
# runs-on: ubuntu-22.04
372-
# steps:
373-
# - name: Checkout sources
374-
# uses: actions/checkout@v3
375-
#
376-
# - name: Run Try Runtime Checks
377-
# uses: "paritytech/[email protected]"
378-
# with:
379-
# runtime-package: "node-subtensor-runtime"
380-
# node-uri: "wss://dev.chain.opentensor.ai:443"
381-
# checks: "pre-and-post"
382-
# extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
383-
#
384-
# check-testnet-migrations:
385-
# name: check testnet migrations
386-
# runs-on: ubuntu-22.04
387-
# steps:
388-
# - name: Checkout sources
389-
# uses: actions/checkout@v3
390-
#
391-
# - name: Run Try Runtime Checks
392-
# uses: "paritytech/[email protected]"
393-
# with:
394-
# runtime-package: "node-subtensor-runtime"
395-
# node-uri: "wss://test.chain.opentensor.ai:443"
396-
# checks: "pre-and-post"
397-
# extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
398-
#
362+
extra-args: "--disable-spec-version-check --no-weight-warnings"
363+
364+
check-devnet-migrations:
365+
name: check devnet migrations
366+
runs-on: ubuntu-22.04
367+
steps:
368+
- name: Checkout sources
369+
uses: actions/checkout@v3
370+
371+
- name: Run Try Runtime Checks
372+
uses: "paritytech/[email protected]"
373+
with:
374+
runtime-package: "node-subtensor-runtime"
375+
node-uri: "wss://dev.chain.opentensor.ai:443"
376+
checks: "pre-and-post"
377+
extra-args: "--disable-spec-version-check --no-weight-warnings"
378+
379+
check-testnet-migrations:
380+
name: check testnet migrations
381+
runs-on: ubuntu-22.04
382+
steps:
383+
- name: Checkout sources
384+
uses: actions/checkout@v3
385+
386+
- name: Run Try Runtime Checks
387+
uses: "paritytech/[email protected]"
388+
with:
389+
runtime-package: "node-subtensor-runtime"
390+
node-uri: "wss://test.chain.opentensor.ai:443"
391+
checks: "pre-and-post"
392+
extra-args: "--disable-spec-version-check --no-weight-warnings"

runtime/src/lib.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ use frame_support::{
1414
dispatch::DispatchResultWithPostInfo,
1515
genesis_builder_helper::{build_config, create_default_config},
1616
pallet_prelude::{DispatchError, Get},
17-
traits::{fungible::HoldConsideration, LinearStoragePrice, OnRuntimeUpgrade},
17+
traits::{fungible::HoldConsideration, LinearStoragePrice},
1818
};
1919
use frame_system::{EnsureNever, EnsureRoot, RawOrigin};
20-
use migrations::{account_data_migration, init_storage_versions};
2120
use pallet_commitments::CanCommit;
2221
use pallet_grandpa::{
2322
fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList,
@@ -1185,12 +1184,7 @@ pub type SignedExtra = (
11851184
pallet_commitments::CommitmentsSignedExtension<Runtime>,
11861185
);
11871186

1188-
type Migrations = (
1189-
init_storage_versions::Migration,
1190-
account_data_migration::Migration,
1191-
pallet_multisig::migrations::v1::MigrateToV1<Runtime>,
1192-
pallet_grandpa::migrations::MigrateV4ToV5<Runtime>,
1193-
);
1187+
type Migrations = pallet_grandpa::migrations::MigrateV4ToV5<Runtime>;
11941188

11951189
// Unchecked extrinsic type as expected by this runtime.
11961190
pub type UncheckedExtrinsic =

runtime/src/migrations/account_data_migration.rs

Lines changed: 0 additions & 204 deletions
This file was deleted.

runtime/src/migrations/init_storage_versions.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

runtime/src/migrations/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
pub mod account_data_migration;
2-
pub mod init_storage_versions;
1+
//! Export migrations from here.

0 commit comments

Comments
 (0)