Skip to content

Commit

Permalink
Merge pull request #28613 from storybookjs/norbert/send-multiple-base…
Browse files Browse the repository at this point in the history
…-data-to-benchmarking-bot

Build: Send benchmarking base list to bot
  • Loading branch information
ndelangen committed Jul 15, 2024
2 parents 4c11838 + f702ad7 commit ecae394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/upload-bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const uploadBench = async () => {
console.log('skip uploading results to github');
return;
}
const [[base]]: any[] = await appTable.query({
query: `SELECT * FROM \`storybook-benchmark.benchmark_results.bench2\` WHERE branch=@baseBranch AND label=@templateKey ORDER BY timestamp DESC LIMIT 1;`,
const [base]: any[] = await appTable.query({
query: `SELECT * FROM \`storybook-benchmark.benchmark_results.bench2\` WHERE branch=@baseBranch AND label=@templateKey ORDER BY timestamp DESC LIMIT 20;`,
params: { baseBranch, templateKey },
});

Expand All @@ -101,7 +101,7 @@ const uploadBench = async () => {
owner: 'storybookjs',
repo: 'storybook',
issueNumber: prNumber,
base: { ...defaults, ...base },
base: base.map((b: any) => ({ ...defaults, ...b })),
head: row,
}),
})
Expand Down

0 comments on commit ecae394

Please sign in to comment.