Skip to content

Commit 78a2d04

Browse files
author
Vincent Li
committed
updates
1 parent 46a873c commit 78a2d04

6 files changed

Lines changed: 76 additions & 2 deletions

File tree

.ci

.github/workflows/ci_child_for_smoketest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,12 @@ jobs:
9898
echo "${{ github.run_id }}"
9999
echo "${{ matrix.job_env.IMAGE }}"
100100
echo "************************************************************************"
101+
102+
./daemon.sh \
103+
"${PLATFORM^}" \
104+
Smoke \
105+
${{ matrix.job_env.ENGINE }} \
106+
"${{ matrix.job_env.MODEL_LIST }}:${{ matrix.ngpus }}" \
107+
"${DOCKER_ARGS} ${VOLUME_ARGS} ${SHM_SIZE}" \
108+
${{ github.run_id }} \
109+
${{ matrix.job_env.IMAGE }}

.github/workflows/ci_child_for_unittest.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,20 @@ jobs:
219219
git show origin/main:ascend_test_suite/daemon.sh > daemon.sh
220220
chmod a+x daemon.sh
221221
222+
PLATFORM=${{ matrix.platform }}
222223
echo "**************************************************************************************"
224+
echo "${PLATFORM^}"
223225
echo "Unit"
224226
echo "InfiniTensor"
225227
echo "${DOCKER_ARGS}"
226228
echo "${{ github.run_id }}"
227229
echo "${IMAGE_TAG}"
228230
echo "**************************************************************************************"
229-
231+
232+
./daemon.sh \
233+
"${PLATFORM^}" \
234+
"Unit" \
235+
"InfiniTensor" \
236+
"${DOCKER_ARGS}" \
237+
${{ github.run_id }} \
238+
"${IMAGE_TAG_ARGS}"
File renamed without changes.

.github/workflows/ci_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
outputs:
1414
matrix_json_for_unittest: ${{ steps.generate.outputs.matrix_json_for_unittest }}
15+
matrix_json_for_smoketest: ${{ steps.generate.outputs.matrix_json_for_smoketest }}
1516
job_types_with_jobs: ${{ steps.generate.outputs.job_types_with_jobs }}
1617
steps:
1718
- name: Checkout
@@ -35,6 +36,8 @@ jobs:
3536
run: |
3637
echo "job_types_with_jobs=${{ steps.generate.outputs.job_types_with_jobs }}"
3738
echo "matrix_json_for_unittest=${{ steps.generate.outputs.matrix_json_for_unittest }}"
39+
echo
40+
echo "matrix_json_for_smoketest=${{ steps.generate.outputs.matrix_json_for_smoketest }}"
3841
3942
run-child-unittest:
4043
name: Execute unittest child pipeline
@@ -43,3 +46,11 @@ jobs:
4346
uses: ./.github/workflows/ci_child_for_unittest.yml
4447
with:
4548
matrix_json: ${{ needs.prepare.outputs.matrix_json_for_unittest }}
49+
50+
run-child-smoketest:
51+
name: Execute smoketest child pipeline
52+
needs: prepare
53+
if: contains(fromJSON(needs.prepare.outputs.job_types_with_jobs), 'smoketest')
54+
uses: ./.github/workflows/ci_child_for_smoketest.yml
55+
with:
56+
matrix_json: ${{ needs.prepare.outputs.matrix_json_for_smoketest }}

.github/workflows/ci_test.yml.bak

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI Parent Pipeline
2+
3+
on:
4+
push:
5+
branches: ["ci_test"]
6+
pull_request:
7+
branches: ["ci_test"]
8+
9+
jobs:
10+
prepare:
11+
name: Generate matrix from config
12+
runs-on: ubuntu-latest
13+
outputs:
14+
matrix_json_for_unittest: ${{ steps.generate.outputs.matrix_json_for_unittest }}
15+
job_types_with_jobs: ${{ steps.generate.outputs.job_types_with_jobs }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
22+
- name: Setup Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.11"
26+
27+
- name: Install converter dependency
28+
run: pip install pyyaml
29+
30+
- name: Convert .ci/config.yaml to matrix JSON (by job type)
31+
id: generate
32+
run: python .ci/scripts/config_to_matrix.py --config .ci/config.yaml --write-github-outputs
33+
34+
- name: Show generated job types
35+
run: |
36+
echo "job_types_with_jobs=${{ steps.generate.outputs.job_types_with_jobs }}"
37+
echo "matrix_json_for_unittest=${{ steps.generate.outputs.matrix_json_for_unittest }}"
38+
39+
run-child-unittest:
40+
name: Execute unittest child pipeline
41+
needs: prepare
42+
if: contains(fromJSON(needs.prepare.outputs.job_types_with_jobs), 'unittest')
43+
uses: ./.github/workflows/ci_child_for_unittest.yml
44+
with:
45+
matrix_json: ${{ needs.prepare.outputs.matrix_json_for_unittest }}

0 commit comments

Comments
 (0)