Skip to content

⬆️ 升级 @playwright/test 到 1.64.1,修复 ubuntu 26.04 runner 上的 CI 失败 - #1815

Merged
CodFrm merged 1 commit into
mainfrom
chore/playwright-1.64
Nov 2, 2026
Merged

CodFrm merged 1 commit into
mainfrom
chore/playwright-1.64

Conversation

@CodFrm

@CodFrm CodFrm commented Nov 2, 2026

Copy link
Copy Markdown
Member

Checklist / 检查清单

  • Fixes mentioned issues / 修复已提及的问题
  • Code reviewed by human / 代码通过人工检查
  • Changes tested / 已完成测试

Description / 描述

GitHub 的 ubuntu-latest 已切换到 Ubuntu 26.04,项目锁定的 Playwright 1.60.0 不支持这个系统。Runtime smoke 在安装 Chromium 时直接失败:

Error: ERROR: Playwright does not support chromium on ubuntu26.04-x64

main 上 2026-11-02 的两次 push(run 41375536662、41375516939)和 #1814 都因此失败,单元测试与 Lint 不受影响。

本次把 @playwright/test 升到 1.64.1,它已包含 ubuntu26.04-x64 的浏览器下载映射。没有选择把 runner 固定为 ubuntu-24.04:那样只是推迟问题,CI 会一直停留在旧镜像上。

lockfile 只涉及 @playwright/test、playwright、playwright-core 三个包;1.64 不再依赖可选的 fsevents@2.3.2。新版要求 Node >= 20,CI 使用的是 Node 22。

测试用的浏览器随之从 Chromium 151 升到 Chrome Headless Shell 156。

验证

本地 macOS,Node 26,执行 pnpm run build 后:

  • pnpm run test:runtime-smoke:1 passed
  • pnpm run test:e2e:67 passed,无 skipped、flaky
  • 合并前需要 CI 在 ubuntu 26.04 上通过 Runtime smoke。本地无法复现这个 runner 环境。

GitHub 的 ubuntu-latest 已切换到 26.04,Playwright 1.60.0 不支持该系统,
Runtime smoke 在安装 Chromium 时报 "Playwright does not support chromium on ubuntu26.04-x64"
(main 上 2026-11-02 的两次 push 均因此失败)。1.64.1 已包含 ubuntu26.04-x64 的浏览器下载映射。

lockfile 只涉及 @playwright/test、playwright、playwright-core;1.64 不再依赖可选的 fsevents@2.3.2。
新版要求 Node >= 20,CI 使用 Node 22。
@CodFrm
CodFrm merged commit e88d0eb into main Nov 2, 2026
10 of 11 checks passed
@CodFrm
CodFrm deleted the chore/playwright-1.64 branch November 2, 2026 03:48
@cyfung1031

Copy link
Copy Markdown
Collaborator

@CodFrm

GitHub 的 ubuntu-latest 已切换到 Ubuntu 26.04

GitHub 的 ubuntu 版本可以指定,不一定要 latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants