Skip to content

Fix CI

Fix CI #885

Triggered via pull request November 22, 2023 01:43
Status Failure
Total duration 13m 15s
Artifacts 2

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 4 warnings, and 1 notice
tests/notebook.spec.ts:67:7 › Notebook API Visual Regression › Light theme: Cell outputs should be correct: ui-tests/tests/notebook.spec.ts#L45
1) tests/notebook.spec.ts:67:7 › Notebook API Visual Regression › Light theme: Cell outputs should be correct Error: Screenshot comparison failed: Expected an image 656px by 601px, received 656px by 176px. 7107 pixels (ratio 0.02 of all image pixels) are different. Expected: /home/runner/work/jupytercad/jupytercad/ui-tests/tests/notebook.spec.ts-snapshots/light-Notebook-ipynb-cell-0-linux.png Received: /home/runner/work/jupytercad/jupytercad/ui-tests/test-results/tests-notebook-Notebook-API-Visual-Regression-Light-theme-Cell-outputs-should-be-correct/light-Notebook-ipynb-cell-0-actual.png Diff: /home/runner/work/jupytercad/jupytercad/ui-tests/test-results/tests-notebook-Notebook-API-Visual-Regression-Light-theme-Cell-outputs-should-be-correct/light-Notebook-ipynb-cell-0-diff.png 43 | 44 | for (let c = 0; c < numCellImages; ++c) { > 45 | expect(results[c]).toMatchSnapshot( | ^ 46 | getCaptureImageName(contextPrefix, notebook, c) 47 | ); 48 | } at testCellOutputs (/home/runner/work/jupytercad/jupytercad/ui-tests/tests/notebook.spec.ts:45:26) at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/notebook.spec.ts:71:5
tests/notebook.spec.ts:74:7 › Notebook API Visual Regression › Dark theme: Cell outputs should be correct: ui-tests/tests/notebook.spec.ts#L45
2) tests/notebook.spec.ts:74:7 › Notebook API Visual Regression › Dark theme: Cell outputs should be correct Error: Screenshot comparison failed: Expected an image 656px by 601px, received 656px by 176px. 281113 pixels (ratio 0.72 of all image pixels) are different. Expected: /home/runner/work/jupytercad/jupytercad/ui-tests/tests/notebook.spec.ts-snapshots/dark-Notebook-ipynb-cell-0-linux.png Received: /home/runner/work/jupytercad/jupytercad/ui-tests/test-results/tests-notebook-Notebook-API-Visual-Regression-Dark-theme-Cell-outputs-should-be-correct/dark-Notebook-ipynb-cell-0-actual.png Diff: /home/runner/work/jupytercad/jupytercad/ui-tests/test-results/tests-notebook-Notebook-API-Visual-Regression-Dark-theme-Cell-outputs-should-be-correct/dark-Notebook-ipynb-cell-0-diff.png 43 | 44 | for (let c = 0; c < numCellImages; ++c) { > 45 | expect(results[c]).toMatchSnapshot( | ^ 46 | getCaptureImageName(contextPrefix, notebook, c) 47 | ); 48 | } at testCellOutputs (/home/runner/work/jupytercad/jupytercad/ui-tests/tests/notebook.spec.ts:45:26) at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/notebook.spec.ts:78:5
tests/sketcher.spec.ts:28:7 › Sketcher test › Should open the sketcher dialog: ui-tests/tests/sketcher.spec.ts#L1
3) tests/sketcher.spec.ts:28:7 › Sketcher test › Should open the sketcher dialog ───────────────── Test timeout of 60000ms exceeded.
tests/sketcher.spec.ts:28:7 › Sketcher test › Should open the sketcher dialog: ui-tests/tests/sketcher.spec.ts#L41
3) tests/sketcher.spec.ts:28:7 › Sketcher test › Should open the sketcher dialog ───────────────── Error: locator.click: Target closed =========================== logs =========================== waiting for getByRole('tablist', { name: 'alternate sidebar' }).getByRole('tab', { name: 'JupyterCad Control Panel' }) locator resolved to <li role="tab" tabindex="-1" id="tab-key-1-7" aria-s…>…</li> attempting click action waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #1 waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #2 waiting 20ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #3 waiting 100ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #4 waiting 100ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #5 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #6 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #7 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #8 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #9 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #10 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog" ar…>…</dialog> intercepts pointer events retrying click action, attempt #11 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed
tests/sketcher.spec.ts:56:7 › Sketcher test › Should draw a circle: ui-tests/tests/sketcher.spec.ts#L96
4) tests/sketcher.spec.ts:56:7 › Sketcher test › Should draw a circle ──────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/sketcher.spec.ts-snapshots/Sketcher-Circle-test-jcad-linux.png, writing actual. 94 | const dialog = await page.$('.lm-Widget.lm-Panel.jp-Dialog-content'); 95 | if (dialog) { > 96 | expect(await dialog.screenshot()).toMatchSnapshot({ | ^ 97 | name: `Sketcher-Circle-${fileName}.png`, 98 | maxDiffPixelRatio: 0.01 99 | }); at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/sketcher.spec.ts:96:41
tests/tree.spec.ts:28:7 › Tree UI test › Should display the object tree: ui-tests/tests/tree.spec.ts#L1
5) tests/tree.spec.ts:28:7 › Tree UI test › Should display the object tree ─────────────────────── Test timeout of 60000ms exceeded.
tests/tree.spec.ts:28:7 › Tree UI test › Should display the object tree: ui-tests/tests/tree.spec.ts#L54
5) tests/tree.spec.ts:28:7 › Tree UI test › Should display the object tree ─────────────────────── Error: locator.click: Page closed =========================== logs =========================== waiting for locator('[data-test-id="react-tree-root"] div.jpcad-control-panel-tree').nth(4) ============================================================ 52 | .locator('[data-test-id="react-tree-root"] div.jpcad-control-panel-tree') 53 | .nth(4) > 54 | .click(); | ^ 55 | 56 | expect(errors).toBe(0); 57 | const tree = await page.getByRole('region', { at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/tree.spec.ts:54:8
tests/ui.spec.ts:22:9 › UI Test › Extension activation test › should emit an activation console message: ui-tests/tests/ui.spec.ts#L36
6) tests/ui.spec.ts:22:9 › UI Test › Extension activation test › should emit an activation console message Error: expect(received).toHaveLength(expected) Expected length: 1 Received length: 0 Received array: [] 34 | expect( 35 | logs.filter(s => s === 'JupyterLab extension jupytercad is activated!') > 36 | ).toHaveLength(1); | ^ 37 | expect(logs.filter(s => s === 'Initializing OCC...')).toHaveLength(1); 38 | expect(logs.filter(s => s === 'Done!')).toHaveLength(1); 39 | }); at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/ui.spec.ts:36:9
tests/ui.spec.ts:118:9 › UI Test › File operator test › Should be able to add object to scene: ui-tests/tests/ui.spec.ts#L1
7) tests/ui.spec.ts:118:9 › UI Test › File operator test › Should be able to add object to scene ─ Test timeout of 60000ms exceeded.
tests/ui.spec.ts:118:9 › UI Test › File operator test › Should be able to add object to scene: ui-tests/tests/ui.spec.ts#L129
7) tests/ui.spec.ts:118:9 › UI Test › File operator test › Should be able to add object to scene ─ Error: locator.click: Page closed =========================== logs =========================== waiting for locator('button.jp-ToolbarButtonComponent[data-command=\'jupytercad:newBox\']') ============================================================ 127 | "button.jp-ToolbarButtonComponent[data-command='jupytercad:newBox']" 128 | ); > 129 | await btn.click(); | ^ 130 | const nameInput = await page.locator( 131 | 'input[id^="id-jp-schemaform"][label="Name"]' 132 | ); at /home/runner/work/jupytercad/jupytercad/ui-tests/tests/ui.spec.ts:129:17
🎭 Playwright Run Summary
10 failed tests/notebook.spec.ts:67:7 › Notebook API Visual Regression › Light theme: Cell outputs should be correct tests/notebook.spec.ts:74:7 › Notebook API Visual Regression › Dark theme: Cell outputs should be correct tests/sketcher.spec.ts:28:7 › Sketcher test › Should open the sketcher dialog ────────────────── tests/sketcher.spec.ts:56:7 › Sketcher test › Should draw a circle ───────────────────────────── tests/tree.spec.ts:28:7 › Tree UI test › Should display the object tree ──────────────────────── tests/ui.spec.ts:22:9 › UI Test › Extension activation test › should emit an activation console message tests/ui.spec.ts:118:9 › UI Test › File operator test › Should be able to add object to scene ── tests/ui.spec.ts:159:9 › UI Test › File operator test › Should be able to remove object ──────── tests/ui.spec.ts:197:9 › UI Test › File operator test › Should be able to edit object ────────── tests/ui.spec.ts:245:9 › UI Test › File operator test › Should be able to do multi selection ─── 1 passed (5.7m)
Build jupytercad
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build jupytercad
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build jupytercad
This action is deprecated and no longer maintained. Please use mamba-org/setup-micromamba instead. See `https://github.com/mamba-org/provision-with-micromamba#migration-to-setup-micromamba` for a migration guide.
Integration tests
This action is deprecated and no longer maintained. Please use mamba-org/setup-micromamba instead. See `https://github.com/mamba-org/provision-with-micromamba#migration-to-setup-micromamba` for a migration guide.

Artifacts

Produced during runtime
Name Size
extension-artifacts Expired
21.2 MB
jupytercad-playwright-tests Expired
11.2 MB