From 1c705fabab85fbd7dc0721be9c304ca846b5ea5e Mon Sep 17 00:00:00 2001 From: Georgiy Tugai Date: Mon, 27 Apr 2026 13:28:03 +0200 Subject: [PATCH 1/2] wind-tunnel: fix minor bugs in formatting bench --- wind_tunnel/benches/formatting.rs | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/wind_tunnel/benches/formatting.rs b/wind_tunnel/benches/formatting.rs index 7cee7bb..04581de 100644 --- a/wind_tunnel/benches/formatting.rs +++ b/wind_tunnel/benches/formatting.rs @@ -210,6 +210,16 @@ fn build_select_catalog() -> Catalog { fn build_call_catalog_no_opts() -> Catalog { let strings = ["main", "name"]; + let funcs = [ + FuncEntry { + name_str_id: 0, + static_options: vec![], + }, + FuncEntry { + name_str_id: 1, + static_options: vec![], + }, + ]; let code = vec![ vm::OP_LOAD_ARG, 1, @@ -224,7 +234,7 @@ fn build_call_catalog_no_opts() -> Catalog { vm::OP_OUT_VAL, vm::OP_HALT, ]; - let bytes = build_catalog( + let bytes = build_catalog_with_funcs( &strings, "", &[MessageEntry { @@ -232,12 +242,23 @@ fn build_call_catalog_no_opts() -> Catalog { entry_pc: 0, }], &code, + &funcs, ); Catalog::from_bytes(&bytes).expect("valid benchmark catalog") } fn build_call_catalog_with_opts() -> Catalog { let strings = ["main", "name", "style", "short", "currency", "USD"]; + let funcs = [ + FuncEntry { + name_str_id: 0, + static_options: vec![], + }, + FuncEntry { + name_str_id: 1, + static_options: vec![], + }, + ]; let code = vec![ vm::OP_LOAD_ARG, 1, @@ -272,7 +293,7 @@ fn build_call_catalog_with_opts() -> Catalog { vm::OP_OUT_VAL, vm::OP_HALT, ]; - let bytes = build_catalog( + let bytes = build_catalog_with_funcs( &strings, "", &[MessageEntry { @@ -280,6 +301,7 @@ fn build_call_catalog_with_opts() -> Catalog { entry_pc: 0, }], &code, + &funcs, ); Catalog::from_bytes(&bytes).expect("valid benchmark catalog") } From 800635b75aebeac2d65581c5ff1985a49d6b3a9d Mon Sep 17 00:00:00 2001 From: Georgiy Tugai Date: Wed, 29 Apr 2026 11:56:45 +0200 Subject: [PATCH 2/2] ci: run benches in test mode --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce2a1a1..32d1661 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -201,7 +201,7 @@ jobs: save-if: ${{ github.event_name != 'merge_group' }} - name: cargo nextest - run: cargo nextest run --workspace --locked --all-features --no-fail-fast + run: cargo nextest run --workspace --locked --all-features --benches --no-fail-fast - name: cargo test --doc run: cargo test --doc --workspace --locked --all-features --no-fail-fast