Skip to content

Commit 353b78e

Browse files
committed
ci: fix hotpath-comment usage
Signed-off-by: NotAShelf <[email protected]> Change-Id: Idc163948f012efb07fc7a6a952af54b36a6a6964
1 parent 6f8d1ff commit 353b78e

File tree

1 file changed

+19
-27
lines changed

1 file changed

+19
-27
lines changed

.github/workflows/hotpath-comment.yml

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,37 @@ jobs:
1313
comment:
1414
runs-on: ubuntu-latest
1515
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16-
16+
1717
steps:
1818
- name: Download profiling results
1919
uses: actions/download-artifact@v4
2020
with:
2121
name: hotpath-results
2222
github-token: ${{ secrets.GITHUB_TOKEN }}
2323
run-id: ${{ github.event.workflow_run.id }}
24-
24+
2525
- name: Read PR number
2626
id: pr
2727
run: echo "number=$(cat pr_number.txt)" >> $GITHUB_OUTPUT
28-
28+
2929
- name: Setup Rust
3030
uses: actions-rust-lang/setup-rust-toolchain@v1
31-
31+
3232
- name: Install hotpath CLI
3333
run: cargo install hotpath
34-
34+
3535
- name: Post timing comparison comment
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: |
39-
hotpath profile-pr \
40-
--repo ${{ github.repository }} \
41-
--pr-number ${{ steps.pr.outputs.number }} \
42-
--head-json head-timing.json \
43-
--base-json base-timing.json \
44-
--mode timing \
45-
--title "⏱️ Hotpath Timing Profile"
46-
47-
- name: Post allocation comparison comment
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
run: |
51-
hotpath profile-pr \
52-
--repo ${{ github.repository }} \
53-
--pr-number ${{ steps.pr.outputs.number }} \
54-
--head-json head-alloc.json \
55-
--base-json base-alloc.json \
56-
--mode alloc \
57-
--title "📊 Hotpath Allocation Profile"
36+
run: |
37+
hotpath profile-pr \
38+
--head-metrics head-timing.json \
39+
--base-metrics base-timing.json \
40+
--github-token ${{ secrets.GITHUB_TOKEN }} \
41+
--pr-number ${{ steps.pr.outputs.number }}
42+
43+
- name: Post allocation comparison comment
44+
run: |
45+
hotpath profile-pr \
46+
--head-metrics head-alloc.json \
47+
--base-metrics base-alloc.json \
48+
--github-token ${{ secrets.GITHUB_TOKEN }} \
49+
--pr-number ${{ steps.pr.outputs.number }}

0 commit comments

Comments
 (0)