BUILD-11567 Fold CI Metrics step-summary into one collapsible block per job - #311
Merged
mikolaj-matuszny-ext-sonarsource merged 3 commits intoJun 22, 2026
Merged
Conversation
julien-carsique-sonarsource
approved these changes
Jun 22, 2026
…er job Mirror of the producer-hook change in github-runners-infra#425. The post-job hook now emits a single <details> fold per job — collapsed <summary> carries a digest of the headline numbers, anomalies (OOM / throttling) lead with a [!] prefix, and the cache is a one-line-per-entry list instead of a 6-column table. Presentation only; JSON output and schema_version 3 are unchanged. This is the hand-synced copy of infra/applications/github-runners/hooks/job-completed.sh; the two files' presentation regions are byte-identical (the template byte-identity test in github-runners-infra enforces it).
…l lines Mirror of github-runners-infra: cache token in the collapsed <summary> and self-describing per-entry detail lines in the fold.
mikolaj-matuszny-ext-sonarsource
force-pushed
the
BUILD-11567-condense-ci-metrics
branch
from
June 22, 2026 08:58
e7bc472 to
47263e1
Compare
|
mikolaj-matuszny-ext-sonarsource
deleted the
BUILD-11567-condense-ci-metrics
branch
June 22, 2026 09:02
Code Review ✅ ApprovedCollapses CI Metrics step-summaries into single collapsible blocks per job to improve matrix readability. No issues found. OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
Mirror of the producer-hook change in SonarSource/github-runners-infra#425, applied to the hand-synced copy at
ci-metrics/job-completed.sh.The post-job hook's CI Metrics step-summary output is condensed into a single collapsible
<details>block per job, so a multi-job matrix summary stops being a wall of stacked tables (BUILD-11567).CI Metrics — CPU 10% · Mem 10% · Disk 2% · Net 147↓ 1↑ MiB[!] CI Metrics — OOM kill ×1 · throttled 8% · …(OOM / throttle lead,[!]prefix)Presentation only — JSON output and
schema_version3 are unchanged;report-ci-metrics(the aggregator) is unaffected.Sync
This file is a hand-synced copy of
infra/applications/github-runners/hooks/job-completed.sh. The two differ only in the feature-gate section and a spec cross-reference comment; the presentation region is byte-identical, and the template byte-identity test in github-runners-infra enforces that the embedded copy matches. Both sides changed together: github-runners-infra#425.Testing
shellcheckclean.shellspec spec/report-ci-metrics_spec.sh→ 40 examples, 0 failures (aggregator unaffected).