Skip to content

Commit b00b746

Browse files
jueshiwenliCopilot
andauthored
V add ci 0602 (#893)
* tests: Fix bugs add runable vtest json Change-Id: I0e87505ece9e81d588475d44fc21605943a65ad9 * tests: Fix bugs add runable vtest lst Change-Id: I9234f7ea5044eec6d9d478d049cd38e28acd4914 * tests: Merge xs-dev and run RVV-cpt by default. Change-Id: Ic726942a9b703754a0a3ab0c74f23cc976ed30d7 * Fix RVV workflow trigger for push/manual events --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 0537d73 commit b00b746

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/gem5-perf-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ jobs:
126126
echo "comment=run 100% coverage spec06 rvv checkpoints" >> $GITHUB_OUTPUT
127127
;;
128128
"spec06int-rvv-0.8c")
129-
echo "checkpoint_list=/nfs/home/xutongqiao/GEM5-CI/spec06_gcc15_rv64gcbv_O3_lto_base_nemu_single_core_NEMU_archgroup_2024-10-12-16-05/checkpoint06_rv64gcbv/checkpoint_0.8c_int.lst" >> $GITHUB_OUTPUT
129+
echo "checkpoint_list=/nfs/home/share/zhenhao/runnable_tests.lst" >> $GITHUB_OUTPUT
130130
echo "checkpoint_root_node=/nfs/home/xutongqiao/GEM5-CI/spec06_gcc15_rv64gcbv_O3_lto_base_nemu_single_core_NEMU_archgroup_2024-10-12-16-05/checkpoint06_rv64gcbv/" >> $GITHUB_OUTPUT
131131
echo "score_script=gem5-score-ci.sh" >> $GITHUB_OUTPUT
132-
echo "cluster_config=/nfs/home/xutongqiao/GEM5-CI/spec06_gcc15_rv64gcbv_O3_lto_base_nemu_single_core_NEMU_archgroup_2024-10-12-16-05/checkpoint06_rv64gcbv/cluster_0.8c_int.json" >> $GITHUB_OUTPUT
132+
echo "cluster_config=/nfs/home/share/zhenhao/runnable_tests.json" >> $GITHUB_OUTPUT
133133
echo "artifact_name=performance-score-spec06int-0.8c-with-rvv-extension" >> $GITHUB_OUTPUT
134134
echo "comment=run 80% coverage spec06 int rvv checkpoints" >> $GITHUB_OUTPUT
135135
;;

.github/workflows/on-demand-spec-rvv.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: On-Demand RVV SPEC Test (Tier 1.5)
22

33
on:
44
# Label触发: 添加 'rvv' 标签自动跑 gcc15-spec06-0.8c
5+
push:
6+
branches: [ xs-dev ]
57
pull_request_target:
68
types: [labeled]
9+
workflow_dispatch:
710

811
permissions:
912
contents: read
@@ -14,10 +17,12 @@ jobs:
1417
name: Trigger RVV SPEC Test
1518
runs-on: ubuntu-latest
1619
if: |
17-
github.event_name == 'pull_request_target' &&
18-
github.event.label.name == 'rvv' &&
19-
github.event.pull_request.base.ref == 'xs-dev' &&
20-
github.event.pull_request.head.repo.full_name == github.repository
20+
(github.event_name == 'push' && github.ref == 'refs/heads/xs-dev') ||
21+
github.event_name == 'workflow_dispatch' ||
22+
(github.event_name == 'pull_request_target' &&
23+
github.event.label.name == 'rvv' &&
24+
github.event.pull_request.base.ref == 'xs-dev' &&
25+
github.event.pull_request.head.repo.full_name == github.repository)
2126
2227
outputs:
2328
benchmark_type: ${{ steps.setup.outputs.benchmark }}
@@ -30,7 +35,11 @@ jobs:
3035
run: |
3136
echo "benchmark=spec06int-rvv-0.8c" >> "$GITHUB_OUTPUT"
3237
echo "vector_type=simple" >> "$GITHUB_OUTPUT"
33-
echo "pr_sha=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
38+
if [ "${{ github.event_name }}" = "pull_request_target" ]; then
39+
echo "pr_sha=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
40+
else
41+
echo "pr_sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
42+
fi
3443
3544
run_rvv_spec_test:
3645
name: Run RVV SPEC Test

0 commit comments

Comments
 (0)