ci-tools icon indicating copy to clipboard operation
ci-tools copied to clipboard

jobrunaggregator: add numerical identifiers to job run squares

Open petr-muller opened this issue 1 month ago • 5 comments

Summary

Add stable numerical identifiers (1, 2, 3, ...) to the colored squares in the Spyglass Suite Information HTML artifact. This makes it easy to identify correlations between test failures across different tests.

Changes

  • Add helper functions to collect and number all unique JobRunIDs from the test suite
  • Display numbers on colored squares (red for failures, purple for flakes, green for passes)
  • Numbers are sorted alphabetically by JobRunID for stable, deterministic ordering
  • Same JobRunID shows the same number across all tests in the report
  • Add dict template function to pass multiple values to nested templates

Example

If three tests fail in job run 1234567890, all three will display the same number (e.g., "1") on their red squares, making the correlation immediately visible.

Test plan

  • [x] Code compiles successfully
  • [x] All tests pass
  • [ ] Run job-run-aggregator on actual aggregation job
  • [ ] Verify numbers appear on squares
  • [ ] Verify same JobRunID shows same number across different tests
  • [ ] Check visual appearance and readability

🤖 Generated with Claude Code

petr-muller avatar Jan 15 '26 12:01 petr-muller

Pipeline controller notification This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

openshift-ci-robot avatar Jan 15 '26 12:01 openshift-ci-robot

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

openshift-ci[bot] avatar Jan 15 '26 12:01 openshift-ci[bot]

[!IMPORTANT]

Review skipped

Auto reviews are limited based on label configuration.

:no_entry_sign: Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Jan 15 '26 12:01 coderabbitai[bot]

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: petr-muller

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Jan 15 '26 12:01 openshift-ci[bot]

Pure Claude work, I'd like to test this first

petr-muller avatar Jan 15 '26 13:01 petr-muller