From ffd1927e19f801617a8cd9d1255863171357d6d7 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 19:54:17 +0000 Subject: [PATCH] test(wasm): raise the engine and combined gzip budgets by 50 KB develop at 4552bedb2 (exact Rationals) is over the WebAssembly size budgets: the Go gates job measured the gzipped js build of sysml-wasm at 8,309,493 bytes against the 8,300,000-byte budget, failing TestWasmRuns/js/fits_the_combined_size_budget, and sysml-engine at 7,647,486 bytes, 2.5 KB under its 7,650,000-byte budget. Raise combinedGzipBudget to 8,350,000 and engineGzipBudget to 7,700,000 so both bound growth again. The engine figure is the one the existing changelog fragment for the dependency check already states. Co-Authored-By: jason.han --- changes/unreleased/wasm-size-budgets.changed.md | 1 + tests/wasm/combined_test.go | 2 +- tests/wasm/engine_test.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changes/unreleased/wasm-size-budgets.changed.md diff --git a/changes/unreleased/wasm-size-budgets.changed.md b/changes/unreleased/wasm-size-budgets.changed.md new file mode 100644 index 0000000000..35691b0dd8 --- /dev/null +++ b/changes/unreleased/wasm-size-budgets.changed.md @@ -0,0 +1 @@ +- **The WebAssembly gzip size budgets rise by 50 KB.** The gzipped js build of `sysml-wasm` is now bounded at 8,350,000 bytes and that of `sysml-engine` at 7,700,000 bytes. Exact Rational number support grew both binaries past the previous bounds of 8,300,000 and 7,650,000 bytes (the combined build measured 8,309,493 bytes gzipped, the engine 7,647,486), so `TestWasmRuns` failed on the integration branch itself; the budgets bound growth only, and `TestEngineDependencies` still catches a forbidden dependency. diff --git a/tests/wasm/combined_test.go b/tests/wasm/combined_test.go index 0ed1051205..363725d121 100644 --- a/tests/wasm/combined_test.go +++ b/tests/wasm/combined_test.go @@ -19,7 +19,7 @@ import ( "github.com/Open-MBEE/OpenSysML/internal/frontend/jsonrpc" ) -const combinedGzipBudget = 8300000 +const combinedGzipBudget = 8350000 const combinedModel = `package Demo { part def Item; }` diff --git a/tests/wasm/engine_test.go b/tests/wasm/engine_test.go index 3d633d328d..24c553935f 100644 --- a/tests/wasm/engine_test.go +++ b/tests/wasm/engine_test.go @@ -24,7 +24,7 @@ import ( // engineGzipBudget bounds growth of the gzipped js build of sysml-engine; // TestEngineDependencies, not this budget, catches a forbidden dependency. -const engineGzipBudget = 7650000 +const engineGzipBudget = 7700000 func TestEngineDependencies(t *testing.T) { const module = "github.com/Open-MBEE/OpenSysML"