Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test-android-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ jobs:
--runId "${{ needs.build.outputs.runId }}" \
--consumer-timeout "${{ inputs.consumer-timeout }}" \
--config . \
--report-dir=./reports \
$FILTER_ARG \
$SUITE_ARG \
$EXCLUDE_SUITE_ARG
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-desktop-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ jobs:
'--runId=${{ steps.runid.outputs.runId }}',
'--consumer-timeout=${{ inputs.consumer-timeout }}',
'--config=.',
'--report-dir=./reports',
...filterArgs,
...suiteArgs,
...excludeSuiteArgs
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-ios-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ jobs:
--runId "${{ needs.build.outputs.runId }}" \
--consumer-timeout "${{ inputs.consumer-timeout }}" \
--config . \
--report-dir=./reports \
$FILTER_ARG \
$SUITE_ARG \
$EXCLUDE_SUITE_ARG
Expand Down
12 changes: 7 additions & 5 deletions packages/sdk/tests-qvac/tests/mobile/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ import { LifecycleExecutor } from "../shared/executors/lifecycle-executor.js";
import { ConfigExecutor } from "../shared/executors/config-executor.js";

const resources = new ResourceManager({
// Mobile (iOS) needs a tick after each unloadModel for the kernel to
// actually release pages β€” without it, the next test's load arrives
// while the previous model's RSS is still resident and crashes the
// GGML allocator. Empirically 200ms is enough; desktop doesn't need it.
unloadSettleMs: 100,
// Mobile (iOS + Android) needs a tick after each unloadModel for the
// kernel to actually release pages / reclaim mmap regions β€” without
// it, the next test's load arrives while the previous model's RSS is
// still resident and either the GGML allocator crashes (iOS) or
// Scudo's mmap fails with "internal map failure" (Android). Empirically
// 200ms is enough; desktop doesn't need it.
unloadSettleMs: 200,
});

resources.define("llm", {
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk/tests-qvac/tests/sharded-model-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export const shardedModelDetection: TestDefinition = {
params: {},
expectation: { validation: "type", expectedType: "string" },
suites: ["smoke"],
metadata: { category: "sharded-model", dependency: "none", estimatedDurationMs: 120000 },
metadata: { category: "sharded-model", dependency: "sharded-embeddings", estimatedDurationMs: 120000 },
};

export const shardedModelHashValidation: TestDefinition = {
testId: "sharded-model-hash-validation",
params: {},
expectation: { validation: "type", expectedType: "string" },
metadata: { category: "sharded-model", dependency: "none", estimatedDurationMs: 120000 },
metadata: { category: "sharded-model", dependency: "sharded-embeddings", estimatedDurationMs: 120000 },
};

export const shardedModelBackwardCompatibility: TestDefinition = {
Expand All @@ -34,21 +34,21 @@ export const shardedModelProgress: TestDefinition = {
testId: "sharded-model-progress",
params: {},
expectation: { validation: "type", expectedType: "string" },
metadata: { category: "sharded-model", dependency: "none", estimatedDurationMs: 120000 },
metadata: { category: "sharded-model", dependency: "sharded-embeddings", estimatedDurationMs: 120000 },
};

export const shardedModelResume: TestDefinition = {
testId: "sharded-model-resume",
params: {},
expectation: { validation: "type", expectedType: "string" },
metadata: { category: "sharded-model", dependency: "none", estimatedDurationMs: 180000 },
metadata: { category: "sharded-model", dependency: "sharded-embeddings", estimatedDurationMs: 180000 },
};

export const shardedModelCancellation: TestDefinition = {
testId: "sharded-model-cancellation",
params: {},
expectation: { validation: "type", expectedType: "string" },
metadata: { category: "sharded-model", dependency: "none", estimatedDurationMs: 60000 },
metadata: { category: "sharded-model", dependency: "sharded-embeddings", estimatedDurationMs: 60000 },
};

export const shardedModelInference: TestDefinition = {
Expand Down
Loading