Skip to content

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

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

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

Triggered via pull request January 7, 2025 02:48
Status Failure
Total duration 27m 30s
Artifacts 2

playwright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 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_basic.spec.mjs:728:1 › Test function notation with exponents and units: tests/test_basic.spec.mjs#L744
2) [chromium] › test_basic.spec.mjs:728:1 › Test function notation with exponents and units ────── TimeoutError: page.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-0') 742 | await page.waitForSelector('text=Updating...', {state: 'detached'}); 743 | > 744 | let content = await page.textContent('#result-value-0'); | ^ 745 | expect(parseLatexFloat(content)).toBeCloseTo(512, precision-1); 746 | content = await page.textContent('#result-value-3'); 747 | expect(parseLatexFloat(content)).toBeCloseTo(32, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:744:28
[chromium] › test_complex.spec.mjs:205:1 › Test conj function: tests/test_complex.spec.mjs#L224
3) [chromium] › test_complex.spec.mjs:205:1 › Test conj function ───────────────────────────────── TimeoutError: page.textContent: Timeout 120000ms exceeded. Call log: - waiting for locator('#result-value-0') 222 | await page.locator('#cell-2 >> text=Dimension Error').waitFor({state: "attached", timeout: 1000}); 223 | > 224 | let content = complexLatex(await page.textContent('#result-value-0')); | ^ 225 | expect(content.re).toBeCloseTo(-.001, precision); 226 | expect(content.im).toBeCloseTo(-.002, precision); 227 | content = await page.textContent('#result-units-0'); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_complex.spec.mjs:224:41
[chromium] › test_plotting.spec.mjs:419:1 › test scatter plot x-y scalar vector mismatch: tests/test_plotting.spec.mjs#L429
4) [chromium] › test_plotting.spec.mjs:419:1 › test scatter plot x-y scalar vector mismatch ────── TimeoutError: locator.waitFor: Timeout 1000ms exceeded. Call log: - waiting for locator('#plot-expression-1-0').locator('text=Both the x and y values need to be a scalar value or a vector') 427 | await page.waitForSelector('.status-footer', { state: 'detached' }); 428 | > 429 | await page.locator('#plot-expression-1-0 >> text=Both the x and y values need to be a scalar value or a vector').waitFor({state: 'attached', timeout: 1000}); | ^ 430 | 431 | }); 432 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:429:116
[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_plotting.spec.mjs:153:1 › Test plot number of points: tests/test_plotting.spec.mjs#L225
6) [firefox] › test_plotting.spec.mjs:153:1 › Test plot number of points ───────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 0 Received: 3436 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
test
Process completed with exit code 1.
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 5 flaky [chromium] › test_basic.spec.mjs:728:1 › Test function notation with exponents and units ─────── [chromium] › test_complex.spec.mjs:205:1 › Test conj function ────────────────────────────────── [chromium] › test_plotting.spec.mjs:419:1 › test scatter plot x-y scalar vector mismatch ─────── [chromium] › test_syntax_error_messages.spec.mjs:157:1 › Error message for missing multiplication symbol between expression then derivative [firefox] › test_plotting.spec.mjs:153:1 › Test plot number of points ────────────────────────── 9 skipped 763 passed (24.3m)

Artifacts

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