mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

This is an alternative approach to #3698 that was setting up a custom mapping between chromium revisions and our mirrored builds. For example, we were taking chromium `792639` and re-packaging it to our CDN as Chromium 1000. One big downside of this opaque mapping was inability to quickly understand which Chromium is mirrored to CDN. To solve this, this patch starts treating browser revision as a fractional number, with and integer part being a chromium revision, and fractional part being our build number. For example, we can generate builds `792639`, `792639.1`, `792639.2` etc, all of which will pick Chromium `792639` and re-package it to our CDN. In the Playwright code itself, there are a handful of places that treat browser revision as integer, exclusively to compare revision with some particular revision numbers. This code would still work as-is, but I changed these places to use `parseFloat` instead of `parseInt` for correctness.