This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ Always dump logs from unit tests during CI runs.
You can’t perform that action at this time.
0 commit comments