fix(ct): Don't bloat metainfo.json file when # or ? is present in id#39074
fix(ct): Don't bloat metainfo.json file when # or ? is present in id#39074mikstime wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
@mikstime Thank you for the PR! Is there any way you can share a repro, or even better - turn that into a test? That would help us to review and prevent future regressions. |
Test results for "tests 1"6 failed 4 flaky34255 passed, 662 skipped Merge workflow run. |
Test results for "MCP"4 failed 3816 passed, 145 skipped Merge workflow run. |
Here is an example https://github.com/mikstime/playwright |
Wonderful! Could you please add a test to |
|
@microsoft-github-policy-service agree |
Sure. Thank you for the instructions. |
Proposal
Remove the
?or#part from dependencies in themetainfo.jsonfile.Description
@playwright/experimental-ct-coregenerates ametainfo.jsonfile used for caching and other optimizations performed by Playwright under the hood.The current implementation relies on a Vite plugin to generate this file. However, Vite prohibits the usage of
#and?in file names, meaning there is no reason to store them in themetainfo.jsonfile.We experienced two major issues with the current behavior:
Our
metainfo.jsonfile exceeded 512MB, which is the hard limit for theJSON.parse()method, resulting in unexpected crashesThis data was serialized and deserialized each time tests ran, resulting in a 4x slowdown of tests in our project
Example
Metainfo.json file is reduced from 1.4M to 4.0K in provided example
https://github.com/mikstime/playwright