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.
kairosci
marked this pull request as ready for review
November 28, 2026 11:53
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.