mbox series

[bitbake-devel,0/5] Add cleanup commands for hash equivalence

Message ID 20231006153645.1609760-1-JPEWhacker@gmail.com
Headers show
Series Add cleanup commands for hash equivalence | expand

Message

Joshua Watt Oct. 6, 2023, 3:36 p.m. UTC
Adds two new APIs and corresponding `bitbake-hashclient` commands for
the hash equivalence server. 

The first command is `remove` (`bitbake-hashclient remove`) and it can
be used to remove database entries that match the specified criteria. It
can be useful to remove entries in the in database that are know to be
no longer valid.

The second command is `clean-unused` (`bitbake-hashclient clean-unused`)
which will remove any database entries that are older than the specified
age and are not referenced by a valid unihash.

[YOCTO #15064]

Joshua Watt (5):
  hashserv: Add remove API
  bitbake-hashclient: Add remove subcommand
  hashserv: Extend get_outhash API to optionally include unihash
  hashserv: Add API to clean unused entries
  bitbake-hashclient: Add clean-unused subcommand

 bitbake/bin/bitbake-hashclient | 22 ++++++++
 bitbake/lib/hashserv/client.py | 14 ++++-
 bitbake/lib/hashserv/server.py | 93 ++++++++++++++++++++++++++++------
 bitbake/lib/hashserv/tests.py  | 52 +++++++++++++++++++
 4 files changed, 163 insertions(+), 18 deletions(-)