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

Companion for substrate#11148 #5452

Merged
merged 1 commit into from
May 5, 2022

Conversation

jasl
Copy link
Contributor

@jasl jasl commented May 4, 2022

Companion for paritytech/substrate#11148

cumulus companion: paritytech/cumulus#1236

@jasl jasl changed the title add force_batch weight entry to runtimes Companion for paritytech/substrate#11148 May 4, 2022
@jasl jasl changed the title Companion for paritytech/substrate#11148 Companion for substrate#11148 May 4, 2022
@bkchr bkchr requested a review from shawntabrizi May 4, 2022 23:11
@bkchr bkchr added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. A0-please_review Pull request needs code review. labels May 4, 2022
@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Statuses failed for b5faf5e

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

Where do these values come from?
Not from the bot obviously

@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

Where do these values come from? Not from the bot obviously

just copy paste batch_all (that's made local compiled) I don't know how to trigger the bot

@ggwpez
Copy link
Member

ggwpez commented May 5, 2022

/bench runtime polkadot pallet pallet_utility

Not sure if the bot will be able to push to your branch.
You currently still have the diener patch in your Cargo.toml, that needs to be removed for the CI since it contains file paths relative for your machine.

@parity-benchapp
Copy link

parity-benchapp bot commented May 5, 2022

Benchmark Runtime Polkadot Pallet for branch "companion-11148" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet pallet_utility

Not sure if the bot will be able to push to your branch.
You currently still have the diener patch in your Cargo.toml, that needs to be removed for the CI since it contains file paths relative for your machine. --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
error: failed to resolve patches for `https://github.com/paritytech/substrate`

Caused by:
  failed to load source for dependency `beefy-gadget`

Caused by:
  Unable to update /Users/jasl/Workspaces/BlockChain/substrate/client/beefy

Caused by:
  failed to read `/Users/jasl/Workspaces/BlockChain/substrate/client/beefy/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
/bin/sh: 2: 
: not found
/bin/sh: 3: Not: not found
/bin/sh: 1: Cargo.toml: not found
/bin/sh: 4: You: not found

ERROR: Unable to commit file ./runtime/polkadot/src/weights/

@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

/bench runtime polkadot pallet pallet_utility

Not sure if the bot will be able to push to your branch. You currently still have the diener patch in your Cargo.toml, that needs to be removed for the CI since it contains file paths relative for your machine.

Since the original PR merged, I think I can switch to current Substrate master and retry,
this is my first PR about companion, I'm not familiar the process, I'm sorry.

@ggwpez
Copy link
Member

ggwpez commented May 5, 2022

No problem @jasl, thanks for your help!
I think the processbot does something like this to update the lockfiles cargo update -p sp-io.

@jasl jasl force-pushed the companion-11148 branch from b5faf5e to bbb602e Compare May 5, 2022 12:36
@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

/bench runtime polkadot pallet pallet_utility

@parity-benchapp
Copy link

parity-benchapp bot commented May 5, 2022

Benchmark Runtime Polkadot Pallet for branch "companion-11148" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet pallet_utility --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
   --> node/core/backing/src/lib.rs:190:6
    |
190 | ) -> Result<(), Error>
    |      ^^^^^^^^^^^^^^^^^
    |
note: hidden type `impl futures::Future` captures lifetime smaller than the function body
   --> node/core/backing/src/lib.rs:190:6
    |
190 | ) -> Result<(), Error>
    |      ^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0700`.
error: could not compile `polkadot-node-core-backing` due to previous error
error: build failed

ERROR: Unable to commit file ./runtime/polkadot/src/weights/

@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

hmmm looks the bot can't push commit to my branch... @ggwpez any idea?

@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

/bench runtime polkadot pallet pallet_utility

@parity-benchapp
Copy link

parity-benchapp bot commented May 5, 2022

Benchmark Runtime Polkadot Pallet for branch "companion-11148" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet pallet_utility --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
   --> node/core/backing/src/lib.rs:190:6
    |
190 | ) -> Result<(), Error>
    |      ^^^^^^^^^^^^^^^^^
    |
note: hidden type `impl futures::Future` captures lifetime smaller than the function body
   --> node/core/backing/src/lib.rs:190:6
    |
190 | ) -> Result<(), Error>
    |      ^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0700`.
error: could not compile `polkadot-node-core-backing` due to previous error
error: build failed

ERROR: Unable to commit file ./runtime/polkadot/src/weights/

@shawntabrizi
Copy link
Member

@jasl bot cannot push to forks of the repo unfortunately.

We should just let this merge as is.

@jasl jasl force-pushed the companion-11148 branch from bad465f to bbb602e Compare May 5, 2022 13:07
@jasl jasl force-pushed the companion-11148 branch from bbb602e to b244cfb Compare May 5, 2022 13:07
@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

@jasl bot cannot push to forks of the repo unfortunately.

We should just let this merge as is.

Okay... just rebased master

@shawntabrizi shawntabrizi requested a review from ggwpez May 5, 2022 13:09
@shawntabrizi
Copy link
Member

bot merge

@paritytech-processbot
Copy link

Error: "Check reviews" status is not passing for paritytech/cumulus#1236

@jasl
Copy link
Contributor Author

jasl commented May 5, 2022

lol, I'll make a companion for Cumulus

@shawntabrizi
Copy link
Member

lol, I'll make a companion for Cumulus

I made one for you. See the link i posted in your PR description.

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

I just ran it on ref hardware and your values are close enough 🎉

@shawntabrizi
Copy link
Member

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit cac02e0 into paritytech:master May 5, 2022
@jasl jasl deleted the companion-11148 branch May 5, 2022 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants