Repository navigation
Conversation
Add tools/usage-tracker.sh to snapshot how the OQS CI container images are used across the open-quantum-safe org: for each ci-* image it records the last-published date and counts references on org repos' default branches, rendering USAGE-TRACKER.md with up/down/same trends versus the previous snapshot. Add a scheduled GitHub Actions workflow that regenerates the file on the 1st of each month and commits any change to main, plus the initial baseline USAGE-TRACKER.md. Signed-off-by: JP Lomas <jp@theqrl.org>
Signed-off-by: JP Lomas <jp@theqrl.org>
|
Thanks JP! Very helpful. If I understand the first report correctly, this is telling us that we can already prune most of the images, is that right? |
|
Yes, I think so. While not accounting for external consumers, I think this supports considerable pruning. Of course, the actual method of retiring is debatable. A belt-and-braces approach:
and
There is some effort here, and it's probably not for me to say whether this is a better option than a YOLO retirement... |
|
Ah, that's more than you get out of the public Docker Hub APIs... A quick search of GitHub for one of the containers listed in the screenshot (5 years old, 10GB): Clicking through a sample of those, all I tried were personal forks with no activity for ~6 years, so I suspect the recent pulls are stale CI runs 😱 I'm not sure if that pushes more towards "this image is deprecated" warnings or just remove! |
I'm thinking we go with remove, and then if someone complains we can restore. |
This "someone" (complaining) should only be OQS CI jobs, right? We never suggested anyone else should rely on these images, or did we? Thus, I'm all in favour of removing -- actually, even over tracking: The (need for) the latter makes you think there's no real plan behind OQS CI... which probably is the case :-/ So what about this suggestion: Clear out all images (maybe except the most obviously used one, i.e., ubuntu-latest), re-run all OQS CI jobs, see which ones fail and re-generate those that the sub projects then really can make a good case for (keeping). This would also allow substantial pruning of code (and CI runs I also figure as probably unnecessary) in this repo right away. Alternative: we ask an AI to analyze the state of things across (i.e., deduce the need for images from the code in) all repos rather than rely on tracking and manual reading... Done: Docker images used in OQS CI jobs
--> I'd suggest removing anything else. I'd further suggest stopping use of focal and jammy: Time has moved on. All else can be pruned from this repo. A bit more drastic than tracking, but a real remedy to too many CPU cycles and storage space wasted. |

Following on from #78:
Add tools/usage-tracker.sh to snapshot how the OQS CI container images are used across the open-quantum-safe org: for each openquantumsafe image on Docker Hub it records the last-published date and counts references on the open-quantum-safe GitHub org repos' default branches, rendering USAGE-TRACKER.md with up/down/same trends versus the previous snapshot.
Add a scheduled GitHub Actions workflow that regenerates the file on the 1st of each month and commits any change to main, plus the initial baseline USAGE-TRACKER.md.
This should both close #78 and provide some data to support the development of processes to retire stale containers.
Script written in Golang, then ported to bash by Claude (avoids a setup Golang CI step).