Repository navigation
fix: retry soon when GitHub's unreachable, and tidy up the allowed hosts - #22
Merged
Merged
Conversation
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.
Category
Bugfix (one that bites after a reboot, plus three small ones)
Overview
If Patchcall starts before DNS does, which is easy to end up with when Pi-hole or AdGuard runs on the same box, the first check can't reach GitHub and the next one's six hours away. Every app reads "Source unavailable" (or "Stale data") until then. Only Docker being out of reach got the one-minute retry, so a fetch that fails on the network gets it too now, and the page catches up a minute after the network does. A 404 or the rate limit still waits for the usual interval, so a bad override can't eat the 60 an hour.
The small ones:
PATCHCALL_ALLOWED_HOSTSshrugs off spaces and ports.a.lan, b.lanused to turnb.lanaway, andnas.lan:7282could never match, with a 403 telling you to add what was already there/api/statussays"pending": truewhile the first check is running, and"apps": []rather thannull, so a dashboard doesn't read it as nothing runningbugsink/bugsinkand notbugsink-bugsink-1Issue Number
N/A
Additional Info
If one repo failed on the network every time while the rest answered, it'd check every minute until the rate limit stepped in. I couldn't find a way to get there, since every request goes to the same host, but it's the bit I'm least sure of.