Skip to content
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

Merged
merged 9 commits into from
Jan 23, 2025

Conversation

padovan
Copy link
Contributor

@padovan padovan commented Jan 21, 2025

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.

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>
@aliceinwire aliceinwire added this to the v0.1.3 milestone Jan 21, 2025
@@ -12,13 +12,14 @@

import click
import requests
import yaml
Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

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
Copy link
Member

@aliceinwire aliceinwire Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, for removing this

@aliceinwire
Copy link
Member

looks good

@aliceinwire aliceinwire merged commit 7ebad7c into kernelci:main Jan 23, 2025
2 checks passed
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.

2 participants