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

Introduce try-runtime-bot script #64

Merged

Conversation

joao-paulo-parity
Copy link
Contributor

Both try-runtime-bot and bench-bot have a feature request for patching some dependency into the branch before executing the command: paritytech/command-bot#83, #41. Moreover, the bots both execute some command for the core project's CLIs, so their pre-command preparation end up also being very similar. That being the case it makes sense to create a set of functions for providing shared functionality for both (tip: it's in cmd_runner.sh).

The try-runtime configuration is hardcoded directly into command-bot at the moment (https://github.com/paritytech/command-bot/blob/6245603b60e264f9663e9e2a5059225ae8709aa7/src/core.ts#L39), which means we have to redeploy the bot when the command needs to be tweaked; that is not as flexible as bench-bot since the latter can be tweaked promptly by submitting a PR to this repository. We can alleviate this problem by also creating a script for the try-runtime-bot.

In summary

  • Export shared functionality for bench-bot + try-runtime-bot to a library (cmd_runner.sh)
  • Introduce try-runtime-bot script

related to paritytech/command-bot#90
related to paritytech/command-bot#83
close #41

adjust common setup for bot scripts
Copy link
Contributor

@alvicsam alvicsam left a comment

Choose a reason for hiding this comment

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

LGTM

@joao-paulo-parity joao-paulo-parity merged commit 13ddb0a into paritytech:master Jul 13, 2022
@joao-paulo-parity joao-paulo-parity deleted the patch-automation branch July 13, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bench-bot: Supporting patching a custom dependency into the branch before benchmark
2 participants