AC1: assets are only deleted if the corresponding assets from previous builds (or "older" assets) of comparable size have been deleted first
Currently, the "age" of an asset is determined by the age of the most recent job which has been using the asset. This job might not necessarily belong to the latest build. However, should we really change that suitability?
For the record, the names of the concerning assets are:
opensuse-Tumbleweed-aarch64-20201119-textmode@aarch64.qcow2
opensuse-Tumbleweed-aarch64-20201119-Tumbleweed-kde@aarch64.qcow2
opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64.qcow2
while e.g. opensuse-Tumbleweed-aarch64-20201114-textmode@aarch64.qcow2
survived the cleanup.
I moved the logs and changed permissions so one can download them with rsync openqa.opensuse.org:/space/logs/openqa_gru.poo80108.xz …
. The relevant lines for one of the removed assets are:
grep -B 1 -A 1 'opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64.qcow2' openqa_gru.poo80108
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Asset hdd/opensuse-Tumbleweed-aarch64-20201119-xfce@aarch64-uefi-vars.qcow2 (330752) picked into group 3
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Checking whether asset hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64.qcow2 (2252079104) fits into group 3 (461266876)
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Checking whether asset hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64-uefi-vars.qcow2 (330752) fits into group 3 (461266876)
--
}
[2020-11-20T11:00:14.0829 UTC] [info] [pid:984] Removing asset hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64.qcow2 (belonging to job groups: 3)
[2020-11-20T11:00:14.0839 UTC] [info] [pid:984] GRU: removed /var/lib/openqa/share/factory/hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64.qcow2
[2020-11-20T11:00:14.0848 UTC] [info] [pid:984] Removing asset hdd/opensuse-Tumbleweed-aarch64-20201119-textmode@aarch64.qcow2 (belonging to job groups: 3)
And a few seconds before within the same cleanup task the asset from the previous build is indeed picked into a group:
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Checking whether asset hdd/fixed/opensuse-15.2-aarch64-GM-kde@aarch64.qcow2 (2726100992) fits into group 3 (461597628)
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Checking whether asset hdd/opensuse-Tumbleweed-aarch64-20201119-xfce@aarch64-uefi-vars.qcow2 (330752) fits into group 3 (461597628)
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Asset hdd/opensuse-Tumbleweed-aarch64-20201119-xfce@aarch64-uefi-vars.qcow2 (330752) picked into group 3
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Checking whether asset hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64.qcow2 (2252079104) fits into group 3 (461266876)
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Checking whether asset hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64-uefi-vars.qcow2 (330752) fits into group 3 (461266876)
[2020-11-20T11:00:11.0451 UTC] [debug] [pid:984] Asset hdd/opensuse-Tumbleweed-aarch64-20201119-gnome-wayland@aarch64-uefi-vars.qcow2 (330752) picked into group 3
[2020-11-20T11:00:11.0452 UTC] [debug] [pid:984] Checking whether asset hdd/opensuse-Tumbleweed-aarch64-20201119-textmode@aarch64.qcow2 (960102400) fits into group 3 (460936124)
One would have expected that the asset for the current build is considered first. Either this is caused by a bug or there's really just a newer job for the previous build then for the current build.