Repository navigation
[lexical] Chore: Migrate benchmarks to the Vitest 5 API - #9194
minwookshin wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi @minwookshin! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Your PRs can't be accepted or reviewed until the Meta CLA is accepted |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
This one will be superseded by #9235 which adds a typecheck to ci-check to prevent future regressions if the API changes again |
Description
The locked Vitest 5 dependency no longer exports the top-level
benchfunction, leaving five benchmark files with seven test-TypeScript errors. The root benchmark script also selects project names that no longer match Vitest's generated benchmark projects.Use the async test-context
benchfixture, await each measurement, and select the generated project names. Preserve the workloads, document sizes, timing settings, setup and correctness assertions. Use supported per-iteration hooks for the paste workload, narrow its paragraph fixture, and update the benchmark README. Production implementation and dependency versions are unchanged.Test plan
pnpm benchfails before collection with its old project filters.pnpm run bench --reporter=verbosecompletes all 93 tests across five files, with no skips. The full test TypeScript graph passes.Tested on
bc4dcc814f66e35b00f8e3b8b235e559f07454f2. The subsequent2fd17f0commit changes other files; this patch applies cleanly there. The full remote CI matrix has not been run locally. Benchmark runs retain the runner's module-export-getter warnings and establish execution/correctness, not a performance improvement.AI-assisted implementation and validation with OpenAI Codex.