Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 8711e15

Browse files
authored
Always dump logs from trial during CI. (#11068)
Instead of only dumping them if trial passes.
1 parent 988de0a commit 8711e15

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ jobs:
122122
SYNAPSE_POSTGRES_USER: postgres
123123
SYNAPSE_POSTGRES_PASSWORD: postgres
124124
- name: Dump logs
125+
# Logs are most useful when the command fails, always include them.
126+
if: ${{ always() }}
125127
# Note: Dumps to workflow logs instead of using actions/upload-artifact
126128
# This keeps logs colocated with failing jobs
127129
# It also ignores find's exit code; this is a best effort affair
@@ -146,6 +148,8 @@ jobs:
146148
env:
147149
TRIAL_FLAGS: "--jobs=2"
148150
- name: Dump logs
151+
# Logs are most useful when the command fails, always include them.
152+
if: ${{ always() }}
149153
# Note: Dumps to workflow logs instead of using actions/upload-artifact
150154
# This keeps logs colocated with failing jobs
151155
# It also ignores find's exit code; this is a best effort affair
@@ -176,6 +180,8 @@ jobs:
176180
env:
177181
TRIAL_FLAGS: "--jobs=2"
178182
- name: Dump logs
183+
# Logs are most useful when the command fails, always include them.
184+
if: ${{ always() }}
179185
# Note: Dumps to workflow logs instead of using actions/upload-artifact
180186
# This keeps logs colocated with failing jobs
181187
# It also ignores find's exit code; this is a best effort affair

.github/workflows/twisted_trunk.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
TRIAL_FLAGS: "--jobs=2"
3434

3535
- name: Dump logs
36+
# Logs are most useful when the command fails, always include them.
37+
if: ${{ always() }}
3638
# Note: Dumps to workflow logs instead of using actions/upload-artifact
3739
# This keeps logs colocated with failing jobs
3840
# It also ignores find's exit code; this is a best effort affair

changelog.d/11068.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Always dump logs from unit tests during CI runs.

0 commit comments

Comments
 (0)