[llvm] [libc++] Add link to the running job from the benchmarking bot (PR #180217)
Louis Dionne via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 6 07:49:35 PST 2026
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/180217
This allows following the progress of the benchmarking job and also spotting when it fails.
Fixes #158296
>From a9cbea434e5a06e391605e77bc4cc4c5032e4c59 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Fri, 6 Feb 2026 10:28:21 -0500
Subject: [PATCH] [libc++] Add link to the running job from the benchmarking
bot
This allows following the progress of the benchmarking job and
also spotting when it fails.
Fixes #158296
---
.github/workflows/libcxx-run-benchmarks.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.github/workflows/libcxx-run-benchmarks.yml b/.github/workflows/libcxx-run-benchmarks.yml
index c686a3b735a2b..324da8e567d31 100644
--- a/.github/workflows/libcxx-run-benchmarks.yml
+++ b/.github/workflows/libcxx-run-benchmarks.yml
@@ -56,6 +56,18 @@ jobs:
BENCHMARKS=$(echo "$COMMENT_BODY" | sed -nE 's/\/libcxx-bot benchmark (.+)/\1/p')
echo "benchmarks=${BENCHMARKS}" >> ${GITHUB_OUTPUT}
+ - name: Update comment with link to the job
+ run: |
+ source .venv/bin/activate && cd repo
+ cat <<EOF | python
+ import github
+ repo = github.Github(auth=github.Auth.Token("${{ github.token }}")).get_repo("${{ github.repository }}")
+ pr = repo.get_pull(${{ github.event.issue.number }})
+ comment = pr.get_issue_comment(${{ github.event.comment.id }})
+ add_text = "> _Running benchmarks in ${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}/actions/runs/${{ env.GITHUB_RUN_ID }}/job/${{ env.GITHUB_JOB }}_"
+ comment.edit('\n\n'.join([comment.body, add_text]))
+ EOF
+
- uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ steps.vars.outputs.pr_head }}
More information about the llvm-commits
mailing list