paritytech / bench-bot

ISC License
9 stars 19 forks source link

Make the command easy to manage and run in the dedicated machine #17

Closed joao-paulo-parity closed 3 years ago

joao-paulo-parity commented 3 years ago

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

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