From 85d8fa8520305ee90294b0a8390033670af6bde0 Mon Sep 17 00:00:00 2001 From: Nyannyacha Date: Tue, 5 Aug 2025 08:20:36 +0000 Subject: [PATCH 1/2] fix: disable pointer compression --- .cargo/config.toml | 1 + Cargo.lock | 3 +-- Cargo.toml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 028f73b9d..a2aeed6ec 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,4 +1,5 @@ [env] +RUSTY_V8_MIRROR = "https://github.com/supabase/rusty_v8/releases/download" # https://supabase.com/docs/guides/functions/limits SUPABASE_RESOURCE_LIMIT_MEM_MB = "256" SUPABASE_RESOURCE_LIMIT_LOW_MEM_MULTIPLIER = "5" diff --git a/Cargo.lock b/Cargo.lock index 923413ccc..ff5c496ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8201,8 +8201,7 @@ dependencies = [ [[package]] name = "v8" version = "0.97.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb417c2cd20684f18b185085c876d379318893461c17d319948a0a5f221f0b50" +source = "git+https://github.com/supabase/rusty_v8?tag=v0.97.1#3bd1448f9d44081cc88b5ad3f22b916efc667a8f" dependencies = [ "bindgen", "bitflags 2.5.0", diff --git a/Cargo.toml b/Cargo.toml index 4cf199bb7..0d959b539 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -174,6 +174,7 @@ serial_test = "3.0.0" [patch.crates-io] # If the PR is merged upstream, remove the line below. deno_core = { git = "https://github.com/supabase/deno_core", branch = "293-supabase" } +v8 = { git = "https://github.com/supabase/rusty_v8", tag = "v0.97.1" } eszip = { git = "https://github.com/supabase/eszip", branch = "fix-pub-vis-0-72-2" } [profile.dind] From 89b50af0d50dff1951fd7cbb46aab94b15476aff Mon Sep 17 00:00:00 2001 From: Nyannyacha Date: Wed, 6 Aug 2025 03:11:28 +0000 Subject: [PATCH 2/2] stamp: adjust heap size limit --- crates/base/tests/integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/base/tests/integration_tests.rs b/crates/base/tests/integration_tests.rs index de6a68d93..db840286c 100644 --- a/crates/base/tests/integration_tests.rs +++ b/crates/base/tests/integration_tests.rs @@ -3429,7 +3429,7 @@ async fn test_should_be_able_to_trigger_early_drop_with_mem() { let resp = tb .request(|b| { b.uri("/early-drop-mem") - .header("x-memory-limit-mb", HeaderValue::from_static("20")) + .header("x-memory-limit-mb", HeaderValue::from_static("22")) .body(Body::empty()) .context("can't make request") })