Improve optional chaining checks #15488
qc_checks.yaml
on: pull_request
Filter
8s
Build - UI Platform
1m 57s
Style [Documentation]
53s
Tests - Migrations [PostgreSQL]
0s
Tests - Full Migration [SQLite]
0s
Tests - inventree-python
0s
Tests - DB [PostgreSQL]
0s
Tests - DB [MySQL]
0s
Tests - Platform UI
21m 31s
Matrix: coverage
Style - Classic UI [JS]
1m 35s
Push new schema
0s
Annotations
9 errors, 8 warnings, and 1 notice
[firefox] › pui_basic.spec.ts:5:1 › Basic Login Test:
src/frontend/tests/baseFixtures.ts#L85
1) [firefox] › pui_basic.spec.ts:5:1 › Basic Login Test ──────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 256
- Array []
+ Array [
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@5f838872383cc062e2ffbef5bab2f80f",
+ "_type": "JSHandle",
+ },
+ "_pendingHandlers": Map {},
+ "_rejectionHandler": undefined,
+ "off": [Function removeListener],
+ "on": [Function addListener],
+ },
+ ],
+ "location": Object {
+ "columnNumber": 19,
+ "lineNumber": 2599,
+ "url": "http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409",
+ },
+ "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@253a8ca32686e1b82ce8848c2eaa1ed9",
+ "_type": "Page",
+ },
+ "_pendingHandlers": Map {},
+ "_rejectionHandler": undefined,
+ "off": [Function removeListener],
+ "on": [Function addListener],
+ },
+ "text": "The above error occurred in one of your React components:
+
+ Lazy
+ Suspense
+ RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4095:7
+ Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4467:20
+ _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=8e268cdc:22660:5
+ Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25
+ div
+ _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:3819:3
+ Container<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:15473:25
+ div
+ _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:3819:3
+ Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:10002:25
+ ProtectedRoute@http://localhost:5173/src/components/nav/Layout.tsx:1341:31
+ LayoutComponent@http://localhost:5173/src/components/nav/Layout.tsx:1386:47
+ Suspense
+ RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4095:7
+ Routes@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4533:7
+ Router@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4481:7
+ BrowserRouter@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:5223:7
+ QueryClientProvider@http://localhost:5173/node_modules/.vite/deps/@tanstack_react-query.js?v=c30be663:2725:27
+ ModalsProvider@http://localhost:5173/node_modules/.vite/deps/@mantine_modals.js?v=69eb7695:184:24
+ I18nProvider@http://localhost:5173/node_modules/.vite/deps/@lingui_react.js?v=f724ebf9:159:20
+ LanguageContext@http://localhos
|
[firefox] › pui_basic.spec.ts:5:1 › Basic Login Test:
src/frontend/tests/baseFixtures.ts#L85
1) [firefox] › pui_basic.spec.ts:5:1 › Basic Login Test ──────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 256
- Array []
+ Array [
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@4ca6bfa5f55f07fbe7abc3dd4e5aa723",
+ "_type": "JSHandle",
+ },
+ "_pendingHandlers": Map {},
+ "_rejectionHandler": undefined,
+ "off": [Function removeListener],
+ "on": [Function addListener],
+ },
+ ],
+ "location": Object {
+ "columnNumber": 19,
+ "lineNumber": 2599,
+ "url": "http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409",
+ },
+ "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@f517e3e0f00c3dc5f8b6dcc8765efa9c",
+ "_type": "Page",
+ },
+ "_pendingHandlers": Map {},
+ "_rejectionHandler": undefined,
+ "off": [Function removeListener],
+ "on": [Function addListener],
+ },
+ "text": "The above error occurred in one of your React components:
+
+ Lazy
+ Suspense
+ RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4095:7
+ Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4467:20
+ _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=8e268cdc:22660:5
+ Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25
+ div
+ _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:3819:3
+ Container<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:15473:25
+ div
+ _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:3819:3
+ Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=5c0e4409:10002:25
+ ProtectedRoute@http://localhost:5173/src/components/nav/Layout.tsx:1341:31
+ LayoutComponent@http://localhost:5173/src/components/nav/Layout.tsx:1386:47
+ Suspense
+ RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4095:7
+ Routes@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4533:7
+ Router@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:4481:7
+ BrowserRouter@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=c47acc0f:5223:7
+ QueryClientProvider@http://localhost:5173/node_modules/.vite/deps/@tanstack_react-query.js?v=c30be663:2725:27
+ ModalsProvider@http://localhost:5173/node_modules/.vite/deps/@mantine_modals.js?v=69eb7695:184:24
+ I18nProvider@http://localhost
|
[chromium] › pui_forms.spec.ts:7:1 › Forms - Stock Item Validation:
src/frontend/tests/pui_forms.spec.ts#L1
2) [chromium] › pui_forms.spec.ts:7:1 › Forms - Stock Item Validation ────────────────────────────
Test timeout of 90000ms exceeded.
|
[chromium] › pui_forms.spec.ts:7:1 › Forms - Stock Item Validation:
src/frontend/tests/pui_forms.spec.ts#L49
2) [chromium] › pui_forms.spec.ts:7:1 › Forms - Stock Item Validation ────────────────────────────
Error: locator.click: Test timeout of 90000ms exceeded.
Call log:
- waiting for getByLabel('action-menu-stock-item-actions')
47 |
48 | // Edit the resulting stock item
> 49 | await page.getByLabel('action-menu-stock-item-actions').click();
| ^
50 | await page.getByLabel('action-menu-stock-item-actions-edit').click();
51 |
52 | await page.getByLabel('number-field-purchase_price').fill('-1');
at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_forms.spec.ts:49:59
|
[firefox] › pui_printing.spec.ts:11:1 › Label Printing:
src/frontend/tests/pui_printing.spec.ts#L1
3) [firefox] › pui_printing.spec.ts:11:1 › Label Printing ────────────────────────────────────────
Test timeout of 90000ms exceeded.
|
[firefox] › pui_printing.spec.ts:11:1 › Label Printing:
src/frontend/tests/login.ts#L37
3) [firefox] › pui_printing.spec.ts:11:1 › Label Printing ────────────────────────────────────────
Error: locator.waitFor: Test timeout of 90000ms exceeded.
Call log:
- waiting for getByText(/InvenTree Demo Server/) to be visible
at login.ts:37
35 | await page.waitForURL('**/platform/home');
36 |
> 37 | await page.getByText(/InvenTree Demo Server/).waitFor();
| ^
38 | };
39 |
40 | export const doLogout = async (page) => {
at doQuickLogin (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/login.ts:37:49)
at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_printing.spec.ts:12:3
|
[firefox] › pui_printing.spec.ts:55:1 › Report Printing:
src/frontend/tests/pui_printing.spec.ts#L1
4) [firefox] › pui_printing.spec.ts:55:1 › Report Printing ───────────────────────────────────────
Test timeout of 90000ms exceeded.
|
[firefox] › pui_printing.spec.ts:55:1 › Report Printing:
src/frontend/tests/login.ts#L37
4) [firefox] › pui_printing.spec.ts:55:1 › Report Printing ───────────────────────────────────────
Error: locator.waitFor: Test timeout of 90000ms exceeded.
Call log:
- waiting for getByText(/InvenTree Demo Server/) to be visible
at login.ts:37
35 | await page.waitForURL('**/platform/home');
36 |
> 37 | await page.getByText(/InvenTree Demo Server/).waitFor();
| ^
38 | };
39 |
40 | export const doLogout = async (page) => {
at doQuickLogin (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/login.ts:37:49)
at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_printing.spec.ts:56:3
|
Tests - Platform UI
Process completed with exit code 1.
|
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] › pui_settings.spec.ts#L1
src/frontend/[chromium] › pui_settings.spec.ts took 29.5s
|
Slow Test:
src/frontend/[chromium] › pui_general.spec.ts#L1
src/frontend/[chromium] › pui_general.spec.ts took 22.3s
|
Slow Test:
src/frontend/[chromium] › pui_printing.spec.ts#L1
src/frontend/[chromium] › pui_printing.spec.ts took 19.0s
|
Slow Test:
src/frontend/[chromium] › modals.spec.ts#L1
src/frontend/[chromium] › modals.spec.ts took 18.9s
|
Slow Test:
src/frontend/[firefox] › pui_command.spec.ts#L1
src/frontend/[firefox] › pui_command.spec.ts took 16.9s
|
🎭 Playwright Run Summary
1 failed
[firefox] › pui_basic.spec.ts:5:1 › Basic Login Test ───────────────────────────────────────────
3 flaky
[chromium] › pui_forms.spec.ts:7:1 › Forms - Stock Item Validation ─────────────────────────────
[firefox] › pui_printing.spec.ts:11:1 › Label Printing ─────────────────────────────────────────
[firefox] › pui_printing.spec.ts:55:1 › Report Printing ────────────────────────────────────────
116 passed (15.2m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
frontend-build
|
2.16 MB |
|
playwright-report
|
17.6 MB |
|