Repository navigation
Conversation
The mirror workflow needs to know whether lore has published a newer tip before it can be triggered on demand. Compare the refs advertised by lore.kernel.org and the configured GitHub mirror so a caller can make that decision without fetching the mail archive.
The GitHub Actions mirror schedule is best-effort and can start much later than its five-minute interval. Check lore and the GitHub mirror once a minute, and dispatch the existing sync workflow only when their refs differ. Skip a dispatch while a sync is queued or running so repeated timer ticks do not create redundant work.
Describe the timer, its one-minute polling interval, and the existing scheduled fallback so operators know how mirror updates are triggered and what still affects delivery time.
The source and mirror may be configured with or without trailing slashes, and neither ref should be read over an unencrypted connection. Normalize their URLs before requesting the Git protocol advertisement, and isolate its packet-line parser so malformed or missing refs fail clearly.
The timer must avoid unnecessary GitHub API calls when the mirror is current and avoid duplicate sync runs while work is pending. Cover ref parsing and comparison, transport failures, and the dispatch decisions so these paths remain reviewable as the polling behavior changes.
dscho
left a comment
There was a problem hiding this comment.
This is an interesting idea. I'm just slightly worried that we might become part of the problem. In this context, the problem is that lore.kernel.org is already pestered by AI enough. They're suffering. So I think that we need to be mindful of that and reduce the frequency.
Don't get me wrong, I really would love for the mirroring to be more consistent. And I noticed a long time ago that this scheduled task is not as reliable as the Azure pipeline was.
And I am also quite intrigued by the JavaScript only implementation of a very quick ref check that uses the Git protocol. This is quite clever. Of course, the implementation is quite verbose still, which makes me suspect that it was basically written by AI. I know that AI is able, and therefore eager, to write lots of code. This is a tendency that must be reigned in by the human operator.
So I would like to encourage you to try to reduce the code in this PR, to aim for that elusive quality that us human beings seem to grasp so much better than AI: elegance.
We don't want this code to be only readable by AI. We want this to be readable and reviewable by human beings who have limited resources. Limited resources are good in this context, though! They lead to better, more succinct, concrete code. Maybe you can work with your AI to reduce the code to be more precise, more to the point?
|
@kairosci Please do note that these reviews take an immense amount of time and I cannot afford doing this very often. To help me with that, could you please pre-review, manually, your next iteration before asking me to review? I mean, you, not your AI. |
On my PR #2509, Junio's email was accepted by the mailing-list server at 2026-11-28 04:19:13 UTC and appeared as a GitHub comment at 08:03:55 UTC: 3h44m42s later. The mirror workflow started at 00:14:17 and 08:02:33 UTC, 7h48m16s apart, despite its five-minute schedule. This matches the observed delay.
Add an Azure timer to compare lore and mirror refs every minute, dispatching the existing sync workflow only when they differ. Keep the scheduled workflow as a fallback. This targets one-minute polling; Azure, lore and GitHub Actions can still add delay.