mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix: Pass k6 api token correctly (no-changelog) (#10536)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
This commit is contained in:
parent
7194b1c3a1
commit
6422fb33c0
|
@ -88,13 +88,22 @@ async function runBenchmarksOnVm(config, benchmarkEnv) {
|
||||||
|
|
||||||
console.log('Running benchmarks...');
|
console.log('Running benchmarks...');
|
||||||
const runScriptPath = path.join(scriptsDir, 'runOnVm.mjs');
|
const runScriptPath = path.join(scriptsDir, 'runOnVm.mjs');
|
||||||
await sshClient.ssh(
|
|
||||||
`npx zx ${runScriptPath} --n8nDockerTag=${config.n8nTag} --benchmarkDockerTag=${config.benchmarkTag} ${config.n8nSetupToUse}`,
|
const flags = {
|
||||||
{
|
n8nDockerTag: config.n8nTag,
|
||||||
// Test run should always log its output
|
benchmarkDockerTag: config.benchmarkTag,
|
||||||
verbose: true,
|
k6ApiToken: config.k6ApiToken,
|
||||||
},
|
};
|
||||||
);
|
|
||||||
|
const flagsString = Object.entries(flags)
|
||||||
|
.filter(([, value]) => value !== undefined)
|
||||||
|
.map(([key, value]) => `--${key}=${value}`)
|
||||||
|
.join(' ');
|
||||||
|
|
||||||
|
await sshClient.ssh(`npx zx ${runScriptPath} ${flagsString} ${config.n8nSetupToUse}`, {
|
||||||
|
// Test run should always log its output
|
||||||
|
verbose: true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function ensureVmIsReachable(sshClient) {
|
async function ensureVmIsReachable(sshClient) {
|
||||||
|
|
Loading…
Reference in a new issue