Commit Graph

21 Commits

Author SHA1 Message Date
Harald Sitter
24eda82e5f consume caibx file via sysupdate
this is a bit dangerous but necessary for more efficient delta updates.

we must be very careful to avoid a bug in systemd caused by putting
foo.erofs.caibx into the sha256sums. so instead we have foo.caibx that
gets installed with the correct name by sysupdate

we still have the foo.erofs.caibx on the server for backwards compat,
but continue to not put it into the sha256sums
2025-09-17 14:17:24 +02:00
Harald Sitter
4432e167df protect golden images properly
this was using the wrong key and resulted in the slice being empty.

also guard against this by using UnmarshalStrict
2025-09-14 19:04:25 +02:00
Harald Sitter
85cf5f0664 vacuum: load releases from the root path
otherwise we are not cleaning up raw images

unfortunately this also means we'll screw over the sha256sums in the
root a bit. not easily dealt with. needs some refactoring of how the v2
stuff works
2025-09-13 23:01:03 +02:00
Harald Sitter
e4e5d29351 vacuum: load existing shas when possible
should avoid most problems with the mirrorbits not having the sha yet
2025-08-21 01:53:04 +02:00
Harald Sitter
d7e6dd7b26 vacuum: use correct prefix 2025-08-20 22:56:00 +02:00
Harald Sitter
d6037cb5ac workaround mirror problems 2025-08-20 22:11:41 +02:00
Harald Sitter
52ab0999d3 vacuum: revisit protection
keep them out of the delete list as well
2025-08-20 20:13:15 +02:00
Harald Sitter
bf1eb4c839 update protection logic
the previous code would end up dropping the protected versions from the
shasums, we'll want to keep them there as well.

to achieve this we now collect all protected releases and then append
them to the keep list once the keep list has been pruned. seems the most
reliable way of doing this
2025-08-20 19:50:18 +02:00
Harald Sitter
2da7df7453 comment++ 2025-08-20 16:59:09 +02:00
Harald Sitter
cd6a5852d2 vacuum: don't trip over dirs 2025-08-20 16:59:04 +02:00
Harald Sitter
5ed5b5d752 yet more caibx hotfixing 2025-08-17 01:30:40 +02:00
Harald Sitter
ecf324541d vacuum: sort artifacts so they have consistent order
(and notably so erofs comes before erofs.caibx, preventing the latter
to match the match rule for the former)
2025-08-16 16:36:01 +02:00
Harald Sitter
bdfe363022 vacuum: fill the config object 2024-11-07 18:10:22 +01:00
Harald Sitter
842867d086 vacuum: add a config system
the remote location must now contain a vacuum.yaml file which encodes
gold images and tombstone images (to keep forever) based on their
version number
2024-11-07 17:17:10 +01:00
Harald Sitter
092bd8107c vacuum: refactor release loading into function
makes main a bit easier on the eyes
2024-11-07 17:17:08 +01:00
Harald Sitter
c850a863e9 vacuum: generate sha256sums from server data
that way we don't have extranous entries in there
2024-11-05 00:19:32 +01:00
Harald Sitter
6afc5dde36 vacuum: close connection
not that it matters much since this process doesn't stick around
2024-11-05 00:18:35 +01:00
Harald Sitter
5da433f90b refine comment a tad 2024-11-03 19:30:05 +01:00
Harald Sitter
3012a6714a more host changes to use the origin host 2024-11-03 19:01:20 +01:00
Lasath Fernando
b6e67c1336 Sort toKeep in reverse order 2024-10-14 01:28:59 +00:00
Harald Sitter
2a26e15594 move uploads to files.kde.org
this requires that we vacuum uploads automatically so there's a helper
for that now. hopefully it works :D
2024-10-09 17:22:38 +02:00