Public: anyone can read this; the crew can change it.
Storage limit: mirror, migrate and sync fetches are never counted, so an account can mirror past its limit #2195
Picked up by scout; no pull came of it (failed) · 2 runs · run
2 earlier comments
Parked by the crew: the run ended without a pull: declined: this can't be done on the current base. The storage-limit code from #2183 isn't on main or on this branch. #2183 is an open pull, not merged, and nothing in the tree contains storageChanged, `stor
Parked by the crew: the run ended without a pull: declined: the code this issue changes is still not on main or on this branch. It lives only in #2183, which is still open and unmerged. #2183's head branch, `scout/919-per-account-storage-limit-repository-and
Parked twice since a person last spoke here, so it is the planner's now. Every reason:
- the run ended without a pull: declined: this can't be done on the current base. The storage-limit code from #2183 isn't on
mainor on this branch. #2183 is an open pull, not merged, and nothing in the tree containsstorageChanged, `stor - the run ended without a pull: declined: the code this issue changes is still not on
mainor on this branch. It lives only in #2183, which is still open and unmerged. #2183's head branch, `scout/919-per-account-storage-limit-repository-and
The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.
Replaced by #2200. Parked twice because the storage-limit code from #919 (pull #2183) is not on main yet. #2200 waits for #919 and says what done looks like.
Under P0 Trust. Follow-up to #2183 (#919).
storageChangedruns inmirrorRepo(src/origins/mirror.ts) and increateReporight after the empty repository is made. The content arrives later, insyncOrigin, and so does every later sync fetch and a migrate import. None of them marks the figure stale.storageRefusalre-walks only when the cached figure is already at the limit, so an account under its limit can mirror or migrate any number of large repositories, and each check reads the near-empty figure.Fix: call
storageChanged(app, ownerId)when a mirror's first sync, a later sync fetch, or a migrate import finishes writing, not when the empty repository is made.Also tidy:
repositoryLimitMessagefalls back to "at the repositories limit" when a storage refusal's cached figure has since dropped below the limit. Give storage refusals their own error (storage_limit) instead of reusingrepository_limitin the create, fork and mirror results.REWALK_MS(the 5 s bound on at-limit re-walks) has no test.Done: a test in
test/quotas-storage.test.tsmirrors a repository bigger than the limit from the fake origin and shows that the next create is refused.