From 1c46ca6afe4dc157d11cc72361d3ddf4d9a85408 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 6 Jan 2023 02:54:59 +0000 Subject: [PATCH] [CI] Record functional test artifacts in case of failure (#3190) Signed-off-by: Miki Signed-off-by: Miki (cherry picked from commit 303e3bdd5e213cec2a39fdaa7a204239359d95a8) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .github/workflows/build_and_test_workflow.yml | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test_workflow.yml b/.github/workflows/build_and_test_workflow.yml index 93e9bb21fab5..78e531207e8b 100644 --- a/.github/workflows/build_and_test_workflow.yml +++ b/.github/workflows/build_and_test_workflow.yml @@ -103,7 +103,7 @@ jobs: # https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223 # Increase network timeout for Windows, retry once if bootstrap fails - name: Run bootstrap - run: | + run: | yarn cache clean yarn config set network-timeout 1000000 -g yarn osd bootstrap || yarn osd bootstrap @@ -175,6 +175,14 @@ jobs: JOB: ci${{ matrix.group }} CACHE_DIR: ciGroup${{ matrix.group }} + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: failure-artifacts + path: | + test/*/failure_debug/ + test/*/screenshots/ + functional-tests-windows: runs-on: windows-latest name: Run functional tests on Windows @@ -214,7 +222,7 @@ jobs: # https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223 # Increase network timeout for Windows, retry once if bootstrap fails - name: Run bootstrap - run: | + run: | yarn cache clean yarn config set network-timeout 1000000 -g yarn osd bootstrap || yarn osd bootstrap @@ -231,6 +239,14 @@ jobs: JOB: ci${{ matrix.group }} CACHE_DIR: ciGroup${{ matrix.group }} + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: failure-artifacts-ci${{ matrix.group }} + path: | + test/*/failure_debug/ + test/*/screenshots/ + build-min-artifact-tests-linux: runs-on: ubuntu-latest container: