Skip to content

Commit 608d825

Browse files
committed
[CI] Add metric upload to DataDog
1 parent f3ff2f1 commit 608d825

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,15 @@ jobs:
218218
# erroring about invalid credentials instead.
219219
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
220220

221+
- name: Upload Datadog metrics
222+
if: needs.calculate_matrix.outputs.run_type == 'try'
223+
env:
224+
DATADOG_SITE: datadoghq.com
225+
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
226+
run: |
227+
npm install -g @datadog/datadog-ci
228+
datadog-ci measure --level job --measures "build-duration-test:100"
229+
221230
# This job isused to tell bors the final status of the build, as there is no practical way to detect
222231
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).
223232
outcome:

src/ci/github-actions/jobs.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ pr:
8989
# These jobs automatically inherit envs.try, to avoid repeating
9090
# it in each job definition.
9191
try:
92-
- image: dist-x86_64-linux
93-
env:
94-
CODEGEN_BACKENDS: llvm,cranelift
95-
<<: *job-linux-16c
92+
- image: mingw-check
93+
<<: *job-linux-4c
94+
# - image: dist-x86_64-linux
95+
# env:
96+
# CODEGEN_BACKENDS: llvm,cranelift
97+
# <<: *job-linux-16c
9698

9799
# Main CI jobs that have to be green to merge a commit into master
98100
# These jobs automatically inherit envs.auto, to avoid repeating

0 commit comments

Comments
 (0)