Skip to content
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

fix: playwright config #548

Merged
merged 1 commit into from
Jul 13, 2023
Merged

fix: playwright config #548

merged 1 commit into from
Jul 13, 2023

Conversation

elrrrrrrr
Copy link
Member

Follow the Playwright-core configuration, ref, to update the binary download path information.

  1. 🧶 Update Playwright configuration information.

Follow playwright-core 配置, ref,更新 binary 下载路径信息

  1. 🧶 更新 playwright 配置信息

@elrrrrrrr elrrrrrrr added the bug Something isn't working label Jul 13, 2023
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #548 (c355895) into master (e061685) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #548   +/-   ##
=======================================
  Coverage   96.96%   96.97%           
=======================================
  Files         174      174           
  Lines       16627    16641   +14     
  Branches     2179     2179           
=======================================
+ Hits        16123    16137   +14     
  Misses        504      504           
Impacted Files Coverage Δ
app/common/adapter/binary/PlaywrightBinary.ts 99.26% <100.00%> (+0.03%) ⬆️

@killagu
Copy link
Contributor

killagu commented Jul 13, 2023

commit 是空的?

'<unknown>': 'builds/android/%s/android.zip',
},
'<unknown>': 'builds/android/%s/android.zip'
}
};

@SingletonProto()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这段代码是一个常量对象的补丁,用于更新下载路径。以下是一些bug风险和改进建议:

  1. DOWNLOAD_PATHS对象中增加了关于debian12debian12-arm64的下载路径。确保这些路径指向正确的文件并存在相应的构建。

  2. 对于'debian12''debian12-arm64'的下载路径,给定值为undefined。确保这不会导致后续代码中的错误或异常。

  3. 检查所有其他的更改,特别注意是否涉及到系统版本号或特定操作系统的路径。确保这些路径与要支持的系统版本和操作系统对应。

这些是关于代码补丁的简要审查。请确保在实际应用中进行彻底测试以验证这些更改。

@@ -161,6 +173,8 @@ const DOWNLOAD_PATHS = {
'ubuntu22.04-arm64': 'builds/ffmpeg/%s/ffmpeg-linux-arm64.zip',
'debian11': 'builds/ffmpeg/%s/ffmpeg-linux.zip',
'debian11-arm64': 'builds/ffmpeg/%s/ffmpeg-linux-arm64.zip',
'debian12': 'builds/ffmpeg/%s/ffmpeg-linux.zip',
'debian12-arm64': 'builds/ffmpeg/%s/ffmpeg-linux-arm64.zip',
'mac10.13': 'builds/ffmpeg/%s/ffmpeg-mac.zip',
'mac10.14': 'builds/ffmpeg/%s/ffmpeg-mac.zip',
'mac10.15': 'builds/ffmpeg/%s/ffmpeg-mac.zip',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这段代码补丁涉及修改了下载路径的常量定义。主要改动如下:

  1. 增加了适用于 Debian 12 和 Debian 12 ARM64 的下载路径。
  2. 在 'firefox' 和 'firefox-beta' 下载路径中,删除了适用于 'debian12' 和 'debian12-arm64' 的定义,并将适用于 MacOS 版本 11、12 和 13 的下载路径指向了对应的版本号为 13 的文件。
  3. 在 'webkit' 下载路径中,删除了适用于 'debian12' 和 'debian12-arm64' 的定义,并将适用于 MacOS 版本 10.13 的下载路径设为 undefined。
  4. 在 'ffmpeg' 下载路径中,增加了适用于 Debian 12 和 Debian 12 ARM64 的下载路径。

所以针对该代码补丁的风险和改进建议如下:

  • 风险:可能存在未定义部分的下载路径,如 'debian12' 和 'debian12-arm64' 在 'firefox' 和 'firefox-beta' 中。
  • 改进建议:需要确认并提供适用于 'debian12' 和 'debian12-arm64' 的下载路径,以避免潜在的错误和问题。

@gemwuu
Copy link
Member

gemwuu commented Jul 13, 2023

LGTM

@gemwuu gemwuu merged commit 166e334 into master Jul 13, 2023
@gemwuu gemwuu deleted the fix-playwright-config branch July 13, 2023 07:05
fengmk2 pushed a commit that referenced this pull request Jul 13, 2023
[skip ci]

## [3.37.1](v3.37.0...v3.37.1) (2023-07-13)

### Bug Fixes

* playwright bianry sync config ([#548](#548)) ([166e334](166e334))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants