File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 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
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
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 }}
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments