= Koji Archive SOP

This SOP documents how to archive Fedora EOL'd builds from the DEFAULT
volume to archived volume.

Before archiving the builds, identify if any of the EOL'd release builds
are still being used in the current releases. For example. to test if
f28 builds are still being using in f32, use:

....
$ koji list-tagged f32 | grep fc28
....

Tag all these builds to koji's _do-not-archive-yet_ tag, so that they wont
be archived. To do that, first add the packages to the
_do-not-archive-tag_
....
$ koji add-pkg do-not-archive-yet --owner <username> pkg1 pkg2 ...
....

Then tags the builds to _do-not-archive-yet_ tag

....
$ koji tag-build do-not-archive-yet build1 build2 ...
....

Then update the archive policy which is available in releng repo
(https://pagure.io/releng/blob/main/f/koji-archive-policy)

Run the following from _compose-x86-01.iad2.fedoraproject.org_

....
$ cd $ wget https://pagure.io/releng/raw/master/f/koji-archive-policy
$ git clone https://pagure.io/koji-tools/
$ cd koji-tools
$ ./koji-change-volumes -p compose_koji -v ~/archive-policy
....

In any case, if you need to move a build back to DEFAULT volume
....
$ koji add-pkg do-not-archive-yet --owner <username> pkg1
$ koji tag-build do-not-archive-yet build1
$ koji set-build-volume DEFAULT <n-v-r>
....
