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

PICA-136: upgrade to v0.9.33 #2997

Merged

Conversation

hussein-aitlahcen
Copy link
Contributor

@hussein-aitlahcen hussein-aitlahcen commented Jan 25, 2023

Intro

Upgrade from v0.9.30 to v0.9.33

Migrations

Notes

Are we forced to have the old migrations listed? Parity removed the v2 to v3 migration for the Scheduler, I changed it to a combination of v1 to v4 and v3 to v4 as they are idempotent.

I removed price-feed and associated packages as they are outdated and not particularly useful.

The local-integration-tests package must be updated.

@hussein-aitlahcen hussein-aitlahcen marked this pull request as ready for review January 26, 2023 11:40
@hussein-aitlahcen hussein-aitlahcen requested a review from a team as a code owner January 26, 2023 11:40
@hussein-aitlahcen hussein-aitlahcen requested a review from a team January 26, 2023 11:40
@hussein-aitlahcen hussein-aitlahcen requested review from a team and 0xBrainjar2 as code owners January 26, 2023 11:40
@hussein-aitlahcen hussein-aitlahcen requested review from a team January 26, 2023 11:40
@hussein-aitlahcen hussein-aitlahcen requested review from a team as code owners January 26, 2023 11:40
Copy link
Contributor

@vimukthi-git vimukthi-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I will check a local upgrade on a fork for this.

.github/workflows/build-test-deploy.yml Show resolved Hide resolved
code/parachain/runtime/common/src/lib.rs Show resolved Hide resolved
@vimukthi-git
Copy link
Contributor

Are we forced to have the old migrations listed?

Unfortunately for Pablo we need them to be executed to have the pools in the runtime when testing for now. We will change that in the release 4 after removing the assets hard coding.

@vimukthi-git
Copy link
Contributor

Upgrade on a fork of Picasso works fine. Did not check XCM though. We can check it after making a RC.

@andyjsbell andyjsbell changed the title PICA-34: upgrade to v0.9.33 PICA-136: upgrade to v0.9.33 Jan 31, 2023
@KaiserKarel
Copy link
Contributor

Task linked: PICA-136 Update main code base

@github-actions
Copy link

github-actions bot commented Jan 31, 2023

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/af64e2302a466d54ce942e110429af5b511c855e --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/af64e2302a466d54ce942e110429af5b511c855e#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/af64e2302a466d54ce942e110429af5b511c855e#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/af64e2302a466d54ce942e110429af5b511c855e#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/af64e2302a466d54ce942e110429af5b511c855e#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package
For more info on how to use Nix, check out our Nix docs
Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

@github-actions
Copy link

@github-actions
Copy link

@dzmitry-lahoda
Copy link
Contributor

The local-integration-tests package must be updated.

#3015

@hussein-aitlahcen hussein-aitlahcen merged commit 4237aee into ComposableFi:main Feb 1, 2023
(
SchedulerMigrationV1toV4,
preimage::migration::v1::Migration<Runtime>,
scheduler::migration::v3::MigrateToV4<Runtime>,
Copy link
Contributor

@vivekvpandya vivekvpandya Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  3     impl<T: Config<Hash = PreimageHash>> OnRuntimeUpgrade for MigrateToV4<T> {                                                         
  2         #[cfg(feature = "try-runtime")]                                                                                                
  1         fn pre_upgrade() -> Result<Vec<u8>, &'static str> {                                                                            
101             assert_eq!(StorageVersion::get::<Pallet<T>>(), 3, "Can only upgrade from version 3");

Just curious above will hit assert as migrate_v1_to_v4() sets version to 4, unless executed without assert or may be directly execute migrate_v3_to_v4() instead of v3::MigrateToV4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants