-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build retention strategy #573
Comments
This seems very good to me. :) |
We have a number of old builds available on the build server., for devices which are no longer supported by LineagOS - see below There are two or three builds per device. We should thin them out so there is only one build per device - the latest. Builds
|
This has now been done :) We still have 92GB of disk space available,of the total 590G. This should easily be enough room for the remaining 18.1 builds still to be completed this month |
I think you can move |
Done! Thanks |
NotesBuild RetentionStrategyWhen a device is 'new', only one build is available, on both Download server (DS) and Build server (BS) While a device is supported by LOS, two builds will available on DS
When support is dropped for a device
Use cases to handle when building
Cases 1-6 can be handled per device in 'pre-' or Case 6 must be handled differently New devices logic
Promoted Devices logicFor a promoted device, on the first build, clean_up.py will leave
We want to leave all of them available on the DS, so do nothing before we call rsync. We also want the final build of the old branch in the Next time we build, we want So, if we do it all in post build .sh
device_promoted=false there must be at least one ls "$BRANCH_NAME"*.zip file, becasue we've just built itso how many are therecurrent_builds=$(ls -1 "$BRANCH".zip | wc -l) files not matching a patternfind . -type f -not -name "*.html"builddate=$(date +%Y%m%d) if there's only one, how many builds in total?builds=$()
if test -f lineage-20.0*.zip; then
if branch_num = 20 : then ls lineage-"$branch_num"*.zip | wc -l |
monet
which was dropped by LOS before a 20.1 build was made - are still present on the build server, even though they have been removed from the download server.The text was updated successfully, but these errors were encountered: