Skip to content

Commit 6130b3d

Browse files
committed
Upload Datadog average CPU usage metric in citool
1 parent 26e42de commit 6130b3d

File tree

7 files changed

+787
-21
lines changed

7 files changed

+787
-21
lines changed

.github/workflows/ci.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
run: src/ci/scripts/dump-environment.sh
184184

185185
# Pre-build citool before the following step uninstalls rustup
186-
# Build is into the build directory, to avoid modifying sources
186+
# Build it into the build directory, to avoid modifying sources
187187
- name: build citool
188188
run: |
189189
cd src/ci/citool
@@ -238,13 +238,9 @@ jobs:
238238
- name: upload job metrics to DataDog
239239
if: needs.calculate_matrix.outputs.run_type != 'pr'
240240
env:
241-
DATADOG_SITE: datadoghq.com
242241
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
243242
DD_GITHUB_JOB_NAME: ${{ matrix.full_name }}
244-
run: |
245-
cd src/ci
246-
npm ci
247-
python3 scripts/upload-build-metrics.py ../../build/cpu-usage.csv
243+
run: ./build/citool/debug/citool upload-build-metrics build/cpu-usage.csv
248244

249245
# This job isused to tell bors the final status of the build, as there is no practical way to detect
250246
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).

0 commit comments

Comments
 (0)