Skip to content

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

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

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

Triggered via pull request January 9, 2025 18:51
Status Failure
Total duration 25m 14s
Artifacts 2

playwright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 1 notice
[chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units: tests/test_system_solve.spec.mjs#L967
1) [chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ──── Error: expect(received).toBeCloseTo(expected, precision) Expected: 3 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 965 | 966 | let content = await page.textContent('#result-value-1'); > 967 | expect(parseLatexFloat(content)).toBeCloseTo(3, precision); | ^ 968 | content = await page.textContent('#result-units-1'); 969 | expect(content).toBe('m'); 970 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_system_solve.spec.mjs:967:36
[chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units: tests/test_system_solve.spec.mjs#L967
1) [chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ──── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 3 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 965 | 966 | let content = await page.textContent('#result-value-1'); > 967 | expect(parseLatexFloat(content)).toBeCloseTo(3, precision); | ^ 968 | content = await page.textContent('#result-units-1'); 969 | expect(content).toBe('m'); 970 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_system_solve.spec.mjs:967:36
[chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units: tests/test_system_solve.spec.mjs#L967
1) [chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ──── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 3 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 965 | 966 | let content = await page.textContent('#result-value-1'); > 967 | expect(parseLatexFloat(content)).toBeCloseTo(3, precision); | ^ 968 | content = await page.textContent('#result-units-1'); 969 | expect(content).toBe('m'); 970 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_system_solve.spec.mjs:967:36
[firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units: tests/test_system_solve.spec.mjs#L967
2) [firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ───── Error: expect(received).toBeCloseTo(expected, precision) Expected: 3 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 965 | 966 | let content = await page.textContent('#result-value-1'); > 967 | expect(parseLatexFloat(content)).toBeCloseTo(3, precision); | ^ 968 | content = await page.textContent('#result-units-1'); 969 | expect(content).toBe('m'); 970 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_system_solve.spec.mjs:967:36
[firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units: tests/test_system_solve.spec.mjs#L967
2) [firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ───── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 3 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 965 | 966 | let content = await page.textContent('#result-value-1'); > 967 | expect(parseLatexFloat(content)).toBeCloseTo(3, precision); | ^ 968 | content = await page.textContent('#result-units-1'); 969 | expect(content).toBe('m'); 970 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_system_solve.spec.mjs:967:36
[firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units: tests/test_system_solve.spec.mjs#L967
2) [firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ───── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 3 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 965 | 966 | let content = await page.textContent('#result-value-1'); > 967 | expect(parseLatexFloat(content)).toBeCloseTo(3, precision); | ^ 968 | content = await page.textContent('#result-units-1'); 969 | expect(content).toBe('m'); 970 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_system_solve.spec.mjs:967:36
[chromium] › test_database.spec.mjs:176:1 › Test database consistency: tests/test_database.spec.mjs#L186
3) [chromium] › test_database.spec.mjs:176:1 › Test database consistency ───────────────────────── TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: - waiting for locator('h3').locator('text=Retrieving Sheet') to be detached - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1krx6ni83a6">Retrieving Sheet</h3> - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1krx6ni83a6">Retrieving Sheet</h3> - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1krx6ni83a6">Retrieving Sheet</h3> 184 | await page.setViewportSize({ width: width, height: height }); 185 | > 186 | await page.locator('h3 >> text=Retrieving Sheet').waitFor({state: 'detached', timeout: 5000}); | ^ 187 | await page.locator('text=Accept').click(); 188 | await page.waitForSelector('.status-footer', { state: 'detached', timeout: pyodideLoadTimeout }); 189 | await page.keyboard.press('Escape'); // unselect all cells at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:186:53
[chromium] › test_database.spec.mjs:176:1 › Test database consistency: tests/test_database.spec.mjs#L186
3) [chromium] › test_database.spec.mjs:176:1 › Test database consistency ───────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: - waiting for locator('h3').locator('text=Retrieving Sheet') to be detached - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.xy5xque7ue">Retrieving Sheet</h3> - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.xy5xque7ue">Retrieving Sheet</h3> - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.xy5xque7ue">Retrieving Sheet</h3> - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.xy5xque7ue">Retrieving Sheet</h3> - locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.xy5xque7ue">Retrieving Sheet</h3> 184 | await page.setViewportSize({ width: width, height: height }); 185 | > 186 | await page.locator('h3 >> text=Retrieving Sheet').waitFor({state: 'detached', timeout: 5000}); | ^ 187 | await page.locator('text=Accept').click(); 188 | await page.waitForSelector('.status-footer', { state: 'detached', timeout: pyodideLoadTimeout }); 189 | await page.keyboard.press('Escape'); // unselect all cells at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:186:53
[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
4) [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)
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
2 failed [chromium] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ───── [firefox] › test_system_solve.spec.mjs:949:1 › Test zero placeholder numerical with units ────── 2 flaky [chromium] › test_database.spec.mjs:176:1 › Test database consistency ────────────────────────── [firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error 9 skipped 771 passed (21.5m)

Artifacts

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