Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

reset a couple of versions down from v2.0 #4572

Merged
merged 19 commits into from
Jan 15, 2020
Merged

reset a couple of versions down from v2.0 #4572

merged 19 commits into from
Jan 15, 2020

Conversation

rphmeier
Copy link
Contributor

@rphmeier rphmeier commented Jan 8, 2020

For things that we don't yet want to stabilize, but may want to later!

@rphmeier rphmeier added the A3-in_progress Pull request is in progress. No review needed at this stage. label Jan 8, 2020
@rphmeier rphmeier requested a review from mxinden as a code owner January 8, 2020 17:19
@tomaka
Copy link
Contributor

tomaka commented Jan 8, 2020

If we're doing that, I'd put network in there as well.

EDIT: nevermind, it's still at 0.8.0

@rphmeier
Copy link
Contributor Author

rphmeier commented Jan 8, 2020

@tomaka network was already at 0.8, but network-gossip wasn't. network-test isn't either. I'm done pushing for now so just go for it on this branch :P

@bkchr
Copy link
Member

bkchr commented Jan 9, 2020

@pepyakin you maybe want to downgrade something as well?

@rphmeier rphmeier changed the title reset a couple of versions down from v0.2.0 reset a couple of versions down from v2.0 Jan 9, 2020
@@ -1,6 +1,6 @@
[package]
name = "pallet-staking"
version = "2.0.0"
version = "0.8.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

staking has been downgraded, 2.0 should include #4407

@gui1117
Copy link
Contributor

gui1117 commented Jan 12, 2020

It would be great not to make session module 2.0 if we want to change the interaction between staking and session 🤔

@gui1117
Copy link
Contributor

gui1117 commented Jan 12, 2020

the branch gui-rh-shaky-decrease-pallet-session decrease session to 0.8, I actually wonder about how much we want to stabilize for pallets. Stabilizing primitives and frame-* is important but maybe pallets themselves should be able to break change more quickly.

@bkchr
Copy link
Member

bkchr commented Jan 12, 2020

@thiolliere if you a certain that we will need to break something for the session module, than please push the downgrade to this branch.

@gavofyork
Copy link
Member

gavofyork commented Jan 13, 2020

for (non-consensus) pallets i'm happy to stabilise and bump the major version as needed. they're very much downstream on the dependency tree and i see little problem with keeping multiple major versions of them i crates.io.

primitives-* and frame-* are the important ones to not change following stability.

@gui1117
Copy link
Contributor

gui1117 commented Jan 13, 2020

if I decrease pallet-session to 0.8 I also need to decrease pallet using it to 0.8 as when I will upgrade session I will need to upgrade those pallets as well. and pallet using session are: grandpa, babe, im-online, authority-discovery, aura.

I'll do my best to commit the API of session as soon as possible

@rphmeier
Copy link
Contributor Author

rphmeier commented Jan 13, 2020

I agree with Gav - The 2.0 release should be stabilizing everything non-consensus in frame, especially since that's the part of the code that users will reference the most. This PR should only be destabilizing core crates whose API we shouldn't worry about breaking for some time to come.

@thiolliere

It would be great not to make session module 2.0 if we want to change the interaction between staking and session 🤔

Do you have a link to a writeup of what this would entail? First I've heard of it (this issue isn't the place to discuss further, though)

if I decrease pallet-session to 0.8 I also need to decrease pallet using it to 0.8 as when I will upgrade session I will need to upgrade those pallets as well

I don't believe this is true as long as the API of the pallets using it is stable.

@gui1117
Copy link
Contributor

gui1117 commented Jan 13, 2020

It would be great not to make session module 2.0 if we want to change the interaction between staking and session thinking

Do you have a link to a writeup of what this would entail? First I've heard of it (this issue isn't the place to discuss further, though)

This comes from #4407 especially this paragraph:

The Session module should, at the end of a session, report the accrued points of each validator together with the era number that the validator set is from back up to the Staking module, giving it full information about which validators should be rewarded. (It should explicitly report so that the number of sessions that the validator set lags behind continues to be immaterial for the Staking module.)

But after some talks it seems this information can be carried by the current pallet-session API, but better to be made explicit in API as written in #4609

@rphmeier rphmeier added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Jan 13, 2020
@gavofyork
Copy link
Member

---- service::tests::test_sync stdout ----
70 thread 'service::tests::test_sync' panicked at 'Waited for too long', client/service/test/src/lib.rs:124:14

@gavofyork gavofyork added A7-looksgoodtestsfail and removed A0-please_review Pull request needs code review. labels Jan 14, 2020
@@ -1,6 +1,6 @@
[package]
name = "frame-metadata"
version = "2.0.0"
version = "10.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

?!

Copy link
Member

@bkchr bkchr Jan 14, 2020

Choose a reason for hiding this comment

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

I think it would be nice to let the crate version follow the actual metadata version. We will have new metadata versions and each will require a major bump anyway.

@gavofyork
Copy link
Member

gavofyork commented Jan 14, 2020

sp-state-machine and sp-externalities are both downgraded to pre 1.0, yet they're primitives and i would really hope we can stabilise primitives for a while. what's the deal here?

@rphmeier
Copy link
Contributor Author

cc @bkchr @pepyakin - those changes appear to be yours.

@pepyakin
Copy link
Contributor

@gavofyork My motiviation w.r.t sp-state-machine is that I was thinking about shuffling some stuff between sc-executor and sp-state-machine. I am not strong on this. Although I am a little bit worried that it might hinder @cheme 's efforts w.r.t to #3263.

@bkchr
Copy link
Member

bkchr commented Jan 14, 2020

sp-state-machine and sp-externalities are both downgraded to pre 1.0, yet they're primitives and i would really hope we can stabilise primitives for a while. what's the deal here?

sp-externalities will require some more love. We can just remove the Externalities trait from sp-core and than we can have a stable release.

@gavofyork
Copy link
Member

need resolving

@rphmeier rphmeier merged commit c2b0c0f into master Jan 15, 2020
@rphmeier rphmeier deleted the rh-shaky branch January 15, 2020 17:35
@rphmeier
Copy link
Contributor Author

Will merge as-is and we can revisit stabilizing primitives.

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

Successfully merging this pull request may close these issues.

9 participants