BUILD-11298 Add CI metrics job-completed hook for self-hosted runners#270
Conversation
Agentic Analysis: Early ResultsAgentic Analysis and Context Augmentation are available on your project. Here are some issues that could have been prevented. Follow the links to learn how to put them into action. 15 issue(s) found across 1 file(s):
Analyzed by SonarQube Agentic Analysis in 2.8 s |
There was a problem hiding this comment.
Pull request overview
Adds a runner-side “job completed” metrics hook script under ci-metrics/ intended to be downloaded and executed by WarpBuild runner images, and documents how consumers should enable and fetch it.
Changes:
- Added
ci-metrics/job-completed.shto collect cgroup v2 + network totals, writejob-metrics.json, and append a step-summary table (fail-open). - Documented the hook’s purpose, feature flag, and the pinned raw URL in
README.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
README.md |
Documents the new ci-metrics/ hook, usage, feature flag, and consumer raw URL. |
ci-metrics/job-completed.sh |
Introduces the job-completed hook script that collects and emits CI metrics + optional cache aggregation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4dc4626 to
150d32c
Compare
Code Review ✅ ApprovedIntroduces the OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
b45a70d to
636e76d
Compare
636e76d to
ce0b0c2
Compare
ce0b0c2 to
c1a29bf
Compare
The round3 utility function is kept for consistency with round2 but is not currently invoked, triggering SC2329 in pre-commit. Adding the disable directive alongside the existing SC2317 suppression.
d8087c2 to
11f8f16
Compare
|



Summary
This is not a GitHub Action — the script is used by the self-hosted runners to publish metrics at the end of the job. For implementation details see https://xtranet-sonarsource.atlassian.net/wiki/x/BIDiNgE
Out of scope
github-runners-infra. Tracked at BUILD-11446Test plan