Skip to content

BUILD-11567 Fold CI Metrics step-summary into one collapsible block per job - #311

Merged
mikolaj-matuszny-ext-sonarsource merged 3 commits into
masterfrom
BUILD-11567-condense-ci-metrics
Jun 22, 2026
Merged

BUILD-11567 Fold CI Metrics step-summary into one collapsible block per job#311
mikolaj-matuszny-ext-sonarsource merged 3 commits into
masterfrom
BUILD-11567-condense-ci-metrics

Conversation

@mikolaj-matuszny-ext-sonarsource

@mikolaj-matuszny-ext-sonarsource mikolaj-matuszny-ext-sonarsource commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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).

  • Collapsed: CI Metrics — CPU 10% · Mem 10% · Disk 2% · Net 147↓ 1↑ MiB
  • Anomaly (collapsed): [!] CI Metrics — OOM kill ×1 · throttled 8% · … (OOM / throttle lead, [!] prefix)
  • Expanded: the existing metric table, then the cache as a one-line-per-entry list instead of a 6-column table.

Presentation only — JSON output and schema_version 3 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

  • shellcheck clean.
  • shellspec spec/report-ci-metrics_spec.sh → 40 examples, 0 failures (aggregator unaffected).
  • Presentation verified by local fixture render (healthy / OOM+throttle / ARC request-denominator+cache-hit / all-n-a) and by the byte-identity template test on the infra side.

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Jun 19, 2026

Copy link
Copy Markdown

BUILD-11567

…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.
@sonarqubecloud

Copy link
Copy Markdown

@mikolaj-matuszny-ext-sonarsource
mikolaj-matuszny-ext-sonarsource merged commit 997186c into master Jun 22, 2026
17 checks passed
@mikolaj-matuszny-ext-sonarsource
mikolaj-matuszny-ext-sonarsource deleted the BUILD-11567-condense-ci-metrics branch June 22, 2026 09:02
@gitar-bot

gitar-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Collapses CI Metrics step-summaries into single collapsible blocks per job to improve matrix readability. No issues found.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants