Skip to content

Commit 96edc8a

Browse files
authored
fix: Add continue-on-error to codecov action step (coder#3081)
Avoid relying on codecov to manage action step failure, hopefully works around: codecov/codecov-action#788
1 parent 3e5affd commit 96edc8a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/coder.yaml

+15-6
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,16 @@ jobs:
219219
run: go run scripts/datadog-cireport/main.go gotests.xml
220220

221221
- uses: codecov/codecov-action@v3
222+
# This action has a tendency to error out unexpectedly, it has
223+
# the `fail_ci_if_error` option that defaults to `false`, but
224+
# that is no guarantee, see:
225+
# https://github.com/codecov/codecov-action/issues/788
226+
continue-on-error: true
222227
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
223228
with:
224229
token: ${{ secrets.CODECOV_TOKEN }}
225230
files: ./gotests.coverage
226231
flags: unittest-go-${{ matrix.os }}
227-
# this flakes and sometimes fails the build
228-
fail_ci_if_error: false
229232

230233
test-go-postgres:
231234
name: "test/go/postgres"
@@ -281,13 +284,16 @@ jobs:
281284
run: go run scripts/datadog-cireport/main.go gotests.xml
282285

283286
- uses: codecov/codecov-action@v3
287+
# This action has a tendency to error out unexpectedly, it has
288+
# the `fail_ci_if_error` option that defaults to `false`, but
289+
# that is no guarantee, see:
290+
# https://github.com/codecov/codecov-action/issues/788
291+
continue-on-error: true
284292
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
285293
with:
286294
token: ${{ secrets.CODECOV_TOKEN }}
287295
files: ./gotests.coverage
288296
flags: unittest-go-postgres-${{ matrix.os }}
289-
# this flakes and sometimes fails the build
290-
fail_ci_if_error: false
291297

292298
deploy:
293299
name: "deploy"
@@ -431,13 +437,16 @@ jobs:
431437
working-directory: site
432438

433439
- uses: codecov/codecov-action@v3
440+
# This action has a tendency to error out unexpectedly, it has
441+
# the `fail_ci_if_error` option that defaults to `false`, but
442+
# that is no guarantee, see:
443+
# https://github.com/codecov/codecov-action/issues/788
444+
continue-on-error: true
434445
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
435446
with:
436447
token: ${{ secrets.CODECOV_TOKEN }}
437448
files: ./site/coverage/lcov.info
438449
flags: unittest-js
439-
# this flakes and sometimes fails the build
440-
fail_ci_if_error: false
441450

442451
- name: Upload DataDog Trace
443452
if: always() && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork

0 commit comments

Comments
 (0)