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

OpenGov in Westend and Rococo #1177

Merged
merged 14 commits into from
Sep 27, 2023
Merged

OpenGov in Westend and Rococo #1177

merged 14 commits into from
Sep 27, 2023

Conversation

al3mart
Copy link
Contributor

@al3mart al3mart commented Aug 25, 2023

Migrating PR from the archived polkadot repo

As per paritytech/polkadot#7272 (comment), the changes in this MR include the following pallets into [x] Rococo and [x] Westend runtimes:

pallet_conviction_voting
pallet_referenda
pallet_ranked_collective
pallet_custom_origins
pallet_whitelist

And only for westend-runtime:

pallet_treasury

Following Kusama runtime config as a baseline.

Benchmarking of the following pallets done for Rococo and Westend:

pallet_conviction_voting
pallet_referenda
pallet_ranked_collective
pallet_whitelist

And only for Westend:

pallet_treasury

Removed Gov1 from Rococo as in paritytech/polkadot#6701

@al3mart al3mart added the R0-silent Changes should not be mentioned in any release notes label Aug 25, 2023
@al3mart al3mart self-assigned this Aug 25, 2023
@al3mart
Copy link
Contributor Author

al3mart commented Aug 25, 2023

All the last comments have been addressed and these changes should be ready for a final review

@gilescope
Copy link
Contributor

gilescope commented Sep 4, 2023

I think this is an important PR for several reasons:

  • It enables people to test governance proposals without having to send them to try them first time for real on a financial network.
  • It means the runtime code differences between production and test runtimes are minimised meaning that important differences are less likely to be missed.

@al3mart
Copy link
Contributor Author

al3mart commented Sep 4, 2023

@gilescope thanks for the feedback and contributions, I would invite you to leave a review in case you have time for it just for being a bit closer to unlock that merge :)

@muharem @joepetrowski @mordamax I believe this PR is in good shape and we could try to merge it if there is no further changes required

@al3mart
Copy link
Contributor Author

al3mart commented Sep 7, 2023

Comments addressed.

I have reduce the periods duration to keep everything in the range of the minutes. Maintaining the differences between tracks and prepare, decision, confirmation and min_enactment periods to still keep some coherence with the spans of time that are on both production networks.

Copy link
Contributor

@chevdor chevdor left a comment

Choose a reason for hiding this comment

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

Great to test but also nice for people to test those features out to learn.

It would be good to ping @devops-parity and the sudos of those chains to ensure they are aware of the risks and that a recovery plan is drafted in case of an annoyance sneaks in to the short voting periods.

Copy link
Contributor

@liamaharon liamaharon left a comment

Choose a reason for hiding this comment

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

While we're at it, we should probably clean up the Gov V1 storage as was done in paritytech/polkadot#7314

@mordamax
Copy link
Contributor

@liamaharon @al3mart could this cleanup be done in a separate PR?
we really need this to be merged asap :)

Thanks!

@al3mart al3mart enabled auto-merge (squash) September 26, 2023 12:38
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: check-tracing
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3798101

@al3mart al3mart merged commit 69ed308 into master Sep 27, 2023
83 of 107 checks passed
@al3mart al3mart deleted the al3mart/opengov-rococo-westend branch September 27, 2023 14:37
@al3mart
Copy link
Contributor Author

al3mart commented Sep 27, 2023

As a heads up I checked the migrations with try-runtime and got the following result for Rococo runtime
INFO try-runtime::cli] Consumed ref_time: 2.053575s (102.68% of max 2s)

ordian added a commit that referenced this pull request Sep 27, 2023
* master: (61 commits)
  OpenGov in Westend and Rococo (#1177)
  Associated type Hasher for `QueryPreimage`, `StorePreimage` and `Bounded` (#1720)
  Migrate polkadot-primitives to v6 (#1543)
  genesis-builder: implemented for all runtimes (#1492)
  `BlockId` removal: `tx-pool` refactor (#1678)
  Bump directories from 4.0.1 to 5.0.1 (#1656)
  Allow debug_assertions in short-benchmarks CI job (#1711)
  chainHead/storage: Fix storage iteration using the query key (#1665)
  Implement more useful traits in `Slot` type (#1595)
  Make downloads in parallel and give more time to complete (#1699)
  Bump actions/checkout from 4.0.0 to 4.1.0 (#1688)
  contracts: Fix incorrect storage alias in mirgration (#1687)
  Fix documentation about justification and `finalized == true` requirement (#1607)
  tweak pallet macro (genesis_config etc) to cater for RA users as well. (#1689)
  Uncoupling pallet-xcm from frame-system's RuntimeCall (#1684)
  Bump aes-gcm from 0.10.2 to 0.10.3 (#1681)
  docs / Update PR template to reflect monorepo (#1674)
  update contributing guide and ui-tests scripts (#1668)
  pallet epm: add `TrimmingStatus` to the mined solution (#1659)
  Update HRMP pallet benchmarking to use benchmarks v2 (#1676)
  ...
ordian added a commit that referenced this pull request Oct 10, 2023
* tsv-disabling-node-side: (69 commits)
  runtime-api: cleanup after v7 stabilization (#1729)
  Move requests-responses and polling from `ChainSync` to `SyncingEngine` (#1650)
  Add custom error message for `StorageNoopGuard` (#1727)
  Clarify docs
  cargo fmt
  add a CAVEAT comment
  implement disabled_validators correctly
  remove unnecessary hash string (#1722)
  OpenGov in Westend and Rococo (#1177)
  Associated type Hasher for `QueryPreimage`, `StorePreimage` and `Bounded` (#1720)
  Migrate polkadot-primitives to v6 (#1543)
  genesis-builder: implemented for all runtimes (#1492)
  `BlockId` removal: `tx-pool` refactor (#1678)
  Bump directories from 4.0.1 to 5.0.1 (#1656)
  Allow debug_assertions in short-benchmarks CI job (#1711)
  chainHead/storage: Fix storage iteration using the query key (#1665)
  Implement more useful traits in `Slot` type (#1595)
  Make downloads in parallel and give more time to complete (#1699)
  Bump actions/checkout from 4.0.0 to 4.1.0 (#1688)
  contracts: Fix incorrect storage alias in mirgration (#1687)
  ...
al3mart added a commit that referenced this pull request Oct 16, 2023
Following
[polkadot#7314](paritytech/polkadot#7314) and
after merging #1177 this
PR solves #1618

The following is a summary of the outcome of the migration.

| Module | Total Accounts | Total stake to unlock | Total deposit to
unreserve |
| ------- | --------------- | --------------------- |
-------------------------- |
| Elections Phragmen | 27 | 1,132.821063320441 ROC | 1.465386531600 ROC
|
| Democracy | 69 | 2733.923509345613 ROC | 0.166666665000 ROC |
| Tips | 4 | N/A | 0.015099999849 ROC |

The migrations will also remove the following amount of keys

103 Democracy keys 🧹
5 Council keys 🧹
1 TechnicalCommittee keys 🧹
25 PhragmenElection keys 🧹
1 TechnicalMembership keys 🧹
9 Tips keys 🧹
@Polkadot-Forum
Copy link

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/polkadot-release-analysis-v1-3-0/4614/1

serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 10, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this pull request Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants