Skip to content

Add option ot mark the build item as complete if all tests passed #14489

Add option ot mark the build item as complete if all tests passed

Add option ot mark the build item as complete if all tests passed #14489

Triggered via pull request September 4, 2024 05:27
Status Success
Total duration 19m 6s
Artifacts 2

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 58s
Build - UI Platform
Style [pre-commit]
42s
Style [pre-commit]
Tests - API Schema Documentation
4m 30s
Tests - API Schema Documentation
Style [Documentation]
39s
Style [Documentation]
Tests - Migrations [PostgreSQL]
0s
Tests - Migrations [PostgreSQL]
Tests - Full Migration [SQLite]
0s
Tests - Full Migration [SQLite]
Tests - inventree-python
4m 51s
Tests - inventree-python
Tests - DB [PostgreSQL]
13m 19s
Tests - DB [PostgreSQL]
Tests - DB [MySQL]
12m 51s
Tests - DB [MySQL]
Tests - Platform UI
17m 52s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 23s
Style - Classic UI [JS]
Push new schema
0s
Push new schema
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 9 warnings, and 1 notice
Tests - API Schema Documentation
Process completed with exit code 1.
[chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
1) [chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ─────────────────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales: src/frontend/tests/baseFixtures.ts#L82
1) [chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ─────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 442 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/order/so/shipment/?order=1", + }, + "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@1a22a353715114b90f7d9e6760327956", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@1a22a353715114b90f7d9e6760327956", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/order/so/shipment/?order=1&limit=25&offset=0", + }, + "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@1a22a353715114b90f7d9e6760327956", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@1a22a353715114b90f7d9e6760327956", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/order/so/shipment/?order=1&limit=25&offset=0", + }, + "page": EventEmitter { + "_events": Object { + "bindingCall": [Function anonymous], + "close": [Function anonymous], + "crash": [Function anonymous], + "download": [Function anonymous], + "fileChooser": [Function anonymous], + "frameAttached": [Function anonymous],
[chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales: src/frontend/tests/pui_general.spec.ts#L106
1) [chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ─────────────────────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('No records found').first() to be visible 104 | await page.getByRole('tab', { name: 'Shipments' }).click(); 105 | await page.getByRole('tab', { name: 'Build Orders' }).click(); > 106 | await page.getByText('No records found').first().waitFor(); | ^ 107 | await page.getByRole('tab', { name: 'Attachments' }).click(); 108 | await page.getByText('No attachments found').first().waitFor(); 109 | await page.getByRole('tab', { name: 'Notes' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:106:52
[firefox] β€Ί pages/pui_orders.spec.ts:44:1 β€Ί PUI - Purchase Orders: src/frontend/tests/baseFixtures.ts#L82
2) [firefox] β€Ί pages/pui_orders.spec.ts:44:1 β€Ί PUI - Purchase Orders ───────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 56 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@c375adb8d99cdd43a69ef1a635389442", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:5173/platform/home", + }, + "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@ea9f7c57ba05ccbdd613dba29928174a", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "[JavaScript Error: \"Loading module from β€œhttp://localhost:5173/src/views/MobileAppView.tsx” was blocked because of a disallowed MIME type (β€œβ€).\" {file: \"http://localhost:5173/platform/home\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@ea9f7c57ba05ccbdd613dba29928174a", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:82 80 | }); 81 | await use(page); > 82 | expect(messages).toEqual([]); | ^ 83 | } 84 | }); 85 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:82:22)
[firefox] β€Ί pui_basic.spec.ts:5:1 β€Ί PUI - Basic Login Test: src/frontend/tests/baseFixtures.ts#L82
3) [firefox] β€Ί pui_basic.spec.ts:5:1 β€Ί PUI - Basic Login Test ──────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 242 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@f4bfca88730fcebf739ff35fd5eb0864", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 19, + "lineNumber": 2599, + "url": "http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732", + }, + "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@fbb9d4afd34d57ae5e7d9a70a4af0f76", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "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=a513ec9c:4031:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:4403:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=0db517d2:22623:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:3819:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:15473:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:3819:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:10002:25 + ProtectedRoute@http://localhost:5173/src/components/nav/Layout.tsx:1341:31 + LayoutComponent@http://localhost:5173/src/components/nav/Layout.tsx:1384:47 + Suspense + RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:4031:7 + Routes@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:4469:7 + Router@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:4417:7 + BrowserRouter@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:5159:7 + QueryClientProvider@http://localhost:5173/node_modules/.vite/deps/@tanstack_react-query.js?v=ca37f6bb:2719:27 + ModalsProvider@http://localhost:5173/node_modules/.vite/deps/@mantine_modals.js?v=e55f012a:184:24 + I18nProvider@http://localhost:5173/node_modules/.vite/deps/@lingui_react.js?v=949f7a29:159:20 + LanguageContext@http://localhost:5173/src/contexts/LanguageContext.tsx:3399:32 + MantineThemeProvider@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:2184:30 + MantineProvider@http://localhost:5173/node
[firefox] β€Ί pui_basic.spec.ts:38:1 β€Ί PUI - Quick Login Test: src/frontend/tests/baseFixtures.ts#L82
4) [firefox] β€Ί pui_basic.spec.ts:38:1 β€Ί PUI - Quick Login Test ─────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 272 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@fe2df4101e4f11175b3e029d4a6f8383", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 19, + "lineNumber": 2599, + "url": "http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732", + }, + "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@6523bed0e7962cfdfe0ad18611d21cef", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "The above error occurred in one of your React components: + + Lazy + Suspense + LoadingItem@http://localhost:5173/src/functions/loading.tsx:994:28 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:3819:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:15473:25 + Resizable2@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=ce61696d:2527:39 + DraggableCore@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=ce61696d:1481:9 + GridItem@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=ce61696d:3059:9 + div + ReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=ce61696d:3591:9 + ResponsiveReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=ce61696d:4320:9 + WidthProvider@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=ce61696d:5074:11 + div + WidgetLayout@http://localhost:5173/src/components/widgets/WidgetLayout.tsx:2166:29 + Home@http://localhost:5173/src/pages/Index/Home.tsx:1114:49 + Suspense + RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:4031:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=a513ec9c:4403:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=0db517d2:22623:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:3819:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:15473:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:3819:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-J57E7VAL.js?v=2f22f732:10002:25 + ProtectedRoute@http://localhost
[firefox] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
5) [firefox] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ──────────────────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales: src/frontend/tests/pui_general.spec.ts#L98
5) [firefox] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ──────────────────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('cell', { name: 'SO0001' }) 96 | // Sales Order Details 97 | await page.getByRole('tab', { name: 'Sales Orders' }).click(); > 98 | await page.getByRole('cell', { name: 'SO0001' }).click(); | ^ 99 | await page 100 | .getByLabel('Order Details') 101 | .getByText('Selling some stuff') at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:98:52
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 - inventree-python
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_stock.spec.ts#L1
src/frontend/[chromium] β€Ί pui_stock.spec.ts took 28.0s
Slow Test: src/frontend/[firefox] β€Ί pui_settings.spec.ts#L1
src/frontend/[firefox] β€Ί pui_settings.spec.ts took 26.2s
Slow Test: src/frontend/[chromium] β€Ί pages/pui_build.spec.ts#L1
src/frontend/[chromium] β€Ί pages/pui_build.spec.ts took 25.5s
Slow Test: src/frontend/[firefox] β€Ί pui_printing.spec.ts#L1
src/frontend/[firefox] β€Ί pui_printing.spec.ts took 24.4s
Slow Test: src/frontend/[firefox] β€Ί pages/pui_build.spec.ts#L1
src/frontend/[firefox] β€Ί pages/pui_build.spec.ts took 23.3s
🎭 Playwright Run Summary
5 flaky [chromium] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ──────────────────────────────────────────── [firefox] β€Ί pages/pui_orders.spec.ts:44:1 β€Ί PUI - Purchase Orders ────────────────────────────── [firefox] β€Ί pui_basic.spec.ts:5:1 β€Ί PUI - Basic Login Test ───────────────────────────────────── [firefox] β€Ί pui_basic.spec.ts:38:1 β€Ί PUI - Quick Login Test ──────────────────────────────────── [firefox] β€Ί pui_general.spec.ts:71:1 β€Ί PUI - Sales ───────────────────────────────────────────── 91 passed (11.8m)

Artifacts

Produced during runtime
Name Size
frontend-build
1.99 MB
schema.yml
60.9 KB