Skip to content

Shrink bundle and speed up e2e tests - #269

Open
joshua-dean wants to merge 2 commits into
mainfrom
feature/small-optims
Open

joshua-dean wants to merge 2 commits into
mainfrom
feature/small-optims

Conversation

@joshua-dean

@joshua-dean joshua-dean commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

feature/small-optims

Description

3 optimization-focused changes here:

  1. Trim turf to shrink the bundle
  2. Tweak some Playwright settings/return vals to speed up E2E tests
  3. Modify E2E structure for faster CI

Fine dropping (2) and/or (3) if they seem questionable or problematic w.r.t. some other process.
(1) is kinda free I think

PR Checklist

  • Merged latest main
  • Version number in package.json has been bumped since last release
  • Version numbers match between package package.json and src/version.js
  • Updated documentation if necessary (currently just in api_spec.md)
  • Added changes to CHANGELOG.md

Breaking API Changes

not really

AI Disclaimer

🤖 Claude helped, human triaged.

- Import turf functions individually instead of the @turf/turf umbrella.
  ulabel.min.js drops from 1.16 MiB to 621 KiB (gzip 309 KB to 159 KB).
- Record e2e video only on first retry, not on every test.
- Use the default worker count locally (3 on CI).
- Stop serializing window.ulabel back to node in wait_for_ulabel_init.
- Run CI e2e as a per-browser matrix so browsers run in parallel.

Co-authored-by: joshua-dean <alder314@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joshua-dean joshua-dean self-assigned this Oct 26, 2026
@joshua-dean joshua-dean added bug Something isn't working enhancement New feature or request labels Oct 26, 2026
@joshua-dean

Copy link
Copy Markdown
Collaborator Author

Will bump version number/sync/sequence behind #268 etc. once we've discussed which of 1/2/3 are acceptable contributions

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant