-
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
Commands to retrieve results from the Dashboard API (KCIDB data) #57
Comments
Actually what I was trying to do when I started writing kci-dev was to get data directly out of kcidb instead of getting it from maestro, maybe from grafana API or google cloud API?
we should have one command
That are nice experimental feature for the dashboard but I doubt that log download that can be done by a simple curl on the terminal should be done by adding pressure to the dashboard. but I'm still looking into this issue |
I see that the dashboard solution for connecting to kcidb is by connect directly to google cloud by postgresql database. |
Yes. It abstracts that complex and offers a open public API for pulling the data from. I strongly believe the Dashboard is best positioned to offer such API, they already have various queries optimizations to extract data from KCIDB efficiently. Then, in the coming months as the results command evolve, I'll be working with the Dashboard team to improve some API endpoints for us. |
Feeback received from the community to inform our next steps: #60 (comment) |
As of today,
kci-dev
only interacts with Maestro. It can request test on the Maestro infra and also pull Maestro results back with thekci-dev results
command.However, we also want to enable
kci-dev
to show results from all the data available in KCIDB. We are proposing using the dashboard API for that, as it is already being designed with efficiency in mind and their current interfaces overlap some of the cmdline usecases.step 1: rename
kci-dev results
to kci-dev maestro-results`The current
results
only supports the maestro API. It is quite useful for those also submitting tests to Maestro through thekci-dev
, but users who only wants to check general tests results from Maestro are better off using the infra we are putting around KCIDB.So, the core of this step is to isolate the results command that pulls directly from the Maestro API and open the path for a
results
command that pulls data from the Dashboard API. We can debate the name, but the core of the proposal is the split.Having two backends for the results command (maestro and dashboard) will bring a lot of complexity, so I don't believe we should go there. Instead we should build a clean 'results' command for everyone while still maintaining the current maestro results somewhere else'
step 2: 'kci-dev results` from the Dashboard API
Implement some basic commands to get some initial experiments and users going on. We had requests to:
So, the proposal will bring experimental commands such as:
kci-dev results status -origin=<origin> --tree <tree> --branch <branch>
show quick stats about the resultskci-dev results hardware --origin=<origin> --tree <tree> --branch <branch>
list hardware tested (and possibly its tests results)kci-dev results fetch-log --tree <tree> --branch <branch> --filter-params...
The text was updated successfully, but these errors were encountered: