From 34335de08c2aaa3009b5ff1c18edcc3c24ff85dd Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Sun, 15 Nov 2026 20:43:43 +0700 Subject: [PATCH 1/3] ci(linux): build the Devel Flatpak with no incremental artifacts and line tables only --- linux/build-aux/flatpak/app.tablepro.TablePro.Devel.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/build-aux/flatpak/app.tablepro.TablePro.Devel.json b/linux/build-aux/flatpak/app.tablepro.TablePro.Devel.json index ababa07b2e..79979e96c1 100644 --- a/linux/build-aux/flatpak/app.tablepro.TablePro.Devel.json +++ b/linux/build-aux/flatpak/app.tablepro.TablePro.Devel.json @@ -33,7 +33,9 @@ "--share=network" ], "env": { - "LIBCLANG_PATH": "/usr/lib/sdk/llvm22/lib" + "LIBCLANG_PATH": "/usr/lib/sdk/llvm22/lib", + "CARGO_INCREMENTAL": "0", + "CARGO_PROFILE_DEV_DEBUG": "line-tables-only" }, "test-args": [ "--socket=x11", From f63429e3a88d7dc11a28b64270917162586b3753 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Sun, 15 Nov 2026 22:47:32 +0700 Subject: [PATCH 2/3] test(duckdb): build the crafted catalog file from 60 keys of a 640 KiB name, which DuckDB opens in time --- core/crates/drivers/duckdb/tests/catalog_memory.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/crates/drivers/duckdb/tests/catalog_memory.rs b/core/crates/drivers/duckdb/tests/catalog_memory.rs index b4577be10f..0f0c59ab20 100644 --- a/core/crates/drivers/duckdb/tests/catalog_memory.rs +++ b/core/crates/drivers/duckdb/tests/catalog_memory.rs @@ -23,7 +23,8 @@ static HEAP: HeapCounter = HeapCounter; const BOUND: usize = 2 * ByteLimit::CATALOG_DEFAULT.get() as usize; const KEYS: usize = 1_000; -const NAMED_KEYS: usize = 600; +const NAMED_KEYS: usize = 60; +const NAMED_LENGTH: usize = 640 * 1024; // DuckDB takes seconds to create and open more than this. One file a real schema could be: // - a child declaring 1,000 keys into one parent, whose CREATE TABLE, 40 KB, was read again for each of them; @@ -45,14 +46,15 @@ fn large_schema() -> String { ) } -// And one crafted: a child with a 64 KiB name and 600 keys, which DuckDB names after it whatever table a read asks for. +// And one crafted: a child with a 640 KiB name and 60 keys, which DuckDB names after it whatever table a read asks for. +// A read costs keys times name, and DuckDB's open keys squared times name: 600 keys of 64 KiB took over 10 s to open. fn crafted_schema() -> String { format!( "CREATE TABLE named_parent (id INTEGER PRIMARY KEY); \ CREATE TABLE other (id INTEGER PRIMARY KEY); \ CREATE TABLE {} (a INTEGER{}); \ CHECKPOINT;", - "n".repeat(64 * 1024), + "n".repeat(NAMED_LENGTH), ", FOREIGN KEY (a) REFERENCES named_parent (id)".repeat(NAMED_KEYS), ) } From 89beababcdc93e6cb7f2dfb723a9f96f52634737 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Mon, 16 Nov 2026 00:35:40 +0700 Subject: [PATCH 3/3] test(cli): give the stalled tool call test a handshake with the usual bound --- core/crates/cli/src/client.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/crates/cli/src/client.rs b/core/crates/cli/src/client.rs index 7b13ab167a..30b98b168e 100644 --- a/core/crates/cli/src/client.rs +++ b/core/crates/cli/src/client.rs @@ -262,6 +262,13 @@ mod tests { statement_margin: Duration::from_millis(300), }; + // A short tool call after a handshake with the usual bound: the server answers that itself, and a loaded package + // builder took over 300 ms to. + const SHORT_TOOL: Deadlines = Deadlines { + handshake: Deadlines::TABLEPRO.handshake, + ..SHORT + }; + // An app whose GTK thread never answers. struct Stalled; @@ -331,7 +338,7 @@ mod tests { let client = McpClient::connect_within( &endpoint_at(server.address().port()), "1.0.0", - SHORT, + SHORT_TOOL, &crate::runner::tests::STOPPED, ) .await