Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 301c384

Browse files
committed
Do not fail the build if metrics postprocessing or DataDog upload fails
1 parent 899eed1 commit 301c384

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ jobs:
239239
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
240240

241241
- name: postprocess metrics into the summary
242+
# This step is not critical, and if some I/O problem happens, we don't want
243+
# to cancel the build.
244+
continue-on-error: true
242245
run: |
243246
if [ -f build/metrics.json ]; then
244247
METRICS=build/metrics.json
@@ -253,6 +256,9 @@ jobs:
253256
${METRICS} ${GITHUB_STEP_SUMMARY}
254257
255258
- name: upload job metrics to DataDog
259+
# This step is not critical, and if some I/O problem happens, we don't want
260+
# to cancel the build.
261+
continue-on-error: true
256262
if: needs.calculate_matrix.outputs.run_type != 'pr'
257263
env:
258264
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}

0 commit comments

Comments
 (0)