Skip to content

Commit 84333be

Browse files
author
Tim
committed
ci: separate benchmark PR comments
1 parent 4fc7d7f commit 84333be

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/benchmark-extra.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ jobs:
6666
return;
6767
}
6868
69-
// Find existing benchmark-extra comment (distinct from the classic
70-
// Benchmark workflow's comment, which uses a different header).
69+
// Find existing benchmark-extra comment.
7170
const comments = await github.rest.issues.listComments({
7271
owner: context.repo.owner,
7372
repo: context.repo.repo,
7473
issue_number: context.issue.number,
7574
});
7675
const botComment = comments.data.find(c =>
77-
c.body.includes('Sysbench-Style Benchmark (TEXT PK)')
76+
c.body.includes('<!-- benchmark:textpk -->') ||
77+
c.body.includes('## Sysbench-Style Benchmark (TEXT PK): Doltlite vs SQLite')
7878
);
7979
8080
if (botComment) {

.github/workflows/benchmark.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ jobs:
6161
return;
6262
}
6363
64-
// Find existing benchmark comment
64+
// Find existing classic benchmark comment
6565
const comments = await github.rest.issues.listComments({
6666
owner: context.repo.owner,
6767
repo: context.repo.repo,
6868
issue_number: context.issue.number,
6969
});
7070
const botComment = comments.data.find(c =>
71-
c.body.includes('Sysbench-Style Benchmark')
71+
c.body.includes('<!-- benchmark:classic -->') ||
72+
c.body.includes('## Sysbench-Style Benchmark: Doltlite vs SQLite')
7273
);
7374
7475
if (botComment) {

test/sysbench_compare.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ run_section() {
452452
echo "| Average | | | ${avg_ratio} |"
453453
}
454454

455+
echo "<!-- benchmark:classic -->"
455456
echo "## Sysbench-Style Benchmark: Doltlite vs SQLite"
456457
echo ""
457458
echo "### In-Memory"

test/sysbench_compare_textpk.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ run_section() {
475475
echo "| Average | | | ${avg_ratio} |"
476476
}
477477

478+
echo "<!-- benchmark:textpk -->"
478479
echo "## Sysbench-Style Benchmark (TEXT PK): Doltlite vs SQLite"
479480
echo ""
480481
echo "_Companion to the classic Sysbench-Style Benchmark. Every workload here"

0 commit comments

Comments
 (0)