Skip to content

Make weeklies more robust

Emanuele Aina requested to merge wip/em/make-weeklies-more-robust into master

At the moment weeklies are chosen by simply looking at the weekday: if a build happens on Wednesday it is copied.

This has two problems:

  • if no images are generated on Wednesday due to a build failure, then no weekly image is preserved, causing data loss;
  • if multiple builds are done on Wednesday they all get preseved, causing excessive storage consumption.

The new approach is to take the most recent build on Wednesday if available, otherwise the one on Tuesday, then Monday, then Sunday and so on.

Fixes: APERTIS-5336

  • c926058f rotate-images: Make weeklies selection more robust
  • 71433ec5 rotate-images: Use shutil.copytree() to link weeklies
  • 18ccecbb rotate-images: Avoid redundant list unpacking

Merge request reports