@@ -269,16 +269,6 @@ jobs:
269
269
id : test
270
270
shell : bash
271
271
run : |
272
- # Code coverage is more computationally expensive and also
273
- # prevents test caching, so we disable it on alternate operating
274
- # systems.
275
- if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
276
- echo "cover=true" >> $GITHUB_OUTPUT
277
- export COVERAGE_FLAGS='-covermode=atomic -coverprofile="gotests.coverage" -coverpkg=./...'
278
- else
279
- echo "cover=false" >> $GITHUB_OUTPUT
280
- fi
281
-
282
272
# if macOS, install google-chrome for scaletests. As another concern,
283
273
# should we really have this kind of external dependency requirement
284
274
# on standard CI?
@@ -297,7 +287,7 @@ jobs:
297
287
fi
298
288
export TS_DEBUG_DISCO=true
299
289
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
300
- --packages="./..." -- $PARALLEL_FLAG -short -failfast $COVERAGE_FLAGS
290
+ --packages="./..." -- $PARALLEL_FLAG -short -failfast
301
291
302
292
- name : Upload test stats to Datadog
303
293
timeout-minutes : 1
@@ -307,19 +297,6 @@ jobs:
307
297
with :
308
298
api-key : ${{ secrets.DATADOG_API_KEY }}
309
299
310
- - name : Check code coverage
311
- uses : codecov/codecov-action@v4
312
- # This action has a tendency to error out unexpectedly, it has
313
- # the `fail_ci_if_error` option that defaults to `false`, but
314
- # that is no guarantee, see:
315
- # https://github.com/codecov/codecov-action/issues/788
316
- continue-on-error : true
317
- if : steps.test.outputs.cover && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
318
- with :
319
- token : ${{ secrets.CODECOV_TOKEN }}
320
- files : ./gotests.coverage
321
- flags : unittest-go-${{ matrix.os }}
322
-
323
300
test-go-pg :
324
301
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
325
302
needs :
@@ -355,19 +332,6 @@ jobs:
355
332
with :
356
333
api-key : ${{ secrets.DATADOG_API_KEY }}
357
334
358
- - name : Check code coverage
359
- uses : codecov/codecov-action@v4
360
- # This action has a tendency to error out unexpectedly, it has
361
- # the `fail_ci_if_error` option that defaults to `false`, but
362
- # that is no guarantee, see:
363
- # https://github.com/codecov/codecov-action/issues/788
364
- continue-on-error : true
365
- if : github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
366
- with :
367
- token : ${{ secrets.CODECOV_TOKEN }}
368
- files : ./gotests.coverage
369
- flags : unittest-go-postgres-linux
370
-
371
335
test-go-race :
372
336
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
373
337
needs : changes
@@ -414,19 +378,6 @@ jobs:
414
378
- run : pnpm test:ci --max-workers $(nproc)
415
379
working-directory : site
416
380
417
- - name : Check code coverage
418
- uses : codecov/codecov-action@v4
419
- # This action has a tendency to error out unexpectedly, it has
420
- # the `fail_ci_if_error` option that defaults to `false`, but
421
- # that is no guarantee, see:
422
- # https://github.com/codecov/codecov-action/issues/788
423
- continue-on-error : true
424
- if : github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
425
- with :
426
- token : ${{ secrets.CODECOV_TOKEN }}
427
- files : ./site/coverage/lcov.info
428
- flags : unittest-js
429
-
430
381
test-e2e :
431
382
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-16vcpu-ubuntu-2204' || 'ubuntu-latest' }}
432
383
needs : changes
0 commit comments