-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch to the Firefox Stable equivalent by default #6926
feat: switch to the Firefox Stable equivalent by default #6926
Conversation
f96c902
to
f0b6782
Compare
@@ -19,9 +19,9 @@ jobs: | |||
- uses: actions/setup-node@v2 | |||
with: | |||
node-version: 12 | |||
- uses: microsoft/playwright-github-action@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR: We use microsoft/playwright-github-action
in quite a few other places in this repository. Can we fully remove it from the repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yess good point
super(playwrightOptions.rootSdkObject, 'browser-type'); | ||
this.attribution.browserType = this; | ||
this._playwrightOptions = playwrightOptions; | ||
this._name = browserName; | ||
this._name = name; | ||
this._binaryName = binaryName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'm not a huge fan of _binaryName
. Maybe:
_name
->_baseBrowserName
_binaryName
->_browserName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word "browser" is very overloaded, so I'd prefer to have distinct names for distinct entities.
To elaborate: both //src/utils/registry.ts
and playwright servers //src/server/browserType.ts
use word "browser" here and there, yet these are two very different things:
- in playwright servers, "browser" means the browser interface we use to communicate. So we have "chromium" for CDP, "webkit" for WebInspector Remote Debugging Protocol, and "firefox" for juggler. These all are "browsers".
- in registry, "browser" means an entity that we download from our CDN. Originally we were only downloading browsers, but we now have FFMPEG and we are considering moving WinLDD there as well.
If we were to start over, we'd establish some other terminology for the registry that doesn't include name "browser" - "binary" seems to be fine since it's distinct enough and is not overused around the codebase.
This patch: - starts downloading Firefox Stable equivalent by default - starts running Firefox-Stable on our smoke tests (tests-1) - starts running Firefox-Beta on our CQ1 tests (tests-2) Note: there's a little confusion right now with browser names: - `firefox-stable` - firefox-stable equivalent - `firefox`- firefox-beta equivalent I'll rename `firefox` to `firefox-beta` in a follow-up. Fixes microsoft#6817
6343ddb
to
1e6a200
Compare
) This patch: - starts downloading Firefox Stable equivalent by default - starts running Firefox-Stable on our smoke tests (tests-1) - starts running Firefox-Beta on our CQ1 tests (tests-2) Note: there's a little confusion right now with browser names: - `firefox-stable` - firefox-stable equivalent - `firefox`- firefox-beta equivalent I'll rename `firefox` to `firefox-beta` in a follow-up. Fixes microsoft#6817
…rosoft#6926)" This reverts commit a25b116. In a discussion with Dmitry Gozman we decided to revert this and instead proceed with the following approach: - rename `//browser_patches/firefox` to `//browser_patches/firefox-beta` - rename `//browser_patches/firefox-stable` folder to `//browser_patches/firefox` In all of the folders, we will keep the `BUILD_NUMBER` original so that it doesn't clash on the CDN.
…rosoft#6926)" This reverts commit a25b116. In a discussion with Dmitry Gozman we decided to revert this and instead proceed with the following approach: - rename `//browser_patches/firefox` to `//browser_patches/firefox-beta` - rename `//browser_patches/firefox-stable` folder to `//browser_patches/firefox` In all of the folders, we will keep the `BUILD_NUMBER` original so that it doesn't clash on the CDN.
…)" (#6947) This reverts commit a25b116. In a discussion with Dmitry Gozman we decided to revert this and instead proceed with the following approach: - rename `//browser_patches/firefox` to `//browser_patches/firefox-beta` - rename `//browser_patches/firefox-stable` folder to `//browser_patches/firefox` In all of the folders, we will keep the `BUILD_NUMBER` original so that it doesn't clash on the CDN.
This patch:
Note: there's a little confusion right now with browser names:
firefox-stable
- firefox-stable equivalentfirefox
- firefox-beta equivalentI'll rename
firefox
tofirefox-beta
in a follow-up.Fixes #6817