substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Dont Re-export sp-arithmetic from sp-runtime

Open MrishoLukamba opened this issue 3 years ago • 2 comments

Fixes #12040 Polkadot address: 133WyzJ4cEEbQ4twhT3nQpoXYeTCzeKn8kWfRfEi4XDF7wKh The Pr is not complete as this changes alots of pallets because sp-arithmetic affects alots of them. So the changes will be made as small as possible untill all dependencies from arithmetic re-exported from sp runtime is not re-exported anymore.

MrishoLukamba avatar Oct 17 '22 10:10 MrishoLukamba

All done, Please review @ggwpez @kianenigma @acatangiu @andresilva

MrishoLukamba avatar Oct 17 '22 18:10 MrishoLukamba

Next time please put some more effort into this. Especially when you ping a lot of people.

Okey

MrishoLukamba avatar Oct 18 '22 08:10 MrishoLukamba

@MrishoLukamba the CI is still failing.

bkchr avatar Oct 19 '22 13:10 bkchr

@MrishoLukamba the CI is still failing.

What can be the reason because it is compiling

MrishoLukamba avatar Oct 19 '22 13:10 MrishoLukamba

@MrishoLukamba you can click on the failing CI jobs and see why.
Eg https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1960850:

error[E0432]: unresolved imports `sp_runtime::Perbill`, `sp_runtime::Percent`
   --> primitives/npos-elections/src/phragmms.rs:235:19
    |
235 |     use sp_runtime::{Perbill, Percent};
    |                      ^^^^^^^  ^^^^^^^ no `Percent` in the root
    |                      |
    |                      no `Perbill` in the root

ggwpez avatar Oct 19 '22 13:10 ggwpez

you also need to call cargo +nightly fmt

shawntabrizi avatar Oct 20 '22 03:10 shawntabrizi

you also need to call cargo +nightly fmt

Updating the docs also

MrishoLukamba avatar Oct 20 '22 11:10 MrishoLukamba

@github-actions ** Assign reviewers / pr-custom-review (pull_request) ** Successful in 11s Required

Now the CI complains but when I check the job its okey and everything is fine.

MrishoLukamba avatar Oct 20 '22 11:10 MrishoLukamba

Now the CI complains but when I check the job its okey and everything is fine.

CI is still red. You click on "Details" and then on the pipeline and on its failing job, eg https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1971086

ggwpez avatar Oct 20 '22 20:10 ggwpez

the CI which are failing now its not because of the codebase anymore. So its done and thanks @shawntabrizi

MrishoLukamba avatar Oct 22 '22 00:10 MrishoLukamba

@MrishoLukamba unfortunately... you now need to repeat this process for Polkadot and Cumulus for us to merge this PR

See: https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc#updating-polkadot-as-well

shawntabrizi avatar Oct 22 '22 03:10 shawntabrizi

Okey

MrishoLukamba avatar Oct 22 '22 09:10 MrishoLukamba

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 24 '22 00:11 stale[bot]

Ping @MrishoLukamba

bkchr avatar Nov 24 '22 23:11 bkchr

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 25 '22 01:12 stale[bot]

/tip medium

juangirini avatar May 09 '23 10:05 juangirini

@juangirini You are not allowed to request a tip. Only members of paritytech/tip-bot-approvers are allowed.

substrate-tip-bot[bot] avatar May 09 '23 10:05 substrate-tip-bot[bot]

/tip medium

juangirini avatar May 09 '23 10:05 juangirini

@juangirini A medium tip was successfully submitted for MrishoLukamba (133WyzJ4cEEbQ4twhT3nQpoXYeTCzeKn8kWfRfEi4XDF7wKh on polkadot).

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/treasury/tips tip

substrate-tip-bot[bot] avatar May 09 '23 10:05 substrate-tip-bot[bot]

@MrishoLukamba FYI #12040 has been closed so your PR is not going to be merged, though we appreciate your contribution. Thanks!

juangirini avatar May 09 '23 10:05 juangirini