Skip to content

Improved Codebase

Improved Codebase #50

Triggered via pull request July 18, 2024 04:44
@a0v0a0v0
synchronize #79
avtoolz-imporoved
Status Failure
Total duration 5m 29s
Artifacts 1

CI.yml

on: pull_request
Matrix: build_and_test
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 2 warnings, and 1 notice
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L27
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images "beforeAll" hook timeout of 30000ms exceeded. 25 | let rearrangedPDFPath = ""; 26 | > 27 | test.beforeAll("Setup", async ({ browser }) => { | ^ 28 | fs.mkdirSync(tempTestDir, { recursive: true }); 29 | const page = await browser.newPage(); 30 | await page.goto("/tools/image-to-pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:27:8
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L34
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Error: page.waitForEvent: Test ended. =========================== logs =========================== waiting for event "download" ============================================================ 32 | // sleep for 1 second to allow images to load 33 | await page.waitForTimeout(1000); > 34 | let downloadPromise = page.waitForEvent("download"); | ^ 35 | await page.locator("#btn-submit").click(); 36 | let download = await downloadPromise; 37 | let filePath = path.join(__dirname, tempTestDir, "normal.pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:34:32
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L27
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── "beforeAll" hook timeout of 30000ms exceeded. 25 | let rearrangedPDFPath = ""; 26 | > 27 | test.beforeAll("Setup", async ({ browser }) => { | ^ 28 | fs.mkdirSync(tempTestDir, { recursive: true }); 29 | const page = await browser.newPage(); 30 | await page.goto("/tools/image-to-pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:27:8
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L27
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── "beforeAll" hook timeout of 30000ms exceeded. 25 | let rearrangedPDFPath = ""; 26 | > 27 | test.beforeAll("Setup", async ({ browser }) => { | ^ 28 | fs.mkdirSync(tempTestDir, { recursive: true }); 29 | const page = await browser.newPage(); 30 | await page.goto("/tools/image-to-pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:27:8
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L1
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: tracing.startChunk: Tracing is already stopping
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L34
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.waitForEvent: Test ended. =========================== logs =========================== waiting for event "download" ============================================================ 32 | // sleep for 1 second to allow images to load 33 | await page.waitForTimeout(1000); > 34 | let downloadPromise = page.waitForEvent("download"); | ^ 35 | await page.locator("#btn-submit").click(); 36 | let download = await downloadPromise; 37 | let filePath = path.join(__dirname, tempTestDir, "normal.pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:34:32
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L1
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: end of central directory record signature not found
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L27
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── "beforeAll" hook timeout of 30000ms exceeded. 25 | let rearrangedPDFPath = ""; 26 | > 27 | test.beforeAll("Setup", async ({ browser }) => { | ^ 28 | fs.mkdirSync(tempTestDir, { recursive: true }); 29 | const page = await browser.newPage(); 30 | await page.goto("/tools/image-to-pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:27:8
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L27
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── "beforeAll" hook timeout of 30000ms exceeded. 25 | let rearrangedPDFPath = ""; 26 | > 27 | test.beforeAll("Setup", async ({ browser }) => { | ^ 28 | fs.mkdirSync(tempTestDir, { recursive: true }); 29 | const page = await browser.newPage(); 30 | await page.goto("/tools/image-to-pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:27:8
[webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images: tests/tools/image_to_pdf.test.ts#L34
1) [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.waitForEvent: Test ended. =========================== logs =========================== waiting for event "download" ============================================================ 32 | // sleep for 1 second to allow images to load 33 | await page.waitForTimeout(1000); > 34 | let downloadPromise = page.waitForEvent("download"); | ^ 35 | await page.locator("#btn-submit").click(); 36 | let download = await downloadPromise; 37 | let filePath = path.join(__dirname, tempTestDir, "normal.pdf"); at /home/runner/work/avtoolz/avtoolz/tests/tools/image_to_pdf.test.ts:34:32
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "test-results". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
E2E tests with node@20 on ubuntu-latest - x64
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
🎭 Playwright Run Summary
3 failed [webkit] β€Ί tools/image_to_pdf.test.ts:62:7 β€Ί image to pdf check if β€Ί page count is same as that of no. of input images [webkit] β€Ί tools/image_to_pdf.test.ts:92:7 β€Ί image to pdf check if β€Ί check if pages in pdf are in correct order after rearranging [webkit] β€Ί tools/merge_pdf.test.ts:109:7 β€Ί page count and file size check β€Ί check if merged pdf page order is same as arranged pdf order 39 passed (2.7m)

Artifacts

Produced during runtime
Name Size
test-results Expired
2.36 MB