runbot/runbot_builder
Christophe Monniez 250d48e266 [IMP] runbot: schedule git gc on repositories
On the actual runbot deployments, the `git gc` command is handled by a
unix cron. From time to time, some repositories get corrupted and we
suspect that some concurrent action may be involved as stated in
documentation [0].

For those reasons, with this commit, the `git gc` will be run by the
runbot clients themselves in order to avoid concurrent operations.

By default, the first gc will occur a few minutes after the start of the
client and the next gc are scheduled a two hours and a few minutes later.

Also, this commit ensures that the git config is written regularly in
case of change.

[0] https://git-scm.com/docs/git-gc
2022-06-20 10:32:10 +02:00
..
builder.py [IMP] runbot: schedule git gc on repositories 2022-06-20 10:32:10 +02:00
dbmover.py [IMP] runbot: runbot 5.0 2020-09-10 13:44:38 +02:00
leader.py [IMP] runbot: schedule git gc on repositories 2022-06-20 10:32:10 +02:00
tester.py [IMP] runbot: create a separate process for cron 2021-12-08 15:06:49 +01:00
tools.py [IMP] runbot: schedule git gc on repositories 2022-06-20 10:32:10 +02:00