7979 RESULT_DIR : None
8080 TEST : None
8181 LOCAL : None
82- DRY_RUN : None
8382 run : |
8483 PYTHONPATH=.ci python3 - <<'PY'
8584 import os
@@ -96,12 +95,10 @@ jobs:
9695 )
9796 from utils import get_git_commit, load_config
9897
99-
10098 def env_opt(key):
10199 v = os.environ.get(key, "")
102100 return None if not v or v == "None" else v
103101
104-
105102 config = load_config(Path(os.environ["CONFIG"]))
106103 repo = config.get("repo", {})
107104 repo_url = repo.get("url", "https://github.com/InfiniTensor/InfiniOps.git")
@@ -172,11 +169,6 @@ jobs:
172169 local_path=local_path,
173170 )
174171
175- dry = os.environ.get("DRY_RUN", "")
176- if dry and dry != "None":
177- print(shlex.join(docker_args))
178- raise SystemExit(0)
179-
180172 github_env = os.environ.get("GITHUB_ENV")
181173 if not github_env:
182174 print("error: GITHUB_ENV is not set", file=sys.stderr)
@@ -201,7 +193,7 @@ jobs:
201193 f.write(f"IMAGE_TAG={image_ref}\n")
202194 PY
203195
204- - name : Trigger ${{ matrix.platform }} XPU Smoke Test job
196+ - name : Trigger ${{ matrix.platform }} XPU Unit Test Task
205197 env :
206198 ${{ matrix.job_env }}
207199 run : |
@@ -212,63 +204,26 @@ jobs:
212204 mkdir -p "${RESULT_DIR}"
213205 fi
214206
215- if [ -n "${ENGINE:-}" ] && [ "${ENGINE}" != "None" ]; then
216- ENGINE_ARGS="${ENGINE}"
217- else
218- ENGINE_ARGS="InfiniTensor"
219- fi
220-
221- if [ -n "${MODEL_LIST:-}" ] && [ "${MODEL_LIST}" != "None" ]; then
222- MODEL_LIST_ARGS="${MODEL_LIST}"
223- else
224- MODEL_LIST_ARGS="None"
225- fi
226-
227- if [ -n "${IMAGE:-}" ] && [ "${IMAGE}" != "None" ]; then
228- IMAGE_TAG_ARGS="${IMAGE}"
229- else
230- IMAGE_TAG_ARGS="${IMAGE_TAG}"
231- fi
232-
233207 set -m
234208 cd /home/zkjh
235- if [ ! -d "${{ matrix.platform }}_test" ]; then
236- mkdir -p "${{ matrix.platform }}_test"
209+ if [ ! -d "CI_ ${{ matrix.platform }}_test" ]; then
210+ mkdir -p "CI_ ${{ matrix.platform }}_test"
237211 fi
238- cd ${{ matrix.platform }}_test
239- mkdir -p ${{ matrix.platform }}_${{ github.run_id }}_${{ matrix.id }}
240- cd ${{ matrix.platform }}_${{ github.run_id }}_${{ matrix.id }}
212+ cd CI_ ${{ matrix.platform }}_test
213+ mkdir -p ${{ github.run_id }}_${{ matrix.id }}
214+ cd ${{ github.run_id }}_${{ matrix.id }}
241215
242216 git init
243217 git remote add origin git@github.com:Vincent777/ci_autotest.git
244218 git fetch --depth=1 origin main
245219 git show origin/main:ascend_test_suite/daemon.sh > daemon.sh
246220 chmod a+x daemon.sh
247221
248- DOCKER_ARGS_MATRIX="${{ join(matrix.docker_args, ' ') }}"
249- if [ -z "${DOCKER_ARGS:-}" ]; then
250- DOCKER_ARGS="${DOCKER_ARGS_MATRIX}"
251- fi
252-
253- VOLUME_ARGS=""
254- if [ -n "${{ join(matrix.volumes, ' ') }}" ]; then
255- VOLUME_ARGS=$(printf ' -v %s' ${{ join(matrix.volumes, ' ') }})
256- fi
257-
258- SHM_SIZE="--shm-size=${{ matrix.shm_size }}"
259-
260- echo "DOCKER_ARGS=$DOCKER_ARGS"
261- echo "VOLUME_ARGS=$VOLUME_ARGS"
262- echo "SHM_SIZE=$SHM_SIZE"
263-
264- PLATFORM=${{ matrix.platform }}
265-
266222 echo "**************************************************************************************"
267- echo "${PLATFORM}"
268- echo "${ENGINE_ARGS}"
269- echo "${MODEL_LIST_ARGS}"
223+ echo "Unit"
224+ echo "InfiniTensor"
270225 echo "${DOCKER_ARGS}"
271226 echo "${{ github.run_id }}"
272- echo "${IMAGE_TAG_ARGS }"
227+ echo "${IMAGE_TAG }"
273228 echo "**************************************************************************************"
274229
0 commit comments