Commit Graph

5 Commits

Author SHA1 Message Date
Thilo Fromm
ce35091455 garbage_collect_releases.sh: more readable variables in AWK script
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2024-02-14 18:30:12 +01:00
Thilo Fromm
bd3d4c19e2
garbage_collect: no quotes for subshell exec assignments
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
2024-02-14 14:58:02 +01:00
Thilo Fromm
88857b496a garbage_collect_releases: fix silent fail, keep all relevant SDKs
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2024-02-12 17:51:32 +01:00
Thilo Fromm
9359a83299
Apply suggestions from code review
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
2024-02-12 16:07:40 +01:00
Thilo Fromm
2d5c17cb3c ci-automation/garbage_collect: add cached release artifacts
This change extends the garbage collector for the build cache server to
remove cached release artifacts. Release artifacts are copied to the
official mirrors and do not need to remain on the build cache after a
release was published.

By default, the 10 latest releases of all channels (including LTS and
previous LTS) are kept.

Also excluded from garbage collection are:
 - Emerging new major releases (i.e. major number larger than the
   latest Alpha release)
 - channel progressions (major number exists in the lists of releases to
   keep but minor is bigger than any release)
 - patch releases (major and minor exist in list of releases to keep but
   patch level is newer than in any release)
 - SDKs (tarballs and containers) of any release in the list of releases
   to keep; i.e. the SDK in <MAJOR>.0.0 for any release to keep.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2024-01-30 14:59:00 +01:00