Skip to content

Add cleanup commands for hash equivalence

Joshua Watt bitbake-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hashserv: Add remove APIbitbake/lib/hashserv/client.py bitbake/lib/hashserv/server.py bitbake/lib/hashserv/tests.py+66 -00 replies
2/5bitbake-hashclient: Add remove subcommandbitbake/bin/bitbake-hashclient+13 -00 replies
3/5hashserv: Extend get_outhash API to optionally include unihashbitbake/lib/hashserv/client.py bitbake/lib/hashserv/server.py+32 -170 replies
4/5hashserv: Add API to clean unused entriesbitbake/lib/hashserv/client.py bitbake/lib/hashserv/server.py bitbake/lib/hashserv/tests.py+43 -10 replies
5/5bitbake-hashclient: Add clean-unused subcommandbitbake/bin/bitbake-hashclient+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [bitbake-devel][PATCH 0/5] Add cleanup commands for hash equivalence

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(-)
Signature · 1 line
2.34.1