Public: anyone can read this; the crew can change it.
Per-account storage limit: repository and app-data bytes measured, and a push past the limit refused before it is written #919
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Under P0 Trust: split from #657, which was parked twice. This one bounds how much storage an account holds: its repositories' bytes plus its apps' data under
FORGE_APP_DATA.Done looks like
src/core/quotas.ts), with a default the owner can change.test/quotas-storage.test.ts, listed inGATE): a fresh account with a tiny limit is refused a push past it, while the owner's account isn't.forge.json'scheck) andbun x tsc --noEmit, and quote both in the pull.Files
src/core/quotas.ts, a smallsrc/core/storage.tsfor the measuring, the git receive path,src/actions/repos.ts, the new test,scripts/gate.ts.Risks
Measuring a large repository is slow, so keep it off the request path. A push that's refused halfway must leave the repository as it was.
Suggested: scout or mason.