-
Notifications
You must be signed in to change notification settings - Fork 699
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
Benchmarking: Add pov_mode to V2 syntax #3616
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
bot bench substrate-pallet --pallet=frame_benchmarking_pallet_pov |
@ggwpez https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5469399 was started for your command Comment |
@ggwpez Command |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
bot bench substrate-pallet --pallet=pallet_whitelist |
@ggwpez https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5475514 was started for your command Comment |
#[derive(Debug, Clone)] | ||
struct PovModeAttr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit I would move the definition before the impl, I find it easier to scroll through the file this way
let _ = || -> Result<()> { | ||
let content; | ||
syn::braced!(content in input); | ||
maybe_content = Some(content); | ||
Ok(()) | ||
}(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need to return a Result here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The syn::braced!
macro just does a return 🙈
Its internally using parse_braces
, but that is private IIUC.
…=dev --target_dir=substrate --pallet=pallet_whitelist
@ggwpez Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add some UI tests?
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
bot update-ui |
@ggwpez https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5547896 was started for your command Comment |
@ggwpez Command |
Changes: - Port the `pov_mode` attribute from the V1 syntax to V2 - Update `pallet-whitelist` and `frame-benchmarking-pallet-pov` Follow up: also allow this attribute on top-level benchmark modules. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
Changes:
pov_mode
attribute from the V1 syntax to V2pallet-whitelist
andframe-benchmarking-pallet-pov
Follow up: also allow this attribute on top-level benchmark modules.