forked from fedora-copr/copr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: fedora-copr#3188
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. _maintaining_distgit: | ||
|
||
DistGit VM maintenance | ||
====================== | ||
|
||
The Copr DistGit machine serves as a "proxy" middle-man between the actual source | ||
code location and our farm of builders. See :ref:`architecture` for more | ||
info. There's no data-consistency promise regarding Copr's DistGit data; | ||
our primary goal is to ensure effective Copr Builds. Consequently, we | ||
only strive to keep the "proxy" sources for the **existing packages** | ||
within still **existing Copr projects**. | ||
|
||
Cleaning up DistGit | ||
------------------- | ||
|
||
Copr is a place where CI is done frequently, leading to the generation of | ||
a significant amount of "source" data. Often, each CI build produces a | ||
different tarball that is uploaded and stored on the Copr DistGit machine. | ||
Copr projects are also often short-lived (e.g., Packit). This | ||
necessitates Copr to conduct regular DistGit cleanup to prevent the source | ||
data consumption from quickly exploding. | ||
|
||
Currently, we have two house-cleaning procedures for DistGit: | ||
|
||
1. `Cleaning up sources for outdated builds <https://github.com/fedora-copr/copr/blob/main/dist-git/run/dist-git-clear-tarballs.py>`_ | ||
|
||
2. `Cleaning up old repositories and sources for deleted Copr projects <https://github.com/fedora-copr/copr/blob/main/dist-git/run/prune-dist-git.py>`_ | ||
|
||
Both of these procedures are not enabled "by default" on every Copr | ||
deployment. However, Fedora Copr has automated these scripts using cron. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters