Skip to content

Commit 2993fd7

Browse files
陈焕翔陈焕翔
authored andcommitted
fix(ci): bound fork diff inspection and size-label buffers
1 parent 104fd39 commit 2993fd7

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎.github/workflows/pr-size.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,13 @@ jobs:
233233
execFileSync(
234234
"git",
235235
diffArgs,
236-
{ encoding: "utf8" },
236+
{ encoding: "utf8", maxBuffer: 16 * 1024 * 1024 },
237237
),
238238
);
239239
const nonTestChangedLines = sumNumstat(
240240
execFileSync("git", [...diffArgs, "--", ".", ...testExcludePathspecs], {
241241
encoding: "utf8",
242+
maxBuffer: 16 * 1024 * 1024,
242243
}),
243244
);
244245
const testChangedLines = Math.max(0, totalChangedLines - nonTestChangedLines);

‎.github/workflows/testing.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 2
28+
filter: blob:limit=100m
2829
persist-credentials: false
2930
sparse-checkout: |
3031
/*
@@ -35,7 +36,7 @@ jobs:
3536
node-version-file: package.json
3637
- name: Static entry contracts
3738
run: |
38-
git diff --check HEAD^ HEAD
39+
git diff --check HEAD^ HEAD -- . ':(exclude).repos/**' ':(exclude)infra/task-cache/vendor/**' ':(exclude)patches/**' ':(exclude)apps/mobile/modules/t3-highlights/nitrogen/generated/**'
3940
python3 -B - <<'PYTHON'
4041
import ast, json
4142
from pathlib import Path

‎TESTING.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ sparse paths so a partial checkout cannot masquerade as the whole repository.
170170
current delivery branch pushes, PRs targeting the default branch, and manual
171171
dispatch. `script-components` checks whitespace/Python AST/profile JSON, inventories
172172
owned sources and runs the same six registered script components without a package
173-
install. `core-type-and-unit` uses standard hosted Ubuntu, the existing pinned
173+
install. Whitespace checks exclude vendored references, literal dependency patches
174+
and generated highlights bindings; their bytes follow upstream/generator contracts.
175+
Checkout fetches bounded-size blobs before discarding credentials so deleted/renamed
176+
PR-base source can be compared without authenticated lazy fetching. `core-type-and-unit` uses standard hosted Ubuntu, the existing pinned
174177
Vite+ setup, frozen lockfile and an install limited to root/contracts/shared
175178
with lifecycle scripts disabled. Registry/security policy remains enabled.
176179
It runs the existing contracts/shared typecheck commands serially with their

0 commit comments

Comments
 (0)