-
Notifications
You must be signed in to change notification settings - Fork 3
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
make 'results' subcommand more useful #102
Conversation
This python code was just an experiment that got merged by mistake through some git add/commit. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
We asked the Dashboard team to make the endpoints easier to access, so they split them up for us. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Make it consistent with the name of the other fetch functions. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Enable users to see test results through kci-dev. The json structure is the same as builds, so this reuses the same function, renaming it to 'cmd_tests'. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Create a filter file to specify the hardware you want to see in the results. It uses a yaml file: --- hardware: - radxa,rock2-square - fsl,imx6q - dell-latitude-3445-7520c-skyrim --- The filter file can be expanded to other characteristics as we evolve the tool. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
It broke during the recent refactor to enable tests results. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Adding info about boots, tests and hardware filter. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
@@ -12,13 +12,14 @@ | |||
|
|||
import click | |||
import requests | |||
import yaml |
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.
This package is already using toml, is possible to use toml also for filtering?
I would prefer keep the dependency at minimum for more easy distribution packaging and dependency requirements
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 don' t really thing toml is a good idea for this kind of filter. YAML is pretty straightforward to write for a our users.
|
||
|
||
def cmd_tests(data, commit, download_logs, status_filter, filter): | ||
filter_data = yaml.safe_load(filter) if filter else None |
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.
this should be converted to toml
@@ -1,53 +0,0 @@ | |||
import click |
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.
Thanks, for removing this
looks good |
Expand support beyond builds for boots and tests results. Also also bring in a hardware filter feature for the boot and tests results plus a few other visualization improvements.