Skip to content

Commit 6cfa1b9

Browse files
committed
fix: resolve WASM/UI and Windows CI failures
- ui: JoinSplitKey initialValues now uses DEFAULT_SHARE_COUNT (3) instead of a hardcoded array of 2 entries, making the initial render consistent with the constant and fixing the 'join-share-id-2' unit test failure - windows: set RUST_MIN_STACK=8388608 in cargo_test.ps1 to give test threads an 8 MB stack (matching Linux/macOS defaults); prevents the STATUS_STACK_OVERFLOW crash in integration_tests_use_ids_no_tags on debug builds where async state machines have larger stack frames
1 parent 6c88f71 commit 6cfa1b9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.mise/scripts/windows/cargo_test.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ $PSNativeCommandUseErrorActionPreference = $true # might be true by default
55
function TestProject
66
{
77
$env:RUST_LOG = "cosmian_kms_cli=error,cosmian_kms_server=error,cosmian_kmip=error,test_kms_server=error"
8+
# Windows default thread stack is 1 MB; large async test functions overflow it in
9+
# debug builds. 8 MB matches the Linux/macOS default (RUST_MIN_STACK is bytes).
10+
$env:RUST_MIN_STACK = "8388608"
811
# Add target
912
rustup target add x86_64-pc-windows-msvc
1013

ui/src/actions/Keys/JoinSplitKey.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const JoinSplitKeyForm: React.FC = () => {
102102
initialValues={{
103103
method: "XOR",
104104
objectType: "SymmetricKey",
105-
shareIds: [{ value: "" }, { value: "" }],
105+
shareIds: Array.from({ length: DEFAULT_SHARE_COUNT }, () => ({ value: "" })),
106106
}}
107107
>
108108
<Space direction="vertical" size="middle" style={{ display: "flex" }}>

0 commit comments

Comments
 (0)