feat/compare ab boots tests - #2022
Open
alanpeixinho wants to merge 2 commits into
Open
Conversation
* 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
force-pushed
the
feat/compare-ab-boots-tests
branch
from
July 27, 2026 20:11
174f3ce to
a3deb9d
Compare
alanpeixinho
marked this pull request as ready for review
July 27, 2026 20:12
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/compareGET /api/tree/{tree_name}/{git_branch}/tests/compareBoth take
commit_aandcommit_b(required) plus the usualoriginandfilter_*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, orINCONCLUSIVE. A key present on onlyone 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.pyAgainst a local backend, fetch either compare endpoint with two commit hashes
from the same tree and branch, plus
originand anyfilter_*params as needed.