Skip to content

Commit 88f839a

Browse files
committed
rerun
1 parent 4b30328 commit 88f839a

File tree

4 files changed

+48
-12
lines changed

4 files changed

+48
-12
lines changed

.github/workflows/CI.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
uses: ./.github/workflows/_Coverage.yml
3535
needs: clone
3636

37-
# cpu:
38-
# name: Linux-CPU
39-
# uses: ./.github/workflows/_CPU.yml
40-
# needs: clone
37+
cpu:
38+
name: Linux-CPU
39+
uses: ./.github/workflows/_CPU.yml
40+
needs: clone
4141

4242
npu:
4343
name: Linux-NPU
4444
uses: ./.github/workflows/_NPU.yml
45-
# needs: cpu
45+
needs: cpu

.github/workflows/_CPU.yml

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defaults:
2121

2222
jobs:
2323
build-and-test:
24+
name: Build and test
2425
runs-on:
2526
group: GZ_BD-CPU
2627

@@ -105,6 +106,13 @@ jobs:
105106
git merge --no-edit $BRANCH
106107
'
107108
109+
- name: Check bypass
110+
id: check-bypass
111+
uses: ./.github/actions/check-bypass
112+
with:
113+
github-token: ${{ secrets.GITHUB_TOKEN }}
114+
workflow-name: cpu
115+
108116
- name: Build
109117
run: |
110118
docker exec -t ${{ env.container_name }} /bin/bash -c '

.github/workflows/_NPU.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ jobs:
4242
source ${{ github.workspace }}/../../../proxy
4343
git pull upstream $BRANCH --no-edit
4444
45-
- name: Determine the runner
45+
- name: Check bypass
46+
id: check-bypass
47+
uses: ./.github/actions/check-bypass
48+
with:
49+
github-token: ${{ secrets.GITHUB_TOKEN }}
50+
workflow-name: npu
51+
52+
- name: Determine the runner
4653
run: |
4754
runner_name=`(echo $PWD|awk -F '/' '{print $3}')`
4855
echo $runner_name
@@ -166,9 +173,9 @@ jobs:
166173
bash backends/npu/tools/pr_ci_npu.sh;EXCODE=$?
167174
'
168175
169-
# - name: Terminate and delete the container
170-
# if: always()
171-
# run: |
172-
# docker exec -t ${container_name} /bin/bash -c 'rm -rf * .[^.]*'
173-
# docker stop ${container_name}
174-
# docker rm ${container_name}
176+
- name: Terminate and delete the container
177+
if: always()
178+
run: |
179+
docker exec -t ${container_name} /bin/bash -c 'rm -rf * .[^.]*'
180+
docker stop ${container_name}
181+
docker rm ${container_name}

.github/workflows/re-run.yml

+21
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,27 @@ jobs:
6868
REPO: ${{ github.event.repository.name }}
6969
JOB_NAME: 'PR-CI-SOT / Check bypass for SOT / Check bypass'
7070

71+
72+
- name: Rerun CPU
73+
if: ${{ contains(env.comment_body, 'cpu') }}
74+
uses: ./.github/actions/rerun-workflow
75+
with:
76+
PR_ID: ${{ github.event.issue.number }}
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
OWNER: ${{ github.repository_owner }}
79+
REPO: ${{ github.event.repository.name }}
80+
JOB_NAME: 'Linux-CPU / Build and test'
81+
82+
- name: Rerun NPU
83+
if: ${{ contains(env.comment_body, 'npu')}}
84+
uses: ./.github/actions/rerun-workflow
85+
with:
86+
PR_ID: ${{ github.event.issue.number }}
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
OWNER: ${{ github.repository_owner }}
89+
REPO: ${{ github.event.repository.name }}
90+
JOB_NAME: 'Linux-NPU / Test'
91+
7192
- name: Rerun inference
7293
if: ${{ contains(env.comment_body, 'inference') && !contains(env.comment_body, 'build') && !contains(env.comment_body, 'test') }}
7394
uses: ./.github/actions/rerun-workflow

0 commit comments

Comments
 (0)