Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test): extend download timeout #2456

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
10 changes: 7 additions & 3 deletions tests/playwright/src/ai-lab-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
extensionsPage = await navigationBar.openExtensions();
await playExpect(extensionsPage.header).toBeVisible();
});

test(`Install AI Lab extension`, async () => {
test.skip(AI_LAB_EXTENSION_PREINSTALLED, 'AI Lab extension is preinstalled');
test.setTimeout(120_000);
await extensionsPage.installExtensionFromOCIImage(AI_LAB_EXTENSION_OCI_IMAGE);
});

test('Extension (card) is installed, present and active', async ({ navigationBar }) => {
const extensions = await navigationBar.openExtensions();
await playExpect
Expand All @@ -93,6 +96,7 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
);
await playExpect(extensionCard.status).toHaveText(AI_LAB_CATALOG_STATUS_ACTIVE);
});

test(`Extension's details show correct status, no error`, async ({ page, navigationBar }) => {
const extensions = await navigationBar.openExtensions();
const extensionCard = await extensions.getInstalledExtension('ai-lab', AI_LAB_CATALOG_EXTENSION_LABEL);
Expand Down Expand Up @@ -172,13 +176,13 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
});

test(`Download ${modelName} model if not available`, async () => {
test.setTimeout(310_000);
test.setTimeout(610_000);
if (!(await catalogPage.isModelDownloaded(modelName))) {
await catalogPage.downloadModel(modelName);
}
await playExpect
// eslint-disable-next-line sonarjs/no-nested-functions
.poll(async () => await waitForCatalogModel(modelName), { timeout: 300_000, intervals: [5_000] })
.poll(async () => await waitForCatalogModel(modelName), { timeout: 600_000, intervals: [5_000] })
.toBeTruthy();
});

Expand Down Expand Up @@ -209,7 +213,7 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
});

test(`Make POST request to the model service for ${modelName}`, async ({ request }) => {
test.skip(modelName === 'ggerganov/whisper.cpp', `Skipping POST request for ${modelName}`);
test.skip(isWindows || modelName === 'ggerganov/whisper.cpp', `Skipping POST request for ${modelName}`);
test.setTimeout(70_000);

const port = await modelServiceDetailsPage.getInferenceServerPort();
Expand Down
Loading