Skip to content

Improve optional chaining checks #15485

Improve optional chaining checks

Improve optional chaining checks #15485

Triggered via pull request November 5, 2024 12:31
Status Failure
Total duration 22m 51s
Artifacts 2

qc_checks.yaml

on: pull_request
Build - UI Platform
2m 0s
Build - UI Platform
Style [pre-commit]
39s
Style [pre-commit]
Tests - API Schema Documentation
0s
Tests - API Schema Documentation
Style [Documentation]
36s
Style [Documentation]
Tests - Migrations [PostgreSQL]
0s
Tests - Migrations [PostgreSQL]
Tests - Full Migration [SQLite]
0s
Tests - Full Migration [SQLite]
Tests - inventree-python
0s
Tests - inventree-python
Tests - DB [PostgreSQL]
0s
Tests - DB [PostgreSQL]
Tests - DB [MySQL]
0s
Tests - DB [MySQL]
Tests - Platform UI
21m 36s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 26s
Style - Classic UI [JS]
Push new schema
0s
Push new schema
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 8 warnings, and 1 notice
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L1
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L94
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('On Hold').first() to be visible 92 | 93 | // We have now loaded the "Build Order" table. Check for some expected texts > 94 | await page.getByText('On Hold').first().waitFor(); | ^ 95 | await page.getByText('Pending').first().waitFor(); 96 | 97 | await page.getByRole('cell', { name: 'BO0011' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_build.spec.ts:94:43
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L1
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/baseFixtures.ts#L85
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 44 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/build/11/complete/", + }, + "page": EventEmitter { + "_events": Object { + "bindingCall": [Function anonymous], + "close": [Function anonymous], + "crash": [Function anonymous], + "download": [Function anonymous], + "fileChooser": [Function anonymous], + "frameAttached": [Function anonymous], + "frameDetached": [Function anonymous], + "locatorHandlerTriggered": [Function anonymous], + "route": [Function anonymous], + "video": [Function anonymous], + "webSocket": [Function anonymous], + "worker": [Function anonymous], + }, + "_eventsCount": 12, + "_maxListeners": undefined, + "_object": Object { + "_guid": "page@b43f5fe92643eebe8528e90be10df5b0", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "Failed to load resource: the server responded with a status of 500 (Internal Server Error)", + "type": "error", + }, + "_page": Object { + "_guid": "page@b43f5fe92643eebe8528e90be10df5b0", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:85 83 | }); 84 | await use(page); > 85 | expect(messages).toEqual([]); | ^ 86 | } 87 | }); 88 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:85:22)
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L158
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('Build outputs have been completed') to be visible 156 | await page.waitForTimeout(250); 157 | await page.getByRole('button', { name: 'Submit' }).click(); > 158 | await page.getByText('Build outputs have been completed').waitFor(); | ^ 159 | }); 160 | 161 | test('Pages - Build Order - Allocation', async ({ page }) => { at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_build.spec.ts:158:61
[chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L1
2) [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ──────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L82
2) [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ──────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Plugin Information' }) 80 | // Open the plugin drawer, and ensure that the custom admin elements are visible 81 | await page.getByText('SampleUI').click(); > 82 | await page.getByRole('button', { name: 'Plugin Information' }).click(); | ^ 83 | await page 84 | .getByLabel('Plugin Detail') 85 | .getByRole('button', { name: 'Plugin Settings' }) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_plugins.spec.ts:82:66
[firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters: src/frontend/tests/pages/pui_part.spec.ts#L1
3) [firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters ───────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters: src/frontend/tests/baseFixtures.ts#L85
3) [firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters ───────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 60 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@e763d0f015def60ceb2517fdc620d3ca", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 1, + "lineNumber": 0, + "url": "http://localhost:5173/platform/part/69/parameters", + }, + "page": EventEmitter { + "_events": Object { + "bindingCall": [Function anonymous], + "close": [Function anonymous], + "crash": [Function anonymous], + "download": [Function anonymous], + "fileChooser": [Function anonymous], + "frameAttached": [Function anonymous], + "frameDetached": [Function anonymous], + "locatorHandlerTriggered": [Function anonymous], + "route": [Function anonymous], + "video": [Function anonymous], + "webSocket": [Function anonymous], + "worker": [Function anonymous], + }, + "_eventsCount": 12, + "_maxListeners": undefined, + "_object": Object { + "_guid": "page@e28a120c433225335cae570d3a4271cd", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/enums/ModelType.tsx” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/part/69/parameters\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@e28a120c433225335cae570d3a4271cd", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:85 83 | }); 84 | await use(page); > 85 | expect(messages).toEqual([]); | ^ 86 | } 87 | }); 88 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:85:22)
[firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters: src/frontend/tests/pages/pui_part.spec.ts#L305
3) [firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters ───────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByLabel('action-button-add-parameter') 303 | 304 | // Create a new template > 305 | await page.getByLabel('action-button-add-parameter').click(); | ^ 306 | 307 | // Select the "Color" parameter template (should create a "choice" field) 308 | await page.getByLabel('related-field-template').fill('Color'); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_part.spec.ts:305:56
Build - UI Platform
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Style - Classic UI [JS]
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests - Platform UI
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Slow Test: src/frontend/[chromium] › pages/pui_part.spec.ts#L1
src/frontend/[chromium] › pages/pui_part.spec.ts took 2.0m
Slow Test: src/frontend/[firefox] › pui_tables.spec.ts#L1
src/frontend/[firefox] › pui_tables.spec.ts took 39.2s
Slow Test: src/frontend/[firefox] › pages/pui_sales_order.spec.ts#L1
src/frontend/[firefox] › pages/pui_sales_order.spec.ts took 38.7s
Slow Test: src/frontend/[firefox] › pui_settings.spec.ts#L1
src/frontend/[firefox] › pui_settings.spec.ts took 34.4s
Slow Test: src/frontend/[chromium] › pages/pui_sales_order.spec.ts#L1
src/frontend/[chromium] › pages/pui_sales_order.spec.ts took 31.6s
🎭 Playwright Run Summary
1 failed [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ──────────────── 5 flaky [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ───────────────────────────────── [firefox] › pages/pui_part.spec.ts:299:1 › Parts - Parameters ────────────────────────────────── [firefox] › pages/pui_stock.spec.ts:5:1 › Stock ──────────────────────────────────────────────── [firefox] › pui_basic.spec.ts:5:1 › Basic Login Test ─────────────────────────────────────────── [firefox] › pui_general.spec.ts:77:1 › Company ───────────────────────────────────────────────── 114 passed (15.3m)

Artifacts

Produced during runtime
Name Size
frontend-build
2.16 MB
playwright-report
25.1 MB