Skip to content

Commit 6c228b2

Browse files
committed
fix(ci): split UI test type graphs within the root budget
1 parent 085d155 commit 6c228b2

5 files changed

Lines changed: 21 additions & 7 deletions

File tree

‎docs/ci.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ Hybrid is the normal degraded-capacity mode. If Blacksmith is down: rerun the fa
324324
gh variable set OPENCLAW_CI_RUNNER_BACKEND --repo openclaw/openclaw --body github
325325
```
326326

327-
Hosted paths use the same setup exercised by manual dispatches and fork pull requests. Fork PRs are forced into the logical `github` planner profile even when repository variables are unavailable, so core lint and test types retain their hosted stripes instead of falling back to the oversized all-in-one jobs. Frozen targets opt into this event-aware profile through `hosted-runner-profile-contract-v1`; targets without the marker retain their historical workload shape. Blacksmith-only Docker and sticky-disk steps are skipped, dependency setup uses the ordinary Actions pnpm-store cache, and low-memory Android builds use separate Gradle processes. Hybrid attempt-1 Node and plateau lanes deliberately keep this backend-neutral Actions-cache profile when they run on Blacksmith because preflight remains hosted. The exact workspace dependency cache intentionally stays off when preflight is hosted: GitHub can roll the runner image and Node patch between preflight and fanout in one workflow, while the safe exact key then misses; the ordinary store archive is only slightly smaller and pnpm's measured relink is already single-digit seconds. The Node toolchain itself is also cached through that API: Blacksmith's image tracks an older runner-images snapshot whose toolcache Node patches (measured 2026-08-16: 20.20.0, 22.22.0, 24.13.0) sit just under this repo's `engines` floor, so every job otherwise re-downloads Node from nodejs.org. Restores are prefix-keyed and saves carry the resolved patch, because an exact-key hit suppresses the post-job save and would pin the first payload forever once the floor advanced past it. A restored payload below the floor is rejected, pruned, and replaced. Vitest transform and Node compile caches still use the upstream Actions cache API, which Blacksmith proxies; their Linux-only `runner.os != 'Windows'` conditions do not exclude Blacksmith labels, and the planner still elects one semantic transform-cache writer. Core oxlint splits into five deterministic hosted stripes, with extension/scripts lint and optional UI and format checks in the existing `check-lint` row. The 14 serial core test-type graphs likewise split into five `check-test-types-core-*` stripes (two overlapped graphs per stripe), leaving the extensions/root/scripts type tail in the `check-test-types` row; targets without stripe support keep the whole lane in that row.
327+
Hosted paths use the same setup exercised by manual dispatches and fork pull requests. Fork PRs are forced into the logical `github` planner profile even when repository variables are unavailable, so core lint and test types retain their hosted stripes instead of falling back to the oversized all-in-one jobs. Frozen targets opt into this event-aware profile through `hosted-runner-profile-contract-v1`; targets without the marker retain their historical workload shape. Blacksmith-only Docker and sticky-disk steps are skipped, dependency setup uses the ordinary Actions pnpm-store cache, and low-memory Android builds use separate Gradle processes. Hybrid attempt-1 Node and plateau lanes deliberately keep this backend-neutral Actions-cache profile when they run on Blacksmith because preflight remains hosted. The exact workspace dependency cache intentionally stays off when preflight is hosted: GitHub can roll the runner image and Node patch between preflight and fanout in one workflow, while the safe exact key then misses; the ordinary store archive is only slightly smaller and pnpm's measured relink is already single-digit seconds. The Node toolchain itself is also cached through that API: Blacksmith's image tracks an older runner-images snapshot whose toolcache Node patches (measured 2026-08-16: 20.20.0, 22.22.0, 24.13.0) sit just under this repo's `engines` floor, so every job otherwise re-downloads Node from nodejs.org. Restores are prefix-keyed and saves carry the resolved patch, because an exact-key hit suppresses the post-job save and would pin the first payload forever once the floor advanced past it. A restored payload below the floor is rejected, pruned, and replaced. Vitest transform and Node compile caches still use the upstream Actions cache API, which Blacksmith proxies; their Linux-only `runner.os != 'Windows'` conditions do not exclude Blacksmith labels, and the planner still elects one semantic transform-cache writer. Core oxlint splits into five deterministic hosted stripes, with extension/scripts lint and optional UI and format checks in the existing `check-lint` row. The 15 serial core test-type graphs, with UI pages and E2E tests in separate graphs to preserve the 720-root cap, likewise split into five `check-test-types-core-*` stripes (two overlapped graphs per stripe), leaving the extensions/root/scripts type tail in the `check-test-types` row; targets without stripe support keep the whole lane in that row.
328328

329329
The compact Node planner keeps separate Blacksmith and standard 4-core hosted timing ownership. The `github` profile targets 90/95 seconds of serial group work for the hosted large/small source runner classes and applies a 1.6x median scaling fallback only to unmeasured groups. Hybrid keeps the expanded topology and hosted-derived splitting for groups above the unchanged 150-second ceiling, so hosted retries do not inherit an indivisible hosted wall pole. Its attempt-1 packing applies the existing 0.87 scale to Blacksmith estimates, using committed measurements before the cold-start hints. Refits can change the number and composition of compact jobs without changing runner policy. Direct sampled hints cover the doctor and cron-service outliers, while a 140-second floor and singleton bin protect the observed `agentic-gateway-core-3` tail. During rebalance, native hybrid groups use scaled Blacksmith stripe hints; only synthesized hosted stripes retain their divided parent weight. Failed and timeout-and-retry samples are excluded from refreshes. Whole-config groups with registered file listers (agent support, gateway methods, runtime config, isolated unit fast) split into file-weighted hosted stripes. The hosted agent-chat split also carries direct successful-run hints for its two longest files so they cannot land in the same stripe. The subprocess-heavy tooling family uses seven balanced stripes projecting to roughly 115 hosted seconds per stripe.
330330

‎scripts/lib/tsgo-core-test-shards.mts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ export const TSGO_CORE_TEST_SHARDS = [
3737
{ name: "services", group: "src", config: "test/tsconfig/tsconfig.core.test.services.json" },
3838
{ name: "other", group: "src", config: "test/tsconfig/tsconfig.core.test.other.json" },
3939
{
40-
name: "ui-pages-e2e",
40+
name: "ui-pages",
4141
group: "ui",
42-
config: "test/tsconfig/tsconfig.core.test.ui-pages-e2e.json",
42+
config: "test/tsconfig/tsconfig.core.test.ui-pages.json",
43+
},
44+
{
45+
name: "ui-e2e",
46+
group: "ui",
47+
config: "test/tsconfig/tsconfig.core.test.ui-e2e.json",
4348
},
4449
{ name: "ui-other", group: "ui", config: "test/tsconfig/tsconfig.core.test.ui-other.json" },
4550
{

‎test/scripts/tsgo-core-test-shards.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99

1010
describe("tsgo core test shards", () => {
1111
it("stripes partition the full shard list exactly once", () => {
12-
for (const stripeCount of [1, 2, 3]) {
12+
for (const stripeCount of [1, 2, 3, 5]) {
1313
const striped = Array.from(
1414
{ length: stripeCount },
1515
(_, index) => selectTsgoCoreTestStripe(`${index + 1}/${stripeCount}`) ?? [],

test/tsconfig/tsconfig.core.test.ui-pages-e2e.json renamed to test/tsconfig/tsconfig.core.test.ui-e2e.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"extends": "./tsconfig.core.test.shard.json",
33
"compilerOptions": {
4-
"tsBuildInfoFile": "../../.artifacts/tsgo-cache/core-test-ui-pages-e2e.tsbuildinfo"
4+
"tsBuildInfoFile": "../../.artifacts/tsgo-cache/core-test-ui-e2e.tsbuildinfo"
55
},
66
"include": [
77
"../../ui/src/main.ts",
8-
"../../ui/src/pages/**/*.test.ts",
9-
"../../ui/src/pages/**/*.test.tsx",
108
"../../ui/src/e2e/**/*.test.ts",
119
"../../ui/src/e2e/**/*.test.tsx"
1210
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.core.test.shard.json",
3+
"compilerOptions": {
4+
"tsBuildInfoFile": "../../.artifacts/tsgo-cache/core-test-ui-pages.tsbuildinfo"
5+
},
6+
"include": [
7+
"../../ui/src/main.ts",
8+
"../../ui/src/pages/**/*.test.ts",
9+
"../../ui/src/pages/**/*.test.tsx"
10+
]
11+
}

0 commit comments

Comments
 (0)