From 12a295af72ff65e1c68c47536c761c739680dcd6 Mon Sep 17 00:00:00 2001 From: Kirill Sizov Date: Fri, 28 Oct 2022 17:11:04 +0300 Subject: [PATCH] Extend logs for CI workflows (#5179) --- .github/workflows/cleanup.yml | 2 +- .github/workflows/full.yml | 11 ++++++----- .github/workflows/main.yml | 9 +++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 3cde0942..0b0c8544 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -2,7 +2,7 @@ name: Delete image artifacts on: workflow_run: - workflows: [CI, Comment] + workflows: [CI, Comment, Full] types: - completed diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index b28b8e81..335ec205 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -206,14 +206,15 @@ jobs: LOGS_DIR: "${{ github.workspace }}/rest_api" run: | mkdir $LOGS_DIR - docker logs test_cvat_server_1 > $LOGS_DIR/cvat.log + docker logs test_cvat_server_1 > $LOGS_DIR/cvat_server.log + docker logs test_cvat_worker_default_1 > $LOGS_DIR/cvat_worker_default.log docker logs test_cvat_opa_1 2> $LOGS_DIR/cvat_opa.log - name: Uploading "cvat" container logs as an artifact if: failure() uses: actions/upload-artifact@v3.1.1 with: - name: container_logs + name: rest_api_container_logs path: "${{ github.workspace }}/rest_api" unit_testing: @@ -266,14 +267,14 @@ jobs: LOGS_DIR: "${{ github.workspace }}/unit_testing" run: | mkdir $LOGS_DIR - docker logs cvat_server > $LOGS_DIR/cvat.log + docker logs cvat_server > $LOGS_DIR/cvat_server.log docker logs cvat_opa 2> $LOGS_DIR/cvat_opa.log - name: Uploading "cvat" container logs as an artifact if: failure() uses: actions/upload-artifact@v3.1.1 with: - name: container_logs + name: unit_tests_container_logs path: "${{ github.workspace }}/unit_testing" e2e_testing: @@ -376,7 +377,7 @@ jobs: if: failure() uses: actions/upload-artifact@v3.1.1 with: - name: container_logs + name: e2e_container_logs path: ${{ github.workspace }}/tests/cvat_${{ matrix.specs }}.log - name: Uploading cypress screenshots as an artifact diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa051cff..672ab838 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -173,14 +173,15 @@ jobs: LOGS_DIR: "${{ github.workspace }}/rest_api_testing" run: | mkdir $LOGS_DIR - docker logs test_cvat_server_1 > $LOGS_DIR/cvat.log + docker logs test_cvat_server_1 > $LOGS_DIR/cvat_server.log + docker logs test_cvat_worker_default_1 > $LOGS_DIR/cvat_worker_default.log docker logs test_cvat_opa_1 2> $LOGS_DIR/cvat_opa.log - name: Uploading "cvat" container logs as an artifact if: failure() uses: actions/upload-artifact@v3.1.1 with: - name: container_logs + name: rest_api_container_logs path: "${{ github.workspace }}/rest_api_testing" unit_testing: @@ -239,7 +240,7 @@ jobs: if: failure() uses: actions/upload-artifact@v3.1.1 with: - name: container_logs + name: unit_tests_container_logs path: "${{ github.workspace }}/unit_testing" @@ -330,7 +331,7 @@ jobs: if: failure() uses: actions/upload-artifact@v3.1.1 with: - name: container_logs + name: e2e_container_logs path: ${{ github.workspace }}/tests/cvat_${{ matrix.specs }}.log - name: Uploading cypress screenshots as an artifact