Skip to content

Commit 64bfea9

Browse files
authored
fix corner issue in CI test (#585)
Signed-off-by: chensuyue <suyue.chen@intel.com>
1 parent 0a6bad0 commit 64bfea9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/_run-docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
strategy:
6464
matrix:
6565
test_case: ${{ fromJSON(needs.get-test-case.outputs.test_cases) }}
66+
fail-fast: false
6667
runs-on: ${{ inputs.hardware }}
6768
continue-on-error: true
6869
steps:
@@ -100,7 +101,10 @@ jobs:
100101
if: cancelled() || failure()
101102
run: |
102103
cd ${{ github.workspace }}/${{ inputs.example }}/docker/${{ inputs.hardware }}
103-
docker compose stop && docker compose rm -f
104+
yaml_files=$(find . -type f -name "*compose*yaml")
105+
for file in $yaml_files; do
106+
docker compose -f ${file} stop && docker compose -f ${file} rm -f || true
107+
done
104108
docker system prune -f
105109
docker rmi $(docker images --filter reference="*:5000/*/*" -q) || true
106110

.github/workflows/pr-docker-compose-e2e.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
needs: [job1, mega-image-build]
4141
strategy:
4242
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
43+
fail-fast: false
4344
uses: ./.github/workflows/_run-docker-compose.yml
4445
with:
4546
tag: ${{ needs.mega-image-build.outputs.image_tag }}

0 commit comments

Comments
 (0)