Skip to content

Storage

What steps leave is kept in the private R2 bucket fiber-artifacts, bound as ARTIFACTS to both Workers, and counted before it is written.

Setting, on fiber-engine Default
FIBER_MAX_ARTIFACTS_PER_STEP 50 files an attempt
FIBER_MAX_ARTIFACT_BYTES_PER_STEP 536870912 an attempt
FIBER_MAX_STORED_BYTES_PER_PROJECT 21474836480
FIBER_MAX_STORED_BYTES_PER_CREATOR 107374182400, over all the projects someone created
FIBER_MAX_STORED_FILES_PER_PROJECT 100000
FIBER_MAX_STORED_FILES_PER_CREATOR 300000

Runs of untrusted code, such as a fork’s pull request, may have a fifth of each limit of a project and a creator, and where that is under 256 KiB they store no log. 0 is no limit. A value that is not a whole number is as if it were not set. A file is at most 64 MiB.

Logs count too, against the same bytes: a step’s log asks for 256 KiB at a time and gives back what it did not use. At a limit an upload is refused, or a log stops and says so, and the step goes on.

Setting, on fiber-engine Default
FIBER_RETENTION_DAYS 30. 0 is never
FIBER_RETENTION_KEEP_RUNS 20 of each pipeline, whatever their age

A value that is not a whole number erases nothing, and is logged. Once an hour a run that ended longer ago than that, and is not among the newest of its pipeline, is erased with its logs and artifacts. One is kept while a re-run of it is. An upload that stopped is erased from a day later. One may take 30 minutes. Deleting a project erases all it stored.