jobrunaggregator: add numerical identifiers to job run squares
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
dicttemplate 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
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
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
[!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.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Comment @coderabbitai help to get the list of available commands and usage tips.
[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
- ~~pkg/jobrunaggregator/OWNERS~~ [petr-muller]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Pure Claude work, I'd like to test this first