Skip to content

Commit 6f8b758

Browse files
authored
stores log files for functional test (#1202)
* stores log files for functional test fixes #1201 For every functional test, we create a folder in which we store log files. And in case of any fail, it will be easier to find a problem since we'll able to find a corresponded log file for the failed test. Also, this PR fixes a minor bug in our Github Actions workflows: when we use `matrix`, we don't have multiple artifacts, depending on matrix size. Instead, for every `upload-artifact` action we have only one artifact per workflow, i.e. artifacts are overridden. This PR fixes this problem and names artifact according to the matrix element it is uploaded for, e.g. `log-ubuntu-4.07` * fixes logdir
1 parent 59ff73a commit 6f8b758

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@ jobs:
7676
if: ${{ always() }}
7777
with:
7878
name: fun-tests-log
79-
path: testsuite/*.log
79+
path: |
80+
testsuite/*.log
81+
testsuite/logs

.github/workflows/build-dev-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ jobs:
5454
- uses: actions/upload-artifact@v2
5555
if: ${{ always() }}
5656
with:
57-
name: opam-log
57+
name: opam-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
5858
path: ~/.opam/log

.github/workflows/build-from-opam.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ jobs:
4040
- uses: actions/upload-artifact@v2
4141
if: ${{ always() }}
4242
with:
43-
name: opam-log
43+
name: opam-log-${{ matrix.ocaml-version }}
4444
path: ~/.opam/log

.github/workflows/nightly-testing.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,25 @@ jobs:
6464
- uses: actions/upload-artifact@v2
6565
if: ${{ always() }}
6666
with:
67-
name: opam-log
67+
name: opam-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
6868
path: ~/.opam/log
6969

7070
- uses: actions/upload-artifact@v2
7171
if: ${{ always() }}
7272
with:
73-
name: ~/.local/state/bap
74-
path: /tmp/bap/log
73+
name: bap-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
74+
path: ~/.local/state/bap
7575

7676
- uses: actions/upload-artifact@v2
7777
if: ${{ always() }}
7878
with:
79-
name: unit-tests-log
79+
name: unit-tests-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
8080
path: _build/oUnit-*.log
8181

8282
- uses: actions/upload-artifact@v2
8383
if: ${{ always() }}
8484
with:
85-
name: fun-tests-log
86-
path: testsuite/*.log
85+
name: fun-tests-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
86+
path: |
87+
testsuite/*.log
88+
testsuite/logs

.github/workflows/weekly-regress.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,25 @@ jobs:
6060
- uses: actions/upload-artifact@v2
6161
if: ${{ always() }}
6262
with:
63-
name: opam-log
63+
name: opam-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
6464
path: ~/.opam/log
6565

6666
- uses: actions/upload-artifact@v2
6767
if: ${{ always() }}
6868
with:
69-
name: ~/.local/state/bap
70-
path: /tmp/bap/log
69+
name: bap-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
70+
path: ~/.local/state/bap
7171

7272
- uses: actions/upload-artifact@v2
7373
if: ${{ always() }}
7474
with:
75-
name: unit-tests-log
75+
name: unit-tests-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
7676
path: _build/oUnit-*.log
7777

7878
- uses: actions/upload-artifact@v2
7979
if: ${{ always() }}
8080
with:
81-
name: fun-tests-log
82-
path: testsuite/*.log
81+
name: fun-tests-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
82+
path: |
83+
testsuite/*.log
84+
testsuite/logs

0 commit comments

Comments
 (0)