public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever@oracle.com>
To: Luis Chamberlain <mcgrof@kernel.org>, cel@kernel.org
Cc: kdevops@lists.linux.dev
Subject: Re: [PATCH v1 3/4] mirror: Reduce frequency of retrieving results archive
Date: Tue, 11 Mar 2025 09:38:40 -0400	[thread overview]
Message-ID: <a571036d-eec8-43c6-bcec-32974ce1b250@oracle.com> (raw)
In-Reply-To: <Z8-walJuwuaws92E@bombadil.infradead.org>

On 3/10/25 11:39 PM, Luis Chamberlain wrote:
> On Mon, Mar 10, 2025 at 02:32:07PM -0400, cel@kernel.org wrote:
>> From: Chuck Lever <chuck.lever@oracle.com>
>>
>> Each run takes longer than 10 seconds, which generates a "git
>> process is still running" warning in the system journal every
>> minute.
>>
>> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
>> ---
>>  playbooks/roles/linux-mirror/templates/mirrors.yaml.j2 | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/playbooks/roles/linux-mirror/templates/mirrors.yaml.j2 b/playbooks/roles/linux-mirror/templates/mirrors.yaml.j2
>> index dabbadcc6528..45e79349a3d4 100644
>> --- a/playbooks/roles/linux-mirror/templates/mirrors.yaml.j2
>> +++ b/playbooks/roles/linux-mirror/templates/mirrors.yaml.j2
>> @@ -36,7 +36,7 @@ mirrors:
>>    - short_name: "kdevops-results-archive"
>>      url: "{{ defaults_kdevops_results_archive_git }}"
>>      target: "kdevops-results-archive.git"
>> -    refresh: "10s"
>> +    refresh: "10m"
> 
> We don't poke kernel.org here ever, this is a github tree.

Hi Luis, thanks for the review.

The issue I see is local, on the mirror. This one's not an issue about
unnecessary workload on the remote repo.

Basically the poll for new commits takes a while on my system, so every
minute I get a verbose system journal warning that there is a git
process left over from the last timer run. The log messages are noise,
and because they come out so often, they will fill up the controller's
root filesystem.

Also, from a code legibility standpoint, "10s" looks like an anomaly,
a typo. IMO it could be clearer if it were documented (with what you
said here, below) in a brief comment. Maybe it is already and I missed
it.

On my system, systemd timer jobs don't seem to run more often than once
a minute anyway... 10s might be impossibly short.

I'm open to finding another way to address this, and I am OK not
pushing this one until we agree on a consensus solution.


> The question here is how often we want this updated to make CI updates
> take effect. It is why I went so low here. I think such a low value only
> makes sense for mirrors which won't need to leverage leverage
> kdevops-results-archive to push updates to that tree, as otherwise their
> tree will be out of sync. So, I think a bool to lower this default might
> be nice, disabled by default, and a new defconfig for mirror-ci might be
> useful which has that bool enabled. This way folks who wish to help with
> CI infra and use kdevops-results-archive to push results there, can just
> have their mirror setup use:
> 
> make defconfig-mirror-ci
> 
> Without this we risk that a CI run, once it has test results to upload,
> won't be able to push the results. Because it will git fetch prior, but
> its using the mirror.

Perhaps another choice would be to not mirror this repo at all, since it
is also the target of local updates.


-- 
Chuck Lever

  reply	other threads:[~2025-03-11 13:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-10 18:32 [PATCH v1 0/4] Fixes for git mirroring on Fedora cel
2025-03-10 18:32 ` [PATCH v1 1/4] linux-mirror: Fix installation on Fedora systems cel
2025-03-10 18:32 ` [PATCH v1 2/4] linux-mirror: Ensure git-daemon runs as the Ansible user cel
2025-03-10 18:32 ` [PATCH v1 3/4] mirror: Reduce frequency of retrieving results archive cel
2025-03-11  3:39   ` Luis Chamberlain
2025-03-11 13:38     ` Chuck Lever [this message]
2025-03-11 18:01       ` Chuck Lever
2025-03-12  5:12         ` Luis Chamberlain
2025-03-12  5:11       ` Luis Chamberlain
2025-03-10 18:32 ` [PATCH v1 4/4] linux-mirror: Add a mirror for linux-stable-rc cel
2025-03-11  3:40 ` [PATCH v1 0/4] Fixes for git mirroring on Fedora Luis Chamberlain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a571036d-eec8-43c6-bcec-32974ce1b250@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=cel@kernel.org \
    --cc=kdevops@lists.linux.dev \
    --cc=mcgrof@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox