Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions docs/results.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@ kci-dev results summary --giturl 'https://git.kernel.org/pub/scm/linux/kernel/gi

Output:
```
+--------------+-------------------------------------+----------+-----------+-----------------+
| Commit | Name | Builds | Boots | Tests |
+==============+=====================================+==========+===========+=================+
| c4dce0c094a8 | spi-fix-v6.16-rc3-58-gc4dce0c094a89 | 47/1/0 | 100/0/47 | 8853/1677/3016 |
+--------------+-------------------------------------+----------+-----------+-----------------+
| 92ca6c498a5e | v6.16-rc3-57-g92ca6c498a5e6 | 48/0/0 | 130/1/53 | 8856/1456/3111 |
+--------------+-------------------------------------+----------+-----------+-----------------+
+------------------------------------------+-----------+----------+-----------+-----------------+
| Commit | Tags | Builds | Boots | Tests |
+==========================================+===========+==========+===========+=================+
| c4dce0c094a8f1d2b3e4f5a6b7c8d9e0f1a2b3c4 | v6.16-rc3 | 47/1/0 | 100/0/47 | 8853/1677/3016 |
+------------------------------------------+-----------+----------+-----------+-----------------+
| 92ca6c498a5e6f1d2b3e4f5a6b7c8d9e0f1a2b3c4 | | 48/0/0 | 130/1/53 | 8856/1456/3111 |
+------------------------------------------+-----------+----------+-----------+-----------------+
```

The format shows pass/fail/inconclusive counts with color coding (green for pass, red for fail, yellow for inconclusive).
The format shows:
- Full commit hashes for precise identification
- Git tags for tagged commits (empty for untagged commits)
- Pass/fail/inconclusive counts with color coding (green for pass, red for fail, yellow for inconclusive)

### <a id="result-builds"></a>builds

Expand Down
10 changes: 7 additions & 3 deletions kcidev/subcommands/results/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,14 @@ def cmd_commits_history(data, use_json):
+ tests.get("null", 0)
)

# Get tags or fallback to empty string if no tags
tags = commit.get("git_commit_tags", [])
tags_str = ", ".join(tags) if tags else ""

table_data.append(
[
commit.get("git_commit_hash", "unknown")[:12],
commit.get("git_commit_name", "unknown"),
commit.get("git_commit_hash", "unknown"),
tags_str,
format_colored_summary(
builds_pass, builds_fail, builds_inconclusive
),
Expand All @@ -579,7 +583,7 @@ def cmd_commits_history(data, use_json):
]
)

headers = ["Commit", "Name", "Builds", "Boots", "Tests"]
headers = ["Commit", "Tags", "Builds", "Boots", "Tests"]
# Use click.secho to preserve colors in the table
import click

Expand Down