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

Commit 32e5e5e

Browse files
committed
[CI] Add metric upload to DataDog
1 parent 19a1d2b commit 32e5e5e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ jobs:
212212
# erroring about invalid credentials instead.
213213
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
214214

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

src/ci/github-actions/jobs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ pr:
9696
# These jobs automatically inherit envs.try, to avoid repeating
9797
# it in each job definition.
9898
try:
99-
- image: dist-x86_64-linux
100-
env:
101-
CODEGEN_BACKENDS: llvm,cranelift
102-
<<: *job-linux-16c
99+
- image: mingw-check-tidy
100+
<<: *job-linux-4c
101+
# - image: dist-x86_64-linux
102+
# env:
103+
# CODEGEN_BACKENDS: llvm,cranelift
104+
# <<: *job-linux-16c
103105

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

0 commit comments

Comments
 (0)