Open petefoth opened 8 months ago
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.
We should then rsync the directories to a new archive
folder at https://download.lineage.microg.org/
We should thin them out so there is only one build per device - the latest. We should then rsync the directories to a new
archive
folder athttps://download.lineage.microg.org/
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 caprip
and Spacewar
to the archive
(they already have only one build however).
I think you can move
caprip
andSpacewar
to thearchive
(they already have only one build however).
Done! Thanks
When 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
archive
directory on the BS (in case of 'emergencies'). It is kept until the device is promoted again (e.g. 20.0 -> 21.0), when it will be replaced by the final build of the higher branch e.g. 20.0When support is dropped for a device
archive
directory on both the DS and the BSnewlastbuild
markernewlastbuild
markerarchive
directoryarchive
directory, leaving only one build in BS zips
directoryarchive
directoryzips
directoryzips
directory to the archive
directoryCases 1-6 can be handled per device in 'pre-' or post-build.sh
Case 6 must be handled differently
New devices logic
touch newdevice
echo "$builddate" > newdevice
newdevice
and set rsync_delete_args
accordinglyFor a promoted device, on the first build, clean_up.py will leave $DELETE_OLD_ZIPS
builds on the BS:
`$DELETE_OLD_ZIPS
- 1) builds of the current branchWe 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 archive
directory 'just in case'
Next time we build, we want $DELETE_OLD_ZIPS
builds of the current branch on both the BS and the DS. If we remove the old branch build *before* we start the build, (i.e. in pre-build.sh
OR after we call rsync on the previos build) , the we will finish the build with the right number on teh BS, and - after calling rsync with*** the --delete rsync args - on the DS too: the old build will be gone there too.
So, if we do it all in post build .sh
newdevice
file exists, then
newdevice
filearchive
directorydevice_promoted=false new_device=false
current_builds=$(ls -1 "$BRANCH".zip | wc -l) total_builds=$(ls -1 lineage-.zip | wc -l) if [ $current_builds -lt 2 ] ; then if [ $total_builds eq $current_builds] ; then new_device=true else device_promoted=true fi fi
builddate=$(date +%Y%m%d) find . -type f -not -name "$BRANCH"-$builddate*" -print
builds=$()
if test -f lineage-20.0*.zip; then echo "file exists" fi
if branch_num = 20 : then previous_branchnum=18 else previous_branchnum="$((branch_num-1))"
ls lineage-"$branch_num"*.zip | wc -l 1
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.