ci(benchmark): Benchmark vm before n8n benchmark (#10859)

This commit is contained in:
Tomi Turtiainen
2024-09-17 18:36:46 +03:00
committed by GitHub
parent c43aef1a26
commit aa283b7554
3 changed files with 31 additions and 0 deletions

View File

@@ -78,6 +78,12 @@ async function runBenchmarksOnVm(config, benchmarkEnv) {
const bootstrapScriptPath = path.join(scriptsDir, 'bootstrap.sh');
await sshClient.ssh(`chmod a+x ${bootstrapScriptPath} && ${bootstrapScriptPath}`);
// Benchmarking the VM
const vmBenchmarkScriptPath = path.join(scriptsDir, 'vm-benchmark.sh');
await sshClient.ssh(`chmod a+x ${vmBenchmarkScriptPath} && ${vmBenchmarkScriptPath}`, {
verbose: true,
});
// Give some time for the VM to be ready
await sleep(1000);