Skip to content

feat/compare ab boots tests - #2022

Open
alanpeixinho wants to merge 2 commits into
kernelci:mainfrom
profusion:feat/compare-ab-boots-tests
Open

feat/compare ab boots tests#2022
alanpeixinho wants to merge 2 commits into
kernelci:mainfrom
profusion:feat/compare-ab-boots-tests

Conversation

@alanpeixinho

@alanpeixinho alanpeixinho commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What it is

Adds two endpoints that diff boot/test results between any two commits of the
same tree and branch:

  • GET /api/tree/{tree_name}/{git_branch}/boots/compare
  • GET /api/tree/{tree_name}/{git_branch}/tests/compare

Both take commit_a and commit_b (required) plus the usual origin and
filter_* query params, and return only the rows whose status changed:

[{ "path": "boot", "config_name": "defconfig", "platform": "qemu",
   "status_a": "PASS", "status_b": "FAIL" }]

Statuses are grouped as PASS, FAIL, or INCONCLUSIVE. A key present on only
one side comes back with the missing side as null. Unchanged rows are omitted.

How to test

cd backend
poetry run pytest kernelCI_app/tests/unitTests/helpers/treeCompare_test.py \
                  kernelCI_app/tests/unitTests/views/treeDetailsCompareView_test.py

Against a local backend, fetch either compare endpoint with two commit hashes
from the same tree and branch, plus origin and any filter_* params as needed.

* Add filtered comparison queries for two commits
* Group results by path, configuration, and platform
* Add response models, routes, and unit tests

Closes kernelci#2021

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho
alanpeixinho force-pushed the feat/compare-ab-boots-tests branch from 174f3ce to a3deb9d Compare July 27, 2026 20:11
@alanpeixinho
alanpeixinho marked this pull request as ready for review July 27, 2026 20:12
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
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.

1 participant