Primarily due to https://github.com/paritytech/substrate/pull/8699#issuecomment-831967902 I had to create a dedicated user account for running the benchbot, set up the user's environment, install Rust, etc. Now instead of being owned by an arbitrary user, any sudo user can execute the relevant commands with sudo -u benchbot [cmd].
Current
For starting the bot (note: you can just ctrl-c after, the command will still be running there):
Primarily due to https://github.com/paritytech/substrate/pull/8699#issuecomment-831967902 I had to create a dedicated user account for running the benchbot, set up the user's environment, install Rust, etc. Now instead of being owned by an arbitrary user, any
sudo
user can execute the relevant commands withsudo -u benchbot [cmd]
.Current
ctrl-c
after, the command will still be running there):ssh user@remote 'sudo -u benchbot bash -c "cd ~/bench-bot && source ~/.cargo/env && yarn start"'
ssh user@remote 'sudo pkill -u benchbot'
ssh user@remote 'sudo pkill -u benchbot && sudo -u benchbot bash -c "cd ~/bench-bot && source ~/.cargo/env && yarn start"'
Future improvements
start
,restart
,stop
can be just wrappers to systemdupdate
to pull a branch and automatically restart the bot e.g.bench-bot-manager update master
benchbot
user