Skip to content

Commit 1c46ca6

Browse files
github-actions[bot]manasvinibs
authored andcommitted
[CI] Record functional test artifacts in case of failure (#3190)
Signed-off-by: Miki <miki@amazon.com> Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit 303e3bd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
1 parent 62d36ff commit 1c46ca6

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/build_and_test_workflow.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
# https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223
104104
# Increase network timeout for Windows, retry once if bootstrap fails
105105
- name: Run bootstrap
106-
run: |
106+
run: |
107107
yarn cache clean
108108
yarn config set network-timeout 1000000 -g
109109
yarn osd bootstrap || yarn osd bootstrap
@@ -175,6 +175,14 @@ jobs:
175175
JOB: ci${{ matrix.group }}
176176
CACHE_DIR: ciGroup${{ matrix.group }}
177177

178+
- uses: actions/upload-artifact@v3
179+
if: failure()
180+
with:
181+
name: failure-artifacts
182+
path: |
183+
test/*/failure_debug/
184+
test/*/screenshots/
185+
178186
functional-tests-windows:
179187
runs-on: windows-latest
180188
name: Run functional tests on Windows
@@ -214,7 +222,7 @@ jobs:
214222
# https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223
215223
# Increase network timeout for Windows, retry once if bootstrap fails
216224
- name: Run bootstrap
217-
run: |
225+
run: |
218226
yarn cache clean
219227
yarn config set network-timeout 1000000 -g
220228
yarn osd bootstrap || yarn osd bootstrap
@@ -231,6 +239,14 @@ jobs:
231239
JOB: ci${{ matrix.group }}
232240
CACHE_DIR: ciGroup${{ matrix.group }}
233241

242+
- uses: actions/upload-artifact@v3
243+
if: failure()
244+
with:
245+
name: failure-artifacts-ci${{ matrix.group }}
246+
path: |
247+
test/*/failure_debug/
248+
test/*/screenshots/
249+
234250
build-min-artifact-tests-linux:
235251
runs-on: ubuntu-latest
236252
container:

0 commit comments

Comments
 (0)