Skip to content

Commit 3fa8fbc

Browse files
committed
ci: 移除临时故障诊断步骤,恢复精简流水线
删除 failure() 条件下的 ISA Failure Diagnostics 与 artifact 上传步骤。 保留现有构建、单测、ISA 回归与 benchmark smoke 流程。
1 parent 306e754 commit 3fa8fbc

1 file changed

Lines changed: 17 additions & 46 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
XLEN=64 \
4040
tests='$(rv32ui_p_tests) $(rv32uc_p_tests) $(rv32um_p_tests) $(rv32ua_p_tests) $(rv32uf_p_tests) $(rv32ud_p_tests) $(rv32uzfh_p_tests) $(rv32uzba_p_tests) $(rv32uzbb_p_tests) $(rv32uzbc_p_tests) $(rv32uzbs_p_tests) $(rv32si_p_tests) $(rv32mi_p_tests) $(rv64ui_p_tests) $(rv64ua_p_tests) $(rv64uc_p_tests) $(rv64ud_p_tests) $(rv64uf_p_tests) $(rv64um_p_tests)'
4141
42+
- name: Build riscv-tests Benchmarks
43+
run: |
44+
make -C riscv-tests/benchmarks -f Makefile \
45+
src_dir="${GITHUB_WORKSPACE}/riscv-tests/benchmarks" \
46+
XLEN=64
47+
4248
- name: Configure
4349
run: cmake -S . -B build
4450

@@ -53,51 +59,16 @@ jobs:
5359
python3 run_tests.py -p "rv64*-p-*" -w 1 --timeout 20
5460
python3 run_tests.py -p "rv64*-p-*" --ooo -w 1 --timeout 30
5561
56-
- name: ISA Failure Diagnostics
57-
if: ${{ failure() }}
62+
- name: Benchmarks Smoke Tests (non-blocking)
63+
continue-on-error: true
5864
run: |
59-
set +e
60-
mkdir -p ci-diagnostics
61-
62-
{
63-
echo "=== uname ==="
64-
uname -a
65-
echo
66-
echo "=== free -h ==="
67-
free -h
68-
echo
69-
echo "=== /proc/meminfo (head) ==="
70-
head -n 40 /proc/meminfo
71-
echo
72-
echo "=== ulimit -a ==="
73-
ulimit -a
74-
} > ci-diagnostics/system_info.log
75-
76-
for test_name in rv64um-p-div rv64um-p-rem; do
77-
for mode in in-order ooo; do
78-
if [ "$mode" = "ooo" ]; then
79-
mode_flag="--ooo"
80-
else
81-
mode_flag="--in-order"
82-
fi
65+
python3 run_tests.py --tests-subdir benchmarks -p "*.riscv" -w 1 --timeout 120
8366
84-
stdout_file="ci-diagnostics/${test_name}.${mode}.stdout.log"
85-
stderr_file="ci-diagnostics/${test_name}.${mode}.stderr.log"
86-
meta_file="ci-diagnostics/${test_name}.${mode}.meta.log"
87-
88-
./build/risc-v-sim -e -m 2164260864 "./riscv-tests/isa/${test_name}" ${mode_flag} >"${stdout_file}" 2>"${stderr_file}"
89-
rc=$?
90-
{
91-
echo "test=${test_name}"
92-
echo "mode=${mode}"
93-
echo "return_code=${rc}"
94-
} > "${meta_file}"
95-
done
96-
done
97-
98-
- name: Upload ISA Diagnostic Logs
99-
if: ${{ failure() }}
100-
uses: actions/upload-artifact@v4
101-
with:
102-
name: isa-diagnostics
103-
path: ci-diagnostics
67+
- name: CoreMark Smoke Test (if available, non-blocking)
68+
continue-on-error: true
69+
run: |
70+
if [ -x "riscv-tests/benchmarks/coremark.riscv" ]; then
71+
python3 run_tests.py --tests-subdir benchmarks -p "coremark.riscv" -w 1 --timeout 180
72+
else
73+
echo "Skip: riscv-tests/benchmarks/coremark.riscv not found."
74+
fi

0 commit comments

Comments
 (0)