Like all the other kci_* tools in kernelci-core, kci_data
is
using a YAML configuration file to know about databases where to
send KernelCI data. This is typically going to be
db-configs.yaml
, with entries such as this:
db_configs:
api.staging.kernelci.org:
type: kernelci-backend
url: https://api.staging.kernelci.org/
The type
(or type
) is used to determine the code in
kernelci-core that will be handling the communication with the
database. Typically, that's going to be kernelci-backend
initially and ideally kcidb
if possible. Others may be added
later, with the aim to not have to change the user interface.
To send data on the command line, users would need to at least choose a database and provide the data. For example:
kci_data submit --config=api.staging.kernelci.org results.json
Other sub-commands could be added, to read back some data or enumerate the available database configurations.
Initially, API tokens would need to be passed via command line arguments or the environment. This is fine for most pipeline systems like Jenkins, but having a configuration file would help for manual usage.