-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create endpoint that return tree details #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
84b80af
to
48f6dd8
Compare
48f6dd8
to
527de46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure test_status is working properly, it returns 0 for all of them when I tested it for http://localhost:8000/api/tree/189ee9735a4b2e8095b1a6c088ebc8e133872471 for example. When I search only localhost:8000/api/tree
it gets some tests for this commit hash. Here I'm using kcidb to test. It may be a good idea to change it to default
backend/kernelCI_app/serializers.py
Outdated
start_time = serializers.CharField() | ||
duration = serializers.CharField() | ||
compiler = serializers.CharField() | ||
test_status = serializers.CharField() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will also need the link of logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and config url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can test if there is a test.status
for a specific build by runing:
SELECT tests.status
FROM
tests
WHERE tests.build_id = <build_id>
You'll notice that most of the build you test there a test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also may have to get some kernel information from the misc field, the information that will be shown in the accordion content
81c10e4
to
2410e1f
Compare
2410e1f
to
06b8991
Compare
create an
tree/<str:commit_hash>
endpoint that returns all builds and a summaryTo test it you can:
poetry python manage.py runserver
http://localhost:8000/api/tree/22a40d14b572deb80c0648557f4bd502d7e83826