Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Upload average CPU utilization of CI jobs to DataDog #125771

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented May 30, 2024

This PR adds a new CI step that uploads the average CPU utilization of the current GH job to Datadog. I want to add more metrics in follow-up PRs.

r? @jdno

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels May 30, 2024
@Kobzol Kobzol marked this pull request as draft May 30, 2024 13:36
@Kobzol Kobzol changed the title [CI] Add metric upload to DataDog [CI] Upload CI metrics to DataDog May 30, 2024
@Kobzol
Copy link
Contributor Author

Kobzol commented May 31, 2024

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request May 31, 2024
[CI] Upload CI metrics to DataDog

This PR tests integration of Datadog CI custom metrics. My goal is to take various useful statistics (like the duration of stage 1 build, stage 2 build, and test execution) that we already gather into `metrics.json` and upload them as [custom metrics](https://docs.datadoghq.com/continuous_integration/pipelines/custom_commands/) into Datadog, so that we can observe job duration on a more granular level.

r? `@jdno`
@bors
Copy link
Contributor

bors commented May 31, 2024

⌛ Trying commit 608d825 with merge a73c014...

@bors
Copy link
Contributor

bors commented May 31, 2024

☀️ Try build successful - checks-actions
Build commit: a73c014 (a73c014e5592c6bae0273f2486a00998080bf5c8)

@Kobzol
Copy link
Contributor Author

Kobzol commented May 31, 2024

@bors try

@bors
Copy link
Contributor

bors commented May 31, 2024

⌛ Trying commit ddae1fa with merge 95b2963...

bors added a commit to rust-lang-ci/rust that referenced this pull request May 31, 2024
[CI] Upload CI metrics to DataDog

This PR tests integration of Datadog CI custom metrics. My goal is to take various useful statistics (like the duration of stage 1 build, stage 2 build, and test execution) that we already gather into `metrics.json` and upload them as [custom metrics](https://docs.datadoghq.com/continuous_integration/pipelines/custom_commands/) into Datadog, so that we can observe job duration on a more granular level.

r? `@jdno`
@bors
Copy link
Contributor

bors commented May 31, 2024

☀️ Try build successful - checks-actions
Build commit: 95b2963 (95b29636b64ab75e3078e335957d3039fbfd452e)

@Kobzol
Copy link
Contributor Author

Kobzol commented Jun 29, 2024

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 29, 2024
[CI] Upload CI metrics to DataDog

This PR tests integration of Datadog CI custom metrics. My goal is to take various useful statistics (like the duration of stage 1 build, stage 2 build, and test execution) that we already gather into `metrics.json` and upload them as [custom metrics](https://docs.datadoghq.com/continuous_integration/pipelines/custom_commands/) into Datadog, so that we can observe job duration on a more granular level.

r? `@jdno`
@bors
Copy link
Contributor

bors commented Jun 29, 2024

⌛ Testing commit 2a2de5f with merge 38fb5df...

@Kobzol Kobzol force-pushed the ci-datadog-metrics branch 2 times, most recently from 2343ecd to 870653f Compare July 2, 2024 14:17
@Kobzol Kobzol marked this pull request as ready for review July 2, 2024 14:17
@Kobzol Kobzol changed the title [CI] Upload CI metrics to DataDog [CI] Upload average CPU utilization of CI jobs to DataDog Jul 2, 2024
@Kobzol
Copy link
Contributor Author

Kobzol commented Jul 2, 2024

@bors try

@bors
Copy link
Contributor

bors commented Jul 2, 2024

⌛ Trying commit 870653f with merge b4cf8bf...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 2, 2024
[CI] Upload average CPU utilization of CI jobs to DataDog

This PR adds a new CI step that uploads the average CPU utilization of the current GH job to Datadog. I want to add more metrics in follow-up PRs.

r? `@jdno`
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the ci-datadog-metrics branch 2 times, most recently from a7fbb47 to f7acf06 Compare July 2, 2024 15:10
@Kobzol
Copy link
Contributor Author

Kobzol commented Jul 3, 2024

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 3, 2024
[CI] Upload average CPU utilization of CI jobs to DataDog

This PR adds a new CI step that uploads the average CPU utilization of the current GH job to Datadog. I want to add more metrics in follow-up PRs.

r? `@jdno`
@bors
Copy link
Contributor

bors commented Jul 3, 2024

⌛ Trying commit 95db961 with merge b470c9c...

@bors
Copy link
Contributor

bors commented Jul 3, 2024

☀️ Try build successful - checks-actions
Build commit: b470c9c (b470c9c0f9f2d9a1f0d07e8d95ed2d3ffa46dd87)

@Kobzol
Copy link
Contributor Author

Kobzol commented Jul 3, 2024

@rustbot ready

DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
DD_GITHUB_JOB_NAME: ${{ matrix.name }}
run: |
npm install -g @datadog/datadog-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this npm install be pinned in order to prevent new version breakage?

maybe something like this npm install -g @datadog/datadog-ci@2.38.x or npm install -g @datadog/datadog-ci@^2.x.x

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I was also thinking about that. If we do pin, the version should stay the same (even though transitive dependencies can still be updated without a lockfile), but the command might eventually no longer be supported by DataDog (meaning its internal API can change), so it might also break our CI in the future. If we don't pin, then it can break if the external CLI changes.

I'm fine with pinning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants