public inbox for kernelci@lists.linux.dev
 help / color / mirror / Atom feed
From: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
To: Bjorn Andersson <andersson@kernel.org>, kernelci@lists.linux.dev
Subject: Re: Kcidb access request
Date: Thu, 8 Aug 2024 20:56:12 +0300	[thread overview]
Message-ID: <3351c08b-7594-43ea-80f1-e0f35271115f@redhat.com> (raw)
In-Reply-To: <66qpsiapmqcpnbajfi34oxympjqk7svtygkdtdcby3yirijbvp@pesxnvj6qhhb>

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]

Hi Bjorn,

On 8/7/24 6:49 PM, Bjorn Andersson wrote:
> I'm using api.kernelci.org for reporting test results from my kernelci
> lab, as well as scraping test reports for Qualcomm boards for local
> aggregation and presentation.
> 
> As part of the transition to the new KernelCI APIs, I would like access
> to KCIDB.
> 
> 
> My (custom) test reporting tool today uses the LAVA callback interface,
> and thereby follows this schema for the report, groups and cases. I can
> continue to follow this schema, or change the schema as you prefer.
> Please let me know.

Sorry for the delay with the answer!

Sure, you can get the access to the KCIDB database.

However, we don't have APIs, just the direct access to PostgreSQL, which keeps
six months of data. See the attached (abbreviated) schema dump. It largely
mirrors the JSON I/O schema, which you can see here:

https://github.com/kernelci/kcidb-io/blob/main/kcidb_io/schema/v04_03.py

Here's some more human-oriented introductory docs:

https://kernelci.org/docs/kcidb/submitter_guide/

Note, that at the moment we have no way to query for "Qualcomm boards", but we
have a schema change proposal being discussed to address that.

Also, when fetching your data you will need to be considerate of traffic and load.

You can explore the data on the dashboard (to be improved soon):
https://kcidb.kernelci.org/

If none of the above stops you, I can give you credentials and permissions for
querying.

Nick

[-- Attachment #2: abbreviated_schema.sql --]
[-- Type: application/sql, Size: 5715 bytes --]

  reply	other threads:[~2024-08-08 17:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 15:49 Kcidb access request Bjorn Andersson
2024-08-08 17:56 ` Nikolai Kondrashov [this message]
2024-08-09  9:54   ` Gustavo Padovan
2024-08-26 16:01   ` Bjorn Andersson
2024-08-27  9:42     ` Nikolai Kondrashov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3351c08b-7594-43ea-80f1-e0f35271115f@redhat.com \
    --to=nikolai.kondrashov@redhat.com \
    --cc=andersson@kernel.org \
    --cc=kernelci@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox