fix: keep a write pass going on a cold cache

--rebase-refs or --bump-commit with --offline read the prose of a
profile whose cited files were never cached, and the NotCachedError
ended the whole pass on a traceback. The profile is named, counted
as failed and left as it was, and the pass goes on.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 12:50:24 +01:00
1 parent c2f8daf0f4
commit 2b3551dd22
2 files changed
+27

No files matched your search

+6
View File
@@ -334,6 +334,12 @@ def _read_one(
# The guard already left the file untouched, so keep going.
print(f"{name}: write refused: {exc}", file=sys.stderr)
failed.add(name)
except upstream.UpstreamError as exc:
# A prose read the writes need could not be made (offline with
# a cold cache, a forge down): the profile was put back, and one
# profile must not end the pass for the others.
print(f"{name}: not written: {exc}", file=sys.stderr)
failed.add(name)
# Profiles this run wrote. Their new pins name trees the site's record of