Skip to content

Commit f5cc511

Browse files
committed
Upload Datadog average CPU usage metric in citool
1 parent ec3f179 commit f5cc511

File tree

7 files changed

+801
-20
lines changed

7 files changed

+801
-20
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ jobs:
176176
- name: ensure the stable version number is correct
177177
run: src/ci/scripts/verify-stable-version-number.sh
178178

179+
# Pre-build citool before the following step uninstalls rustup
180+
- name: build citool
181+
run: |
182+
cd src/ci/citool
183+
cargo build
184+
179185
- name: run the build
180186
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
181187
run: src/ci/scripts/run-build-from-ci.sh 2>&1
@@ -215,13 +221,9 @@ jobs:
215221
- name: upload job metrics to DataDog
216222
if: needs.calculate_matrix.outputs.run_type != 'pr'
217223
env:
218-
DATADOG_SITE: datadoghq.com
219224
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
220225
DD_GITHUB_JOB_NAME: ${{ matrix.full_name }}
221-
run: |
222-
cd src/ci
223-
npm ci
224-
python3 scripts/upload-build-metrics.py ../../build/cpu-usage.csv
226+
run: ./src/ci/citool/target/debug/citool upload-build-metrics build/cpu-usage.csv
225227

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

0 commit comments

Comments
 (0)