A registered fork that the fetching account cannot read does not stop the fetch of the other forks, the subscribed repositories or the workspace. fetch.FetchForks records the failure per fork in Stats.Errors and continues. The fault is in how each client reports that failure.
TUI: handleFetchCompleted shows Fetch complete (N errors) with no timeout when Stats.Errors is not empty, and it hides the summary of the new items. Each auto-fetch adds one warning line per unreadable fork to the log and increases the error count. With a short auto-fetch interval the log fills quickly, and the fetch looks like a failure although the data arrived.
CLI: gitsocial fetch prints only the item count of the forks and drops Stats.Errors of the fork pass, in the text output and in the JSON output. The user gets no name of the fork that failed.
RPC: the fetch method discards the fork stats.
Cost: an unreadable fork with open pull request heads is fetched two times per pass, because fetchFork tries the data fetch again after a failure of the fetch with head branches. An access error fails both times.
Scale: read access is per account, so in a repository with many forks each user can have a different set of unreadable forks. The number of errors per fetch, the log lines and the wasted fetches increase with that set, and no user can remove the forks for the others (see #commit:087a86bc06a6@gitmsg/pm).
Found by reading the code, not by a test with an unreadable fork.
Options:
1. Reporting only. The TUI shows the summary together with the error count and writes a repeated error of the same repository to the log one time. The CLI prints the fork errors in its list of failed repositories, and the JSON output and RPC carry them.
2. Local state per fork. A fetch records the access failure of a fork, skips that fork for a period, and the fork list shows it as unreachable. The state is local to the clone, because access is per account. This changes what the cache stores, so it needs a design note.
Do not try the data fetch again when the first failure is an access error.
A test: three registered forks, one of which refuses the fetch. The items of the other two are in the cache, Stats.Errors has one entry with the name of the fork, and each client shows the item count and that one error.