Skip to content

Commit c640a95

Browse files
authored
chore(ci,test): fix model download timeouts (#3401)
Signed-off-by: Tibor Dancs <[email protected]>
1 parent 6bab97b commit c640a95

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/playwright/src/ai-lab-extension.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
227227

228228
// This test is currently failing due to a known issue: https://github.com/containers/podman-desktop-extension-ai-lab/issues/2925
229229
test.skip(`Download ${model} via API`, async ({ request }) => {
230-
test.setTimeout(300_000);
230+
test.setTimeout(610_000);
231231
const catalogPage = await aiLabPage.navigationBar.openCatalog();
232232
await catalogPage.waitForLoad();
233233
console.log(`Downloading ${model}...`);
@@ -241,7 +241,7 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
241241
insecure: false,
242242
stream: true,
243243
},
244-
timeout: 300_000,
244+
timeout: 600_000,
245245
});
246246

247247
const body = await response.body();
@@ -297,24 +297,24 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
297297
});
298298

299299
test(`Download ${modelName} model`, async () => {
300-
test.setTimeout(310_000);
300+
test.setTimeout(610_000);
301301
if (!(await catalogPage.isModelDownloaded(modelName))) {
302302
await catalogPage.downloadModel(modelName);
303303
}
304304
await playExpect
305305
// eslint-disable-next-line sonarjs/no-nested-functions
306-
.poll(async () => await waitForCatalogModel(modelName), { timeout: 300_000, intervals: [5_000] })
306+
.poll(async () => await waitForCatalogModel(modelName), { timeout: 600_000, intervals: [5_000] })
307307
.toBeTruthy();
308308
});
309309

310310
test(`Delete ${modelName} model`, async () => {
311311
test.skip(isWindows, 'Model deletion is currently very buggy in azure cicd');
312-
test.setTimeout(310_000);
312+
test.setTimeout(610_000);
313313
playExpect(await catalogPage.isModelDownloaded(modelName)).toBeTruthy();
314314
await catalogPage.deleteModel(modelName);
315315
await playExpect
316316
// eslint-disable-next-line sonarjs/no-nested-functions
317-
.poll(async () => await waitForCatalogModel(modelName), { timeout: 300_000, intervals: [2_500] })
317+
.poll(async () => await waitForCatalogModel(modelName), { timeout: 600_000, intervals: [2_500] })
318318
.toBeFalsy();
319319
});
320320
});
@@ -453,7 +453,7 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
453453
});
454454

455455
test(`Download ${modelName} model if not available`, async () => {
456-
test.setTimeout(310_000);
456+
test.setTimeout(610_000);
457457
if (!(await catalogPage.isModelDownloaded(modelName))) {
458458
await catalogPage.downloadModel(modelName);
459459
}

0 commit comments

Comments
 (0)