Skip to content

[0.17.x] Fix REST registration endpoint (#8738) #16411

[0.17.x] Fix REST registration endpoint (#8738)

[0.17.x] Fix REST registration endpoint (#8738) #16411

Triggered via pull request December 25, 2024 00:10
Status Success
Total duration 25m 12s
Artifacts 2

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 57s
Build - UI Platform
Style [pre-commit]
30s
Style [pre-commit]
Tests - API Schema Documentation
4m 38s
Tests - API Schema Documentation
Style [Documentation]
1m 8s
Style [Documentation]
Tests - Migrations [PostgreSQL]
0s
Tests - Migrations [PostgreSQL]
Tests - Full Migration [SQLite]
0s
Tests - Full Migration [SQLite]
Tests - inventree-python
5m 46s
Tests - inventree-python
Tests - DB [PostgreSQL]
15m 34s
Tests - DB [PostgreSQL]
Tests - DB [MySQL]
15m 9s
Tests - DB [MySQL]
Tests - Platform UI
24m 15s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 29s
Style - Classic UI [JS]
Push new schema
0s
Push new schema
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 4 warnings, and 1 notice
Tests - API Schema Documentation
Process completed with exit code 1.
[chromium] › pages/pui_part.spec.ts:74:1 › Parts - Locking: src/frontend/tests/pages/pui_part.spec.ts#L1
1) [chromium] › pages/pui_part.spec.ts:74:1 › Parts - Locking ──────────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_part.spec.ts:74:1 › Parts - Locking: src/frontend/tests/login.ts#L37
1) [chromium] › pages/pui_part.spec.ts:74:1 › Parts - Locking ──────────────────────────────────── 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:51) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_part.spec.ts:75:3
[chromium] › pages/pui_part.spec.ts:100:1 › Parts - Allocations: src/frontend/tests/pages/pui_part.spec.ts#L1
2) [chromium] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ─────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_part.spec.ts:100:1 › Parts - Allocations: src/frontend/tests/pages/pui_part.spec.ts#L125
2) [chromium] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ─────────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('BO0001') to be visible 123 | 124 | // Expected order reference values > 125 | await page.getByText('BO0001').waitFor(); | ^ 126 | await page.getByText('BO0016').waitFor(); 127 | await page.getByText('BO0019').waitFor(); 128 | await page.getByText('SO0008').waitFor(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_part.spec.ts:125:34
[chromium] › pui_login.spec.ts:36:1 › Login - Quick Test: src/frontend/tests/baseFixtures.ts#L85
3) [chromium] › pui_login.spec.ts:36:1 › Login - Quick Test ────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 212 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/generic/status/", + }, + "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@610e062b4dd75928d3f1150b2fd7d9e6", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@610e062b4dd75928d3f1150b2fd7d9e6", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/", + }, + "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@610e062b4dd75928d3f1150b2fd7d9e6", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@610e062b4dd75928d3f1150b2fd7d9e6", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/settings/user/", + }, + "page": EventEmitter { + "_events": Object { + "bindingCall": [Function anonymous], + "close": [Function anonymous], + "crash": [Function anonymous], + "download": [Function ano
[chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L1
4) [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
4) [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:100:1 › Parts - Allocations: src/frontend/tests/pages/pui_part.spec.ts#L1
5) [firefox] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ──────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_part.spec.ts:100:1 › Parts - Allocations: src/frontend/tests/baseFixtures.ts#L85
5) [firefox] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ──────────────────────────────── 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@3fc3ac7dc283ccc780c33537fc258e12", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 1, + "lineNumber": 0, + "url": "http://localhost:5173/platform/stock/item/324/", + }, + "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@ca159e96287b5b63b3f4ceb9d3e0a945", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/defaults/links.tsx” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/stock/item/324/\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@ca159e96287b5b63b3f4ceb9d3e0a945", + "_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:100:1 › Parts - Allocations: src/frontend/tests/pages/pui_part.spec.ts#L104
5) [firefox] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ──────────────────────────────── Error: page.goto: Test timeout of 90000ms exceeded. Call log: - navigating to "http://localhost:5173/platform/stock/item/324/", waiting until "load" 102 | 103 | // Let's look at the allocations for a single stock item > 104 | await page.goto(`${baseUrl}/stock/item/324/`); | ^ 105 | await page.getByRole('tab', { name: 'Allocations' }).click(); 106 | 107 | await page.getByRole('button', { name: 'Build Order Allocations' }).waitFor(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_part.spec.ts:104:14
Filter
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: src/frontend/[chromium] › modals.spec.ts#L1
src/frontend/[chromium] › modals.spec.ts took 24.6s
Slow Test: src/frontend/[chromium] › pui_command.spec.ts#L1
src/frontend/[chromium] › pui_command.spec.ts took 17.6s
Slow Test: src/frontend/[firefox] › modals.spec.ts#L1
src/frontend/[firefox] › modals.spec.ts took 15.8s
🎭 Playwright Run Summary
11 flaky [chromium] › pages/pui_part.spec.ts:74:1 › Parts - Locking ───────────────────────────────────── [chromium] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ──────────────────────────────── [chromium] › pui_login.spec.ts:36:1 › Login - Quick Test ─────────────────────────────────────── [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ───────────────────────────────── [firefox] › pages/pui_part.spec.ts:100:1 › Parts - Allocations ───────────────────────────────── [firefox] › pages/pui_part.spec.ts:165:1 › Parts - Pricing (Nothing, BOM) ────────────────────── [firefox] › pages/pui_purchase_order.spec.ts:56:1 › Purchase Orders - Filters ────────────────── [firefox] › pages/pui_scan.spec.ts:108:1 › Scanning (Build) ──────────────────────────────────── [firefox] › pui_login.spec.ts:5:1 › Login - Basic Test ───────────────────────────────────────── [firefox] › pui_settings.spec.ts:9:1 › Settings - Language / Color ───────────────────────────── [firefox] › settings/selectionList.spec.ts:5:1 › PUI - Admin - Parameter ─────────────────────── 127 passed (16.9m)

Artifacts

Produced during runtime
Name Size
frontend-build
2.25 MB
schema.yml
65 KB