Repository navigation
Commit f200310
committed
test(javascript): keep the trigger fixture inside the worker's fact budget
The acceptance trigger taken from #3545 used a 30,000-line first source. Its
complete static facts serialize to 9,824,883 bytes against the worker's 8 MiB
complete-fact budget, so the worker raises a transport constraint before the
parent can retain anything: the source becomes a per-file observation failure
and the run stops on the next source's checkpoint instead. The message the test
asserted named z-tiny.mjs only through that failure; with a first source inside
the budget, the same 256 MiB heap stops the run on a-large.mjs. The parent
result budget was therefore not the limit the test was exercising.
Reduce the first source to 5,000 lines, whose complete facts come to 1,613,878
bytes, 19% of that budget, and assert the source the message names now. The
parent result budget is then the only limit in play, and the constrained-heap
public CLI trigger #3545 supplied is otherwise unchanged.
Verified: the test passes on this branch, and with the two changed source files
restored to origin/main it fails on the reported advice, `Review the reported
worker memory lim...` not containing `parent result budget`. A 4096 MiB parent
heap completes the same fixture, so no complete-fact budget is reached.1 parent 9e73670 commit f200310
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments