mirror of
https://github.com/morluto/rea.git
synced 2026-11-29 09:56:23 +00:00
fix(source-maps): report details.limit for source_map_limits refusals (#14797)
Share source_map_limits bounds through a domain-owned SOURCE_MAP_BUDGETS table and attach details.limit across local source-map read, decoder admission, codec reply, and memory/output limit refusals (Refs #14234). Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
1 parent
cd744b1bfb
commit
3eb030ccb4
15 files changed
+550
-68
No files matched your search
@@ -593,7 +593,18 @@ it("returns all point matches when they fit and reports output exhaustion otherw
|
||||
_tag: "ArtifactOperationError",
|
||||
reason: "limit",
|
||||
detail: expect.stringContaining("source_map_limits.output_bytes is 5500"),
|
||||
limit: {
|
||||
control_kind: "parameter",
|
||||
parameter: "source_map_limits.output_bytes",
|
||||
effective_value: 5500,
|
||||
unit: "bytes",
|
||||
minimum: 1,
|
||||
maximum: 536_870_887,
|
||||
default_value: 33_554_432,
|
||||
applies_at: "next_call",
|
||||
},
|
||||
});
|
||||
expect(limited.error.limit).not.toHaveProperty("required_value");
|
||||
expect(limited.error.partialObservation).toBeUndefined();
|
||||
});
|
||||
it("admits a codec reply only from the selected runtime and memory envelope", async () => {
|
||||
@@ -691,6 +702,16 @@ it.each([true, false])(
|
||||
reportedLimits: {
|
||||
codec_process_memory_limit_bytes: expectedProcessMemoryLimitBytes,
|
||||
},
|
||||
limit: {
|
||||
control_kind: "parameter",
|
||||
parameter: "source_map_limits.codec_heap_mib",
|
||||
effective_value: 192,
|
||||
unit: "MiB",
|
||||
minimum: 128,
|
||||
maximum: 16384,
|
||||
default_value: 192,
|
||||
applies_at: "next_call",
|
||||
},
|
||||
capturedOutput: { stderr: "panic: out of memory" },
|
||||
}
|
||||
: { diagnostics: { exit_code: 3, stderr: "panic: out of memory" } },
|
||||
|
||||
Reference in new issue
Block a user