Skip to content

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) #1561

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP)

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) #1561

Triggered via pull request January 7, 2025 04:07
Status Failure
Total duration 26m 45s
Artifacts 2

playwright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 1 notice
[firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error: tests/test_symbolic_expression_error_handling.spec.mjs#L14
1) [firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error TimeoutError: locator.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-21') 12 | await page.locator('text=Updating...').waitFor({state: 'detached', timeout: pyodideLoadTimeout}); 13 | > 14 | let content = await page.locator('#result-value-21').textContent(); | ^ 15 | expect(parseLatexFloat(content)).toBeCloseTo(57168.5056551697, precision); 16 | }); 17 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_symbolic_expression_error_handling.spec.mjs:14:56
[firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error: tests/test_symbolic_expression_error_handling.spec.mjs#L14
1) [firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-21') 12 | await page.locator('text=Updating...').waitFor({state: 'detached', timeout: pyodideLoadTimeout}); 13 | > 14 | let content = await page.locator('#result-value-21').textContent(); | ^ 15 | expect(parseLatexFloat(content)).toBeCloseTo(57168.5056551697, precision); 16 | }); 17 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_symbolic_expression_error_handling.spec.mjs:14:56
[firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error: tests/test_symbolic_expression_error_handling.spec.mjs#L14
1) [firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-21') 12 | await page.locator('text=Updating...').waitFor({state: 'detached', timeout: pyodideLoadTimeout}); 13 | > 14 | let content = await page.locator('#result-value-21').textContent(); | ^ 15 | expect(parseLatexFloat(content)).toBeCloseTo(57168.5056551697, precision); 16 | }); 17 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_symbolic_expression_error_handling.spec.mjs:14:56
[chromium] › test_calc.spec.mjs:428:1 › Test unitless nested integral in exponent: tests/test_calc.spec.mjs#L439
2) [chromium] › test_calc.spec.mjs:428:1 › Test unitless nested integral in exponent ───────────── TimeoutError: page.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-0') 437 | await page.waitForSelector('.status-footer', {state: 'detached'}); 438 | > 439 | let content = await page.textContent('#result-value-0'); | ^ 440 | expect(parseLatexFloat(content)).toBeCloseTo(4, precision); 441 | content = await page.textContent('#result-units-0'); 442 | expect(content).toBe(''); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:439:28
[chromium] › test_matrix_multiplication.spec.mjs:142:1 › Units with square variable matrix times variable matrix using matrix multiplication operator: tests/test_matrix_multiplication.spec.mjs#L153
3) [chromium] › test_matrix_multiplication.spec.mjs:142:1 › Units with square variable matrix times variable matrix using matrix multiplication operator TimeoutError: page.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-0') 151 | await page.waitForSelector('text=Updating...', {state: 'detached'}); 152 | > 153 | let content = await page.textContent(`#result-value-0`); | ^ 154 | expect(content).toBe('\\begin{bmatrix} 5 \\cdot a + 7 \\cdot b & 6 \\cdot a + 8 \\cdot b \\\\ 5 \\cdot c + 7 \\cdot d & 6 \\cdot c + 8 \\cdot d \\end{bmatrix}'); 155 | 156 | // add some numbers for variables that define first matrix at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_matrix_multiplication.spec.mjs:153:28
[chromium] › test_plotting.spec.mjs:153:1 › Test plot number of points: tests/test_plotting.spec.mjs#L225
4) [chromium] › test_plotting.spec.mjs:153:1 › Test plot number of points ──────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 0 Received: 3422 223 | 224 | expect(compareImages(linearImageFile, curveImageFile)).toBeGreaterThan(100); > 225 | expect(compareImages(linearImageFile, twoPointCurveImageFile)).toEqual(0); | ^ 226 | }); 227 | 228 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:225:66
[chromium] › test_plotting.spec.mjs:153:1 › Test plot number of points: tests/test_plotting.spec.mjs#L225
4) [chromium] › test_plotting.spec.mjs:153:1 › Test plot number of points ──────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 0 Received: 3422 223 | 224 | expect(compareImages(linearImageFile, curveImageFile)).toBeGreaterThan(100); > 225 | expect(compareImages(linearImageFile, twoPointCurveImageFile)).toEqual(0); | ^ 226 | }); 227 | 228 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:225:66
[chromium] › test_syntax_error_messages.spec.mjs:157:1 › Error message for missing multiplication symbol between expression then derivative: tests/test_syntax_error_messages.spec.mjs#L160
5) [chromium] › test_syntax_error_messages.spec.mjs:157:1 › Error message for missing multiplication symbol between expression then derivative TimeoutError: locator.waitFor: Timeout 1000ms exceeded. Call log: - waiting for locator('text=Missing multiplication symbol in expression') 158 | // variable followed by number 159 | await page.setLatex(0, String.raw`a\frac{\mathrm{d}}{\mathrm{d}\left(x\right)}\left(x\right)=`); > 160 | await page.locator('text=Missing multiplication symbol in expression').waitFor({state: "attached", timeout: 1000}); | ^ 161 | }); 162 | 163 | test('Error message for missing multiplication symbol between expression then 2nd derivative', async () => { at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_syntax_error_messages.spec.mjs:160:74
[firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error: tests/test_file_save_open.spec.mjs#L147
6) [firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error Error: fileChooser.setFiles: Test ended. 145 | const path = "tests/test_sheet_parsing_error.epxyz"; 146 | page.on('filechooser', async (fileChooser) => { > 147 | await fileChooser.setFiles(path); | ^ 148 | }); 149 | await page.locator('#open-sheet').click(); 150 | at Page.<anonymous> (/home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_file_save_open.spec.mjs:147:5)
[firefox] › test_matrix_inverse.spec.mjs:42:1 › Matrix inverse with variable matrix: tests/test_matrix_inverse.spec.mjs#L50
7) [firefox] › test_matrix_inverse.spec.mjs:42:1 › Matrix inverse with variable matrix ─────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "\\begin{bmatrix} 2 & -3 \\\\ -1 & 2 \\end{bmatrix}" Received: "\\frac{1}{A}" 48 | 49 | let content = await page.textContent(`#result-value-1`); > 50 | expect(content).toBe(String.raw`\begin{bmatrix} 2 & -3 \\ -1 & 2 \end{bmatrix}`); | ^ 51 | }); 52 | 53 | test('Matrix exponent inverse with variable matrix', async () => { at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_matrix_inverse.spec.mjs:50:19
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: "screenshots", "test-results". 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/
🎭 Playwright Run Summary
1 failed [firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error 6 flaky [chromium] › test_calc.spec.mjs:428:1 › Test unitless nested integral in exponent ────────────── [chromium] › test_matrix_multiplication.spec.mjs:142:1 › Units with square variable matrix times variable matrix using matrix multiplication operator [chromium] › test_plotting.spec.mjs:153:1 › Test plot number of points ───────────────────────── [chromium] › test_syntax_error_messages.spec.mjs:157:1 › Error message for missing multiplication symbol between expression then derivative [firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error [firefox] › test_matrix_inverse.spec.mjs:42:1 › Matrix inverse with variable matrix ──────────── 9 skipped 762 passed (23.4m)

Artifacts

Produced during runtime
Name Size
screenshots Expired
15.9 MB
test-results Expired
184 MB