nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
292 stars 162 forks source link

Replace jest-puppeteer with Playwright #1884

Closed victorlin closed 3 weeks ago

victorlin commented 3 weeks ago

Description of proposed changes

Advantages of the new Playwright setup:

  1. It auto-detects whether a server is already running (no need for two separate npm scripts)
  2. Browser installation is done in a separate command. Previously, it was done on installation of puppeteer which became difficult to debug when it timed out on remote build environments.
  3. It requires much fewer dependencies (see diff of package-lock.json)

Related issue(s)

Checklist

victorlin commented 3 weeks ago

Jobs using npm ci without --ignore-scripts (build, smoke-test) now run in ~1m30s compared to the previous ~6m.