Integrated: 2168: Don't preserve invalid local clone
Zhao Song
zsong at openjdk.org
Tue Feb 27 14:51:15 UTC 2024
On Mon, 26 Feb 2024 23:08:24 GMT, Zhao Song <zsong at openjdk.org> wrote:
> When skara bot is running, it frequently clones a lot of repos to the local machine and sometimes, the clone would be invalid due to various reasons.
>
> Currently, if the skara bot found an invalid local clone, it will preserve the invalid clone by renaming it. ErikJ said the original authors might want to do some investigations on the invalid clones, so they chose to preserve the invalid clone.
>
> But now, we rarely investigate the clones. And as time goes by, the local machine running skara will have more and more invalid clones and the disk usage will be very high. And skara admin will need to clean the invalid repos periodically.
>
> To fix this issue, we should just clear the invalid repo in HostedRepositoryPool#removeOldClone.
This pull request has now been integrated.
Changeset: f385a0c0
Author: Zhao Song <zsong at openjdk.org>
URL: https://git.openjdk.org/skara/commit/f385a0c09d8a8cad10a1362abfd9d152c1a348f2
Stats: 13 lines in 1 file changed: 0 ins; 10 del; 3 mod
2168: Don't preserve invalid local clone
Reviewed-by: erikj
-------------
PR: https://git.openjdk.org/skara/pull/1615
More information about the skara-dev
mailing list