Skip to content

Conversation

@JenySadadia
Copy link

@JenySadadia JenySadadia commented Jun 30, 2025

The command is used to fetch KCIDB issues associated with builds/boots.
Provide --builds and --boots option for getting builds and boots issues respectively.
--all-checkouts option can be used to fetch KCIDB issues for all the failed and inconclusive builds/boots from all available trees on the dashboard. Issues for a single build can be retrieved by providing --id option.

@JenySadadia JenySadadia force-pushed the detect-build-issues branch 2 times, most recently from 6fc1e7e to d7b9e85 Compare June 30, 2025 08:35
@JenySadadia JenySadadia force-pushed the detect-build-issues branch from d7b9e85 to 9c8f393 Compare July 1, 2025 06:26
@JenySadadia
Copy link
Author

@aliceinwire Please do not merge the PR.
I need to restructure the command for boot extension.

@JenySadadia JenySadadia changed the title Implement detect build-issues command Implement detect issues command Jul 1, 2025
@JenySadadia
Copy link
Author

Sample commands:

$ kci-dev --settings ./kci-dev.toml detect issues --boots --id redhat:1699211849-x86_64-kernel-debug_upt_18
Fetching KCIDB issues...
Creating a stats report...
┌──────────────────────────────────────────────┬────────────────────────────────────────────┐
│ ID                                           │ Issues                                     │
├──────────────────────────────────────────────┼────────────────────────────────────────────┤
│ redhat:1699211849-x86_64-kernel-debug_upt_18 │ ['redhat:issue_3432', 'redhat:issue_3583'] │
└──────────────────────────────────────────────┴────────────────────────────────────────────┘

$ kci-dev --settings ./kci-dev.toml detect issues --builds --id maestro:68628bc95c2cf25042f28cc7
Fetching KCIDB issues...
Creating a stats report...
┌──────────────────────────────────┬──────────────────────────────────────────────────────┐
│ ID                               │ Issues                                               │
├──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ maestro:68628bc95c2cf25042f28cc7 │ ['maestro:ab940af48ff006abcf41620daba4d0fe959116f9'] │
└──────────────────────────────────┴──────────────────────────────────────────────────────┘

$ kci-dev --settings ./kci-dev.toml detect issues --builds --all-checkouts --days 1
Fetching KCIDB issues...
ERROR:root:API returned error: No builds available for this tree/branch/commit
json error: No builds available for this tree/branch/commit
chromiumos/chromeos-5.4: No builds available for this tree/branch/commit
ERROR:root:API returned error: No builds available for this tree/branch/commit
json error: No builds available for this tree/branch/commit
net-next/main: No builds available for this tree/branch/commit
ERROR:root:API returned error: No builds available for this tree/branch/commit
json error: No builds available for this tree/branch/commit
tip/master: No builds available for this tree/branch/commit
Creating a stats report...
┌──────────────────────────────────────────────┬──────────────────────────────────┬──────────────────────────────────────────────────────┐
│ tree/branch                                  │ ID                               │ Issues                                               │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ android/android11-5.4                        │ maestro:68628bc95c2cf25042f28cc7 │ ['maestro:ab940af48ff006abcf41620daba4d0fe959116f9'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ android/android12-5.4                        │ maestro:68628c675c2cf25042f28d53 │ ['maestro:ab940af48ff006abcf41620daba4d0fe959116f9'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ chromiumos/chromeos-5.15                     │ maestro:686376f25c2cf25042f4a70d │ ['maestro:932b9d6fe1cbf5d91000da6cc0ec6012940e9f40'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ chromiumos/chromeos-5.10                     │ maestro:6863769e5c2cf25042f4a6ef │ ['maestro:5dd754a8374e1b44291f37f6a3510603dcbc6348'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ chromiumos/chromeos-5.10                     │ maestro:686376a05c2cf25042f4a6f6 │ ['maestro:5dd754a8374e1b44291f37f6a3510603dcbc6348'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2175c2cf25042f56151 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2055c2cf25042f5613e │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2255c2cf25042f56171 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2135c2cf25042f5614e │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a20c5c2cf25042f56148 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a1f85c2cf25042f5612a │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a1f55c2cf25042f56127 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2215c2cf25042f56166 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a1f15c2cf25042f56120 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2095c2cf25042f56141 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a2105c2cf25042f5614b │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a1ee5c2cf25042f56113 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a1fb5c2cf25042f5612d │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--08-00 │ maestro:6863a1fe5c2cf25042f56130 │ ['maestro:9a8c3cffd22d13630f08549ec5a0dfdde9af7d74'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7625c2cf25042f3440f │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7745c2cf25042f3441b │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b74d5c2cf25042f34366 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7445c2cf25042f3435c │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7855c2cf25042f3442a │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7495c2cf25042f3435f │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b75e5c2cf25042f3437c │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7815c2cf25042f34424 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b76b5c2cf25042f34415 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7665c2cf25042f34412 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7405c2cf25042f34359 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7705c2cf25042f34418 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7515c2cf25042f34369 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-06-30--16-00 │ maestro:6862b7555c2cf25042f34370 │ ['maestro:9a8c3cffd22d13630f08549ec5a0dfdde9af7d74'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632dac5c2cf25042f3cb14 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d6e5c2cf25042f3cabb │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d8d5c2cf25042f3cad4 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d955c2cf25042f3cada │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d725c2cf25042f3cabe │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d915c2cf25042f3cad7 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d765c2cf25042f3cac1 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d7d5c2cf25042f3cac7 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d895c2cf25042f3cad0 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d7a5c2cf25042f3cac4 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632da95c2cf25042f3cb11 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d9c5c2cf25042f3cae1 │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d985c2cf25042f3cadd │ ['maestro:c3d93a9023629d08d2591a6395302317973c68ac'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ netdev-testing/net-next-hw-2025-07-01--00-00 │ maestro:68632d815c2cf25042f3caca │ ['maestro:9a8c3cffd22d13630f08549ec5a0dfdde9af7d74'] │
├──────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────────────────────────────┤
│ stable-rt/v5.10-rt-next                      │ maestro:68633f475c2cf25042f44f82 │ ['maestro:b46d73b45df05158d4ef06c7116444146c7a4ab3'] │
└──────────────────────────────────────────────┴──────────────────────────────────┴──────────────────────────────────────────────────────┘

@JenySadadia JenySadadia force-pushed the detect-build-issues branch 3 times, most recently from d80fd62 to 58c8529 Compare July 1, 2025 13:11
@JenySadadia JenySadadia force-pushed the detect-build-issues branch 2 times, most recently from 5ad68e4 to 7f8fe06 Compare July 2, 2025 06:40
@JenySadadia
Copy link
Author

Enabled support for checking inconclusive builds and boots to get issues along with failed ones.

@JenySadadia JenySadadia requested a review from padovan July 2, 2025 06:43
The command is used to fetch KCIDB issues associated
with builds/boots. `--all-checkouts` option can be used to
fetch KCIDB issues for all the failed and inconclusive builds/boots
from all available trees on the dashboard. Issues for a single
build/boot can be retrieved by providing `--id` option.
Sample command:
```
$ kci-dev --settings ./kci-dev.toml detect issues --boots --id <boot-id>
$ kci-dev --settings ./kci-dev.toml detect issues --builds --all-checkouts --days 1 --origin <origin>
```

Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
@JenySadadia JenySadadia force-pushed the detect-build-issues branch from 7f8fe06 to cd8e1e7 Compare July 2, 2025 10:22
@aliceinwire
Copy link
Member

@aliceinwire Please do not merge the PR. I need to restructure the command for boot extension.

please send as draft, if is a work in progress PR

@JenySadadia
Copy link
Author

@aliceinwire It is ready to be reviewed now.

@aliceinwire aliceinwire merged commit 797cdfa into kernelci:main Jul 3, 2025
5 checks passed
@JenySadadia JenySadadia deleted the detect-build-issues branch July 3, 2025 06:23
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.

3 participants