Skip to content

Remove websocket chat extension #372

Remove websocket chat extension

Remove websocket chat extension #372

Triggered via pull request November 14, 2024 13:49
Status Failure
Total duration 13m 24s
Artifacts 2

build.yml

on: pull_request
Build chat extension
3m 11s
Build chat extension
Python test on extensions
48s
Python test on extensions
Integration tests
7m 11s
Integration tests
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 6 warnings, and 1 notice
Python test on extensions
Process completed with exit code 1.
tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata: python/jupyterlab-collaborative-chat/ui-tests/tests/chat-file.spec.ts#L1
1) tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata ──────────────── Test timeout of 60000ms exceeded.
tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata: python/jupyterlab-collaborative-chat/ui-tests/http:/localhost:8888/static/lab/jlab_core.30ac71af4fabafb542d8.js?v=30ac71af4fabafb542d8#L1
1) tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata ──────────────── Error: proxy.evaluate: Error: Invalid response: 404 Not Found at i.create (http://localhost:8888/static/lab/jlab_core.30ac71af4fabafb542d8.js?v=30ac71af4fabafb542d8:1:1429663) at async m.get (http://localhost:8888/static/lab/jlab_core.30ac71af4fabafb542d8.js?v=30ac71af4fabafb542d8:1:1374452) at async eval (eval at evaluate (:226:30), <anonymous>:2:12) at async <anonymous>:252:30 at i.create (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/http:/localhost:8888/static/lab/jlab_core.30ac71af4fabafb542d8.js?v=30ac71af4fabafb542d8:1:1429663) at async m.get (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/http:/localhost:8888/static/lab/jlab_core.30ac71af4fabafb542d8.js?v=30ac71af4fabafb542d8:1:1374452) at async eval (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/eval at evaluate (:226:30), <anonymous>:2:12) at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/async <anonymous>:252:30 at readFileContent (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/chat-file.spec.ts:32:21) at hasId (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/chat-file.spec.ts:173:27) at Timeout.check (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:183:33)
tests/message-toolbar.spec.ts:51:7 › #messageToolbar › message should have a toolbar: python/jupyterlab-collaborative-chat/ui-tests/tests/message-toolbar.spec.ts#L1
2) tests/message-toolbar.spec.ts:51:7 › #messageToolbar › message should have a toolbar ────────── Test timeout of 60000ms exceeded.
tests/message-toolbar.spec.ts:51:7 › #messageToolbar › message should have a toolbar: python/jupyterlab-collaborative-chat/ui-tests/tests/message-toolbar.spec.ts#L60
2) tests/message-toolbar.spec.ts:51:7 › #messageToolbar › message should have a toolbar ────────── Error: locator.hover: Test timeout of 60000ms exceeded. Call log: - waiting for getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container .jp-chat-rendermime-markdown').first() 58 | 59 | //Should display the message toolbar > 60 | await message.hover({ position: { x: 5, y: 5 } }); | ^ 61 | await expect(message.locator('.jp-chat-toolbar')).toBeVisible(); 62 | }); 63 | at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/message-toolbar.spec.ts:60:19
tests/send-message.spec.ts:60:7 › #sendMessages › should use settings value sendWithShiftEnter: python/jupyterlab-collaborative-chat/ui-tests/tests/send-message.spec.ts#L87
3) tests/send-message.spec.ts:60:7 › #sendMessages › should use settings value sendWithShiftEnter Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container').locator('.jp-chat-message') Expected: 0 Received: 1 Call log: - expect.toHaveCount with timeout 5000ms - waiting for getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container').locator('.jp-chat-message') - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" 85 | await input!.press('Enter'); 86 | > 87 | await expect(messages!.locator('.jp-chat-message')).toHaveCount(0); | ^ 88 | 89 | // Should not send message with Shift+Enter 90 | await input!.press('Shift+Enter'); at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/send-message.spec.ts:87:57
tests/side-panel.spec.ts:123:9 › #sidepanel › #creation › should reveal the existing chat when creating again: python/jupyterlab-collaborative-chat/ui-tests/tests/side-panel.spec.ts#L153
4) tests/side-panel.spec.ts:123:9 › #sidepanel › #creation › should reveal the existing chat when creating again Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: locator('.jp-SidePanel.jp-collab-chat-sidepanel').first().locator('.jp-SidePanel-content .jp-AccordionPanel-title') Expected pattern: /lm-mod-expanded/ Received string: "lm-AccordionPanel-title jp-AccordionPanel-title" Call log: - expect.toHaveClass with timeout 5000ms - waiting for locator('.jp-SidePanel.jp-collab-chat-sidepanel').first().locator('.jp-SidePanel-content .jp-AccordionPanel-title') - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" - locator resolved to <h3 tabindex="0" id="title-key-2-16" aria-expanded="…>…</h3> - unexpected value "lm-AccordionPanel-title jp-AccordionPanel-title" 151 | 152 | // the chat should be expanded. > 153 | await expect(chatTitle).toHaveClass(/lm-mod-expanded/); | ^ 154 | }); 155 | }); 156 | at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/side-panel.spec.ts:153:31
tests/ui-config.spec.ts:115:7 › #stackedMessages › should update settings value stackMessages on existing chat: python/jupyterlab-collaborative-chat/ui-tests/tests/ui-config.spec.ts#L143
5) tests/ui-config.spec.ts:115:7 › #stackedMessages › should update settings value stackMessages on existing chat Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container').locator('.jp-chat-message') Expected: 2 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container').locator('.jp-chat-message') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 141 | const messagesContainer = chatPanel.locator('.jp-chat-messages-container'); 142 | const messages = messagesContainer.locator('.jp-chat-message'); > 143 | await expect(messages).toHaveCount(2); | ^ 144 | 145 | // Hide the time to avoid time zone diff 146 | await messages at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/ui-config.spec.ts:143:28
tests/ui-config.spec.ts:115:7 › #stackedMessages › should update settings value stackMessages on existing chat: python/jupyterlab-collaborative-chat/ui-tests/tests/ui-config.spec.ts#L143
5) tests/ui-config.spec.ts:115:7 › #stackedMessages › should update settings value stackMessages on existing chat Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container').locator('.jp-chat-message') Expected: 2 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container').locator('.jp-chat-message') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 141 | const messagesContainer = chatPanel.locator('.jp-chat-messages-container'); 142 | const messages = messagesContainer.locator('.jp-chat-message'); > 143 | await expect(messages).toHaveCount(2); | ^ 144 | 145 | // Hide the time to avoid time zone diff 146 | await messages at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/ui-config.spec.ts:143:28
tests/ui-config.spec.ts:217:7 › #typingNotification › should not display typing users if disabled: python/jupyterlab-collaborative-chat/ui-tests/tests/ui-config.spec.ts#L251
6) tests/ui-config.spec.ts:217:7 › #typingNotification › should not display typing users if disabled Error: The typing notification should not be attached. 249 | 250 | if (visible) { > 251 | throw Error('The typing notification should not be attached.'); | ^ 252 | } 253 | }); 254 | at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/ui-config.spec.ts:251:13
tests/unread.spec.ts:280:7 › #localStorage › should save last read message in localStorage: python/jupyterlab-collaborative-chat/ui-tests/tests/unread.spec.ts#L1
7) tests/unread.spec.ts:280:7 › #localStorage › should save last read message in localStorage ──── Test timeout of 60000ms exceeded.
Check Links
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Build jupyter_chat
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Python test on extensions
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Build chat extension
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, 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/
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: "jupyterlab_collaborative_chat-artifacts", "jupyterlab_collaborative_chat-playwright-tests". 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/
Integration tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/download-artifact@v3, actions/cache@v3, 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
7 flaky tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata ───────────────── tests/message-toolbar.spec.ts:51:7 › #messageToolbar › message should have a toolbar ─────────── tests/send-message.spec.ts:60:7 › #sendMessages › should use settings value sendWithShiftEnter ─ tests/side-panel.spec.ts:123:9 › #sidepanel › #creation › should reveal the existing chat when creating again tests/ui-config.spec.ts:115:7 › #stackedMessages › should update settings value stackMessages on existing chat tests/ui-config.spec.ts:217:7 › #typingNotification › should not display typing users if disabled tests/unread.spec.ts:280:7 › #localStorage › should save last read message in localStorage ───── 2 skipped 79 passed (5.9m)

Artifacts

Produced during runtime
Name Size
jupyterlab_collaborative_chat-artifacts
1.69 MB
jupyterlab_collaborative_chat-playwright-tests
1.13 MB