Skip to content

Conversation

@JenySadadia
Copy link

@JenySadadia JenySadadia commented Jun 26, 2025

Implement validate builds-history command.

A builds history command to validate if number of builds is consistent for multiple checkouts of the same git tree/branch.

Update `kcidev.libs.git_repo` lib to remove
`commit` from `get_tree_name` function signature
as git URL and branch are enough to get tree name
from.

Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
@JenySadadia JenySadadia force-pushed the validate-builds-history branch 2 times, most recently from 119493a to 8e972c7 Compare June 26, 2025 08:59
@JenySadadia
Copy link
Author

JenySadadia commented Jun 26, 2025

Sample command:

$ kci-dev --settings ./kci-dev.toml validate builds-history --giturl https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git --branch master --origin maestro --days 1
Fetching builds history information...
Creating a stats report...
┌─────────────────┬──────────────────────────────────────────┬───────────┬─────────────┬───────────────┬─────────────────────┐
│ tree/branch     │ Commit                                   │   Maestro │   Dashboard │ Build count   │ Missing build IDs   │
│                 │                                          │    builds │      builds │ comparison    │                     │
├─────────────────┼──────────────────────────────────────────┼───────────┼─────────────┼───────────────┼─────────────────────┤
│ mainline/master │ 92ca6c498a5e6e2083b520b82d318e7e525f3e7c │        59 │          59 │ ✅            │ []                  │
├─────────────────┼──────────────────────────────────────────┼───────────┼─────────────┼───────────────┼─────────────────────┤
│ mainline/master │ c4dce0c094a89b1bc8fde1163342bd6fe29c0370 │        59 │          59 │ ✅            │ []                  │
├─────────────────┼──────────────────────────────────────────┼───────────┼─────────────┼───────────────┼─────────────────────┤
│ mainline/master │ ee88bddf7f2f5d1f1da87dd7bedc734048b70e88 │        41 │          41 │ ✅            │ []                  │
└─────────────────┴──────────────────────────────────────────┴───────────┴─────────────┴───────────────┴─────────────────────┘

@JenySadadia JenySadadia force-pushed the validate-builds-history branch 2 times, most recently from aefcf42 to 7c9b7b7 Compare June 27, 2025 06:07
A builds history command to validate if number
of builds is consistent for multiple checkouts
of the same git tree/branch.

Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
@JenySadadia JenySadadia force-pushed the validate-builds-history branch from 7c9b7b7 to 30faf8c Compare June 27, 2025 06:08
@aliceinwire
Copy link
Member

thanks

@aliceinwire aliceinwire merged commit b90508c into kernelci:main Jun 30, 2025
5 checks passed
@JenySadadia JenySadadia deleted the validate-builds-history branch June 30, 2025 06:49
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