You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2d71da5
Browse filesBrowse the repository at this point in the historyBrowse files
Make the forge's input limits settings, raising the artifact ones []
The artifact entry, central directory, diff, and sparse-checkout pattern
caps are now settings (ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES,
ACKNOWLEDG_FORGE_MAX_ARTIFACT_DIRECTORY_BYTES,
ACKNOWLEDG_FORGE_MAX_DIFF_BYTES, and ACKNOWLEDG_FORGE_MAX_SPARSE_PATTERNS),
and their errors name the setting to raise. The artifact defaults rise to
500,000 entries and 64 MiB, and the diff's to 64 MiB.
|`ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES`|`500000`| Most entries in an artifact (including inner tarballs'). CI's test results reach about 170,000 |
116
+
|`ACKNOWLEDG_FORGE_MAX_ARTIFACT_DIRECTORY_BYTES`| 64 MiB | Largest artifact zip central directory, which is read into memory whole (about 106 bytes per entry in CI's test results) |
117
+
|`ACKNOWLEDG_FORGE_MAX_DIFF_BYTES`| 64 MiB | Largest diff of a pull request's `tests/`, which is held in memory and copied more than once: raising it may need a higher `mem_limit` for the service ([`compose.yaml`](compose.yaml)) |
118
+
|`ACKNOWLEDG_FORGE_MAX_SPARSE_PATTERNS`|`20000`| Most sparse-checkout patterns in a review's worktree (up to two per test). Checking out takes time proportional to patterns times paths |
115
119
|`ACKNOWLEDG_FORGE_MAX_CONCURRENCY`|`2`| Pull requests processed at once |
116
120
|`ACKNOWLEDG_FORGE_REMATERIALIZE_TIMEOUT`|`900`| Seconds `edg-rematerialize-test-run` may run |
117
121
|`ACKNOWLEDG_FORGE_UNSANDBOXED`|`0`|`1` runs without containers: the service serves the runner servers and the publisher server itself, on `127.0.0.1`, where any local process can reach them. **Local development on a single-user machine only.**|
Copy file name to clipboardExpand all lines: dev_tools/services/acknowledg-forge/SANDBOXING.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -526,6 +526,9 @@ them. Several layers keep the service from reading through one:
526
526
| Resource | Limit |
527
527
| --- | --- |
528
528
| Artifact download |`ACKNOWLEDG_FORGE_MAX_ARTIFACT_BYTES` (256 MiB), also counting the decompressed size of inner tarballs |
529
+
| Artifact entries |`ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES` (500,000), counting inner tarballs' too; and its zip's central directory, `ACKNOWLEDG_FORGE_MAX_ARTIFACT_DIRECTORY_BYTES` (64 MiB), checked before zipfile reads it |
530
+
| A pull request's diff of `tests/`|`ACKNOWLEDG_FORGE_MAX_DIFF_BYTES` (64 MiB) |
531
+
| A review worktree's sparse-checkout patterns |`ACKNOWLEDG_FORGE_MAX_SPARSE_PATTERNS` (20,000) |
529
532
| A file read for a reviewer | 64 MiB; a larger one fails the request |
530
533
| A source shown to a reviewer | only as much as can be displayed is read |
531
534
| Each container's `/tmp`| 512 MiB tmpfs; copies made for diffing are streamed there |
0 commit comments