Skip to content

feat: poll lore for mailing-list updates - #12

Open
kairosci wants to merge 5 commits into
gitgitgadget:mainfrom
kairosci:codex/low-latency-mail-mirroring
Open

kairosci wants to merge 5 commits into
gitgitgadget:mainfrom
kairosci:codex/low-latency-mail-mirroring

Conversation

@kairosci

@kairosci kairosci commented Nov 28, 2026 •

Copy link
Copy Markdown

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.

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.
@kairosci
kairosci marked this pull request as ready for review November 28, 2026 11:53
@kairosci

Copy link
Copy Markdown
Author

cc @webstech @dscho

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant