kernelci / kernelci/kcidb

Allow database client to notice schema changes

Open
#402 4 comments 0 reactions 1 assignee View on GitHub

@NikkyXO is already working on this.

Since Mar 23, 2023.

Dominant language
Python
Stars
26
Forks
40
PR merge metrics
No merged PRs in 30d

Description

At the moment the various implementations of database drivers and the database client cache the information about the schema used by the database, and therefore if another client, or something else, changes the schema, or cleanups/initializes the database, the client doesn't notice that. Right now that is a problem mostly for the command-line tool tests. They have both a Client object, and invoke the tools which make the schema modifications at the same time. Therefore they can't notice the changes made by the tools with their Client object. The Cloud Functions have this problem too, and need to be stopped for a database upgrade, but that's generally unavoidable in case of backwards-incompatible changes, as those are non-atomic.

Consider adding an interface to refresh/reinitialize/recreate the client on request, so that any schema changes are picked up without having to explicitly recreate the client from potentially locally-unavailable parameters.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.