MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
15 stars 5 forks source link

Run `test` CI sequentially to avoid segmentation faults #759

Closed allanlasser closed 1 day ago

allanlasser commented 1 day ago

We've observed segmentation faults when running vitest in GitHub Actions. This may be because vitest runs multithreaded by default, and it uses too much memory in the task runner.

This adds the --run flag to our GitHub test workflow, which forces vitest to run sequentially. It may add a few seconds to overall test execution, but should be more stable.

github-actions[bot] commented 1 day ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 21.72% 6629 / 30514
🔵 Statements 21.72% 6629 / 30514
🔵 Functions 39.49% 141 / 357
🔵 Branches 56.88% 351 / 617
File CoverageNo changed files found.
Generated in workflow #551 for commit 5b976b9 by the Vitest Coverage Report Action
netlify[bot] commented 1 day ago

Deploy Preview for documentcloud-frontend ready!

Name Link
Latest commit 5b976b9e51f4a0d8b41bc2f96f2cd153a84cc0e3
Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/670004672cb6e60009066366
Deploy Preview https://deploy-preview-759.muckcloud.com
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.