The GitHub Actions job "Backport Checks" on 
texera.git/fix/browser-mode-coverage has failed.
Run started by GitHub user Yicong-Huang (triggered by Yicong-Huang).

Head commit for run:
1c980d503aeae7e3707c33fbcb8a809bea684d7e / Xinyuan Lin <[email protected]>
fix(frontend): report coverage from the browser-mode tests

The browser-mode suite runs in CI and uploads its JUnit results, but never
its coverage, so every line it exercises is reported as untested. For
code-editor.component.ts that is 67 of the 115 lines Codecov calls
uncovered - measured by intersecting the two lcov records - and merging
them takes the file from 49.8% to 79.0% without writing a test.

Passing --coverage alone is not enough: the run fails with "Failed to
fetch dynamically imported module: /@id/@vitest/coverage-v8/browser",
because the coverage provider is loaded dynamically and is not in the
import graph that Vite's scan crawls. The tests still pass while the
coverage step errors, which is why this went unnoticed. Adding it to
optimizeDeps.include alongside buffer fixes it.

Browser coverage is written to coverage-browser/ so it does not overwrite
the jsdom run's coverage/gui/lcov.info, and both are uploaded under the
frontend flag, which Codecov merges.

Report URL: https://github.com/apache/texera/actions/runs/31563553690

With regards,
GitHub Actions via GitBox

Reply via email to