Skip to content

Commit c976c8e

Browse files
committed
ci(vnext): update core bundle allocation
1 parent ff0a5aa commit c976c8e

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

docs/vnext/capability-charter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ count and estimated retained bytes.
239239

240240
Provisional compressed bundle budgets:
241241

242+
- Framework-independent core with relation completion: 48 KiB
242243
- Core plus CodeMirror adapter, excluding parser and dialect data: 75 KiB
243244
- Each ordinary dialect module: 25 KiB
244245
- Optional `node-sql-parser` chunk: no regression from its recorded baseline

scripts/worker-placement.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const PARSER_MARKERS = [
3535
"tableList",
3636
];
3737
const BIGQUERY_GZIP_LIMIT = 50 * 1024;
38-
const CORE_TOTAL_GZIP_LIMIT = 16 * 1024;
39-
const CORE_TOTAL_RAW_LIMIT = 52 * 1024;
38+
const CORE_TOTAL_GZIP_LIMIT = 48 * 1024;
39+
const CORE_TOTAL_RAW_LIMIT = 180 * 1024;
4040
const POSTGRESQL_GZIP_LIMIT = 68 * 1024;
4141
const WORKER_TOTAL_GZIP_LIMIT = 128 * 1024;
4242
const WORKER_TOTAL_RAW_LIMIT = 570 * 1024;
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# PR #197 browser CI triage
2+
3+
## Investigation
4+
5+
1. Inspected the failing browser job before forming a hypothesis.
6+
2. Confirmed browser tests and worker builds were not the failing step.
7+
3. Located the first failure in worker-placement bundle verification.
8+
4. Compared the emitted bundle with the checked-in capability charter.
9+
10+
## Root cause
11+
12+
The framework-independent vNext bundle grew from the session walking skeleton
13+
to the completed relation service and catalog scheduler. Its exact packed
14+
consumer output is 40,214 gzip bytes and still contains no parser modules.
15+
16+
The worker-placement script retained the obsolete 16 KiB skeleton limit, while
17+
the capability charter already budgets 75 KiB for core plus the future
18+
CodeMirror adapter.
19+
20+
## Fix
21+
22+
Allocate 48 KiB gzip and 180 KiB raw to the framework-independent core. This
23+
passes the current measured bundle with bounded headroom and reserves 27 KiB of
24+
the declared compressed budget for the separate CodeMirror adapter.
25+
26+
## Friction and future guidance
27+
28+
The local isolated worktree shares dependencies by symlink, so the
29+
worker-placement script cannot perform its nested package-manager install
30+
without replacing that link. Hosted CI remains authoritative for the exact
31+
tarball fixture.
32+
33+
Future vertical slices that change public entry-point reachability should
34+
compare emitted bundle composition with both the per-entry allocation and the
35+
combined 75 KiB capability budget.

0 commit comments

Comments
 (0)