@@ -143,20 +143,35 @@ jobs:
143
143
run : cabal test hls-graph --test-options="$TEST_OPTS"
144
144
145
145
- if : needs.pre_job.outputs.should_skip_ghcide != 'true' && matrix.test
146
+ uses : nick-fields/retry@v2
146
147
name : Test ghcide
147
- # run the tests without parallelism to avoid running out of memory
148
- run : cabal test ghcide --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test ghcide --test-options="$TEST_OPTS"
148
+ with :
149
+ # This test is sometimes flaky
150
+ max_attempts : 3
151
+ # We don't really want to gate on a timeout
152
+ timeout_minutes : 180
153
+ shell : bash
154
+ command : cabal test ghcide --test-options="$TEST_OPTS"
155
+ new_command_on_retry : LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test ghcide --test-options="$TEST_OPTS"
149
156
150
157
- if : matrix.test
151
158
name : Test hls-plugin-api
152
- run : cabal test hls-plugin-api --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-plugin-api --test-options="$TEST_OPTS"
159
+ run : cabal test hls-plugin-api --test-options="$TEST_OPTS"
153
160
154
161
- if : matrix.test
162
+ uses : nick-fields/retry@v2
155
163
name : Test func-test suite
156
164
env :
157
165
HLS_TEST_EXE : hls
158
166
HLS_WRAPPER_TEST_EXE : hls-wrapper
159
- run : cabal test func-test --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test func-test --test-options="$TEST_OPTS"
167
+ with :
168
+ # this test is sometimes flaky
169
+ max_attempts : 3
170
+ # We don't really want to gate on a timeout
171
+ timeout_minutes : 180
172
+ shell : bash
173
+ command : cabal test func-test --test-options="$TEST_OPTS"
174
+ new_command_on_retry : LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test func-test --test-options="$TEST_OPTS"
160
175
161
176
- if : matrix.test
162
177
name : Test wrapper-test suite
@@ -167,116 +182,124 @@ jobs:
167
182
168
183
- if : matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
169
184
name : Test hls-brittany-plugin
170
- run : cabal test hls-brittany-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-brittany-plugin --test-options="$TEST_OPTS"
185
+ run : cabal test hls-brittany-plugin --test-options="$TEST_OPTS"
171
186
172
187
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
188
+ uses : nick-fields/retry@v2
173
189
name : Test hls-refactor-plugin
174
- run : cabal test hls-refactor-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-refactor-plugin --test-options="$TEST_OPTS"
190
+ with :
191
+ # This test is sometimes flaky
192
+ max_attempts : 2
193
+ # We don't really want to gate on a timeout
194
+ timeout_minutes : 180
195
+ shell : bash
196
+ command : cabal test hls-refactor-plugin --test-options="$TEST_OPTS"
197
+ new_command_on_retry : LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-refactor-plugin --test-options="$TEST_OPTS"
175
198
176
199
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
177
200
name : Test hls-floskell-plugin
178
- run : cabal test hls-floskell-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-floskell-plugin --test-options="$TEST_OPTS"
201
+ run : cabal test hls-floskell-plugin --test-options="$TEST_OPTS"
179
202
180
203
- if : matrix.test
181
204
name : Test hls-class-plugin
182
- run : cabal test hls-class-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-class-plugin --test-options="$TEST_OPTS"
205
+ run : cabal test hls-class-plugin --test-options="$TEST_OPTS"
183
206
184
207
- if : matrix.test
185
208
name : Test hls-pragmas-plugin
186
- run : cabal test hls-pragmas-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-pragmas-plugin --test-options="$TEST_OPTS"
209
+ run : cabal test hls-pragmas-plugin --test-options="$TEST_OPTS"
187
210
188
211
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
189
212
name : Test hls-eval-plugin
190
- run : cabal test hls-eval-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-eval-plugin --test-options="$TEST_OPTS"
213
+ run : cabal test hls-eval-plugin --test-options="$TEST_OPTS"
191
214
192
215
- if : matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
193
216
name : Test hls-haddock-comments-plugin
194
- run : cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS"
217
+ run : cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS"
195
218
196
219
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
197
220
name : Test hls-splice-plugin
198
- run : cabal test hls-splice-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-splice-plugin --test-options="$TEST_OPTS"
221
+ run : cabal test hls-splice-plugin --test-options="$TEST_OPTS"
199
222
200
223
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
201
224
name : Test hls-stylish-haskell-plugin
202
- run : cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
225
+ run : cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
203
226
204
227
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
205
228
name : Test hls-ormolu-plugin
206
- run : cabal test hls-ormolu-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-ormolu-plugin --test-options="$TEST_OPTS"
229
+ run : cabal test hls-ormolu-plugin --test-options="$TEST_OPTS"
207
230
208
231
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
209
232
name : Test hls-fourmolu-plugin
210
- run : cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS"
233
+ run : cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS"
211
234
212
235
- if : matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
213
236
name : Test hls-tactics-plugin test suite
214
- run : cabal test hls-tactics-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-tactics-plugin --test-options="$TEST_OPTS"
237
+ run : cabal test hls-tactics-plugin --test-options="$TEST_OPTS"
215
238
216
239
- if : matrix.test
217
240
name : Test hls-refine-imports-plugin test suite
218
- run : cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS"
241
+ run : cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS"
219
242
220
243
- if : matrix.test
221
244
name : Test hls-explicit-imports-plugin test suite
222
- run : cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS"
245
+ run : cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS"
223
246
224
247
- if : matrix.test
225
248
name : Test hls-call-hierarchy-plugin test suite
226
- run : cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS"
249
+ run : cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS"
227
250
228
251
- if : matrix.test && matrix.os != 'windows-latest' && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
229
252
name : Test hls-rename-plugin test suite
230
- run : cabal test hls-rename-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-rename-plugin --test-options="$TEST_OPTS"
253
+ run : cabal test hls-rename-plugin --test-options="$TEST_OPTS"
231
254
232
255
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
233
256
name : Test hls-hlint-plugin test suite
234
- run : cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
257
+ run : cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
235
258
236
259
- if : matrix.test && matrix.ghc != '9.0.1' && matrix.ghc != '9.0.2' && matrix.ghc != '9.2.4' && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
237
260
name : Test hls-stan-plugin test suite
238
- run : cabal test hls-stan-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-stan-plugin --test-options="$TEST_OPTS"
261
+ run : cabal test hls-stan-plugin --test-options="$TEST_OPTS"
239
262
240
263
- if : matrix.test
241
264
name : Test hls-module-name-plugin test suite
242
- run : cabal test hls-module-name-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-module-name-plugin --test-options="$TEST_OPTS"
265
+ run : cabal test hls-module-name-plugin --test-options="$TEST_OPTS"
243
266
244
267
- if : matrix.test
245
268
name : Test hls-alternate-number-format-plugin test suite
246
- run : cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS"
269
+ run : cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS"
247
270
248
271
- if : matrix.test
249
272
name : Test hls-qualify-imported-names-plugin test suite
250
- run : cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS"
273
+ run : cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS"
251
274
252
275
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
253
276
name : Test hls-code-range-plugin test suite
254
- run : cabal test hls-code-range-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-code-range-plugin --test-options="$TEST_OPTS"
277
+ run : cabal test hls-code-range-plugin --test-options="$TEST_OPTS"
255
278
256
279
- if : matrix.test
257
280
name : Test hls-change-type-signature test suite
258
- run : cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS"
281
+ run : cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS"
259
282
260
283
- if : matrix.test && matrix.ghc != '9.4.2' && matrix.ghc != '9.4.3'
261
284
name : Test hls-gadt-plugin test suit
262
- run : cabal test hls-gadt-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-gadt-plugin --test-options="$TEST_OPTS"
285
+ run : cabal test hls-gadt-plugin --test-options="$TEST_OPTS"
263
286
264
287
- if : matrix.test
265
288
name : Test hls-explicit-fixity-plugin test suite
266
- run : cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS"
289
+ run : cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS"
267
290
268
291
- if : matrix.test
269
292
name : Test hls-explicit-record-fields-plugin test suite
270
- run : cabal test hls-explicit-record-fields-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-explicit-record-fields-plugin --test-options="$TEST_OPTS"
293
+ run : cabal test hls-explicit-record-fields-plugin --test-options="$TEST_OPTS"
271
294
272
295
# # version needs to be limited since the tests depend on cabal-fmt which only builds using specific ghc versions
273
296
- if : matrix.test && matrix.ghc == '8.10.7'
274
297
name : Test hls-cabal-fmt-plugin test suite
275
- run : cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS" || cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS"
298
+ run : cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS"
276
299
277
300
- if : matrix.test
278
301
name : Test hls-cabal-plugin test suite
279
- run : cabal test hls-cabal-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-cabal-plugin --test-options="$TEST_OPTS"
302
+ run : cabal test hls-cabal-plugin --test-options="$TEST_OPTS"
280
303
281
304
test_post_job :
282
305
if : always()
0 commit comments