Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ jobs:
os: windows-latest
rust_target: x86_64-pc-windows-msvc
browser_evidence: reviewed-major-conformance
browser_majors: '151,152,155,156'
browser_majors: '151,152,155,156,157'
browser_path: 'C:/Program Files/Google/Chrome/Application/chrome.exe'
- target: linux-x64-gnu
os: ubuntu-24.04
Expand All @@ -303,7 +303,7 @@ jobs:
rust_target: x86_64-apple-darwin
browser_evidence: reviewed-major-smoke
browser_majors: '150,151'
browser_path: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
browser_path: '/Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing'
env:
WAKE_SYSTEM_BROWSER_PATH: ${{ matrix.browser_path }}
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ jobs:
- platform: win32-x64-msvc
runner: windows-latest
browser_evidence: reviewed-major-conformance
browser_majors: '151,152,155,156'
browser_majors: '151,152,155,156,157'
browser_path: 'C:/Program Files/Google/Chrome/Application/chrome.exe'
- platform: linux-x64-gnu
runner: ubuntu-24.04
Expand All @@ -499,7 +499,7 @@ jobs:
runner: macos-15-intel
browser_evidence: reviewed-major-smoke
browser_majors: '150,151'
browser_path: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
browser_path: '/Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing'
- platform: darwin-arm64
runner: macos-15
browser_evidence: reviewed-major-smoke
Expand Down Expand Up @@ -740,7 +740,7 @@ jobs:
- platform: win32-x64-msvc
runner: windows-latest
browser_evidence: reviewed-major-conformance
browser_majors: '151,152,155,156'
browser_majors: '151,152,155,156,157'
browser_path: 'C:/Program Files/Google/Chrome/Application/chrome.exe'
- platform: linux-x64-gnu
runner: ubuntu-24.04
Expand All @@ -754,7 +754,7 @@ jobs:
runner: macos-15-intel
browser_evidence: reviewed-major-smoke
browser_majors: '150,151'
browser_path: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
browser_path: '/Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing'
- platform: darwin-arm64
runner: macos-15
browser_evidence: reviewed-major-smoke
Expand Down
3 changes: 2 additions & 1 deletion crates/wake_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8596,6 +8596,7 @@ environment = "dom"
await render(React.createElement(InteractiveForm))
const user = userEvent.setup()
const button = screen.getByRole('button', {name: 'Clicks 0; doubles 0; hovered false'})
expect(button).toBeVisible()
const primary = screen.getByLabelText('Primary')
const secondary = screen.getByLabelText('Secondary')
const checkbox = screen.getByLabelText('Enabled')
Expand Down Expand Up @@ -8664,7 +8665,7 @@ environment = "dom"
try { await user.click(noLayout) } catch (error) { layoutFailure = error }
expect(layoutFailure.code).toBe('WAKE_TEST_BROWSER')
expect(layoutFailure.message).toContain('layout box')
})
}, {timeout: 20_000})
"#
.replace("__ALLOW_URL__", &allow_url);
fs::write(fixture.path().join("math.browser.test.ts"), source).unwrap();
Expand Down
9 changes: 5 additions & 4 deletions engineering/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ React 版本升级保留根工作区的 19.2.8 基线,并通过 `fixtures/reac
V8/handle、fast DOM、Chromium/CDP、协议并发与 React 差分 fixture 分别进入普通单元测试、
固定版本 conformance、真实浏览器 smoke 和 Loom 模型。系统浏览器测试必须记录可执行文件与
CDP 完整版本。`engineering/system-browser-conformance.json` schema v3 区分当前 experimental
发布证据和 stable readiness:Windows x64 对 reviewed major 151、152、155 或 156,Linux x64 对 151、152、155、156 或 157 运行 blocking conformance;
发布证据和 stable readiness:Windows x64 和 Linux x64 对 reviewed major 151、152、155、156 或 157 运行 blocking conformance;
macOS x64 在托管 runner 滚动切换期间对具备不可变官方清单证据的 reviewed major 150 或 151、
macOS arm64 对 reviewed major 150、152 或 157 运行 blocking 功能 smoke,
但证据明确不是 stable
Expand Down Expand Up @@ -324,7 +324,7 @@ scope 回退一致,避免嵌入式 CSS 值重新继承宿主 TypeScript 的 `k
| `test` | Ubuntu、Windows / Rust 1.95 + Node 24 | 全 workspace 测试 |
| `lint-product` | Ubuntu、Windows、macOS / Rust 1.95 + Node 24 | Wake 原生 lint 核心/应用/LSP、真实多语言项目、协议 smoke、迁移与独立 SDK 门禁 |
| `test262-es2024` | Ubuntu / Rust 1.95 + Node 24 | checksum 固定的 Test262 ES2024 选择集 |
| `browser-conformance` | 五个发布目标 / Rust 1.95 + Node 24 | Windows x64 reviewed major 151/152/155/156、Linux x64 reviewed major 151/152/155/156/157 conformance、macOS x64 reviewed major 150/151 与 arm64 reviewed major 150/152/157 功能 smoke、Linux ARM64 reviewed unavailable 证据 |
| `browser-conformance` | 五个发布目标 / Rust 1.95 + Node 24 | Windows 与 Linux x64 reviewed major 151/152/155/156/157 conformance、macOS x64 reviewed major 150/151 与 arm64 reviewed major 150/152/157 功能 smoke、Linux ARM64 reviewed unavailable 证据 |
| `browser-stable-readiness` | Ubuntu / Node 24 | 验证五平台共享 exact-major readiness 仍明确 blocked,避免把 experimental 证据误标为 stable |
| `typescript-7` | Ubuntu、Windows / Node 24 + TypeScript 7 | TS7 CLI 版本、严格类型与 TS/TSX 兼容 fixture |
| `miri` | Ubuntu / nightly | `wake_ecma_ast` 和 `wake_turbo` 手写 unsafe/内存模型 |
Expand Down Expand Up @@ -607,10 +607,11 @@ route shell/public 资源与返回 inventory 一致。危险祖先用例不得
- 无限循环、host/browser panic 或 crash、协议损坏、资源 origin 伪造、取消和关闭不泄漏调用
进程、端口、profile、page 或 V8 handle;
- CLI、Node `runTests()` 和 `TestContext` 经过唯一持久 host session,返回同一稳定结果与事件模型;
- Windows x64 执行 reviewed major 151、152、155 或 156,Linux x64 执行 151、152、155、156 或 157 的显式 browser path、CDP lifecycle、React、
- Windows 和 Linux x64 执行 reviewed major 151、152、155、156 或 157 的显式 browser path、CDP lifecycle、React、
screenshot 和 coverage conformance;macOS x64 在具备不可变 runner 清单证据的 reviewed major
150 或 151、macOS arm64 在 reviewed major 150、152 或 157 执行同类功能 smoke,
但不计入 stable conformance;Linux ARM64 执行完整非 browser 合同并保存 `unavailable` 证据。
macOS Intel 使用镜像预装的 Chrome for Testing,CI 和发布消费均验证其实际 CDP 身份。
浏览器二进制不得进入平台包,任何平台都不得在门禁内下载替代浏览器。

## 4. Miri 与 Loom 分工
Expand Down Expand Up @@ -676,7 +677,7 @@ JavaScript payload,因此不含 bundler runtime/header 或 source-map trailer
`wake lint` 与 CommonJS/ESM Node `lint()` 对同一错误源码的诊断、退出状态,并执行 `wake test`、
`runTests()` 和长期 `TestContext` lifecycle;Unix 目标还需核实安装后的 `wake-test-host` 可执行位。
Node 24 在 Windows/Linux x64 上以系统 Chrome、Edge 或 Chromium,分别针对
Windows x64 的 reviewed major 151、152、155 或 156、Linux x64 的 151、152、155、156 或 157 执行 blocking conformance;在 macOS x64 上以 reviewed major 150 或 151、macOS arm64
Windows 与 Linux x64 的 reviewed major 151、152、155、156 或 157 执行 blocking conformance;在 macOS x64 上以 reviewed major 150 或 151、macOS arm64
上以 reviewed major 150、152 或 157 执行
blocking React/browser/screenshot 功能 smoke;两者都从 `wake.test.v1` 结果校验 family/major 并
上传证据。Linux ARM64 不伪造或 skip 浏览器测试,而是依据 immutable hosted-runner inventory
Expand Down
1 change: 1 addition & 0 deletions engineering/decisions/0020-react-browser-test-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Amended by: [ADR 0048](0048-windows-browser-reviewed-majors.md)
- Amended by: [ADR 0073](0073-reviewed-browser-major-155.md)
- Amended by: [ADR 0080](0080-reviewed-linux-156-macos-arm64-157.md)
- Amended by: [ADR 0086](0086-windows-157-and-macos-intel-browser.md)

## Context

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Status: accepted
- Date: 2026-10-26
- Amended by: [ADR 0080](0080-reviewed-linux-156-macos-arm64-157.md)
- Amended by: [ADR 0086](0086-windows-157-and-macos-intel-browser.md)

## Context

Expand Down
44 changes: 44 additions & 0 deletions engineering/decisions/0086-windows-157-and-macos-intel-browser.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# ADR 0086: Windows 157 与 macOS Intel 浏览器运行器修复

- Status: accepted
- Date: 2026-11-19

## Context

Wake 0.1.56 的合并验证在 Windows x64 镜像 20261116.315.1 上取得 Chrome 157.0.8103.79,旧准入范围在功能测试前拒绝了该身份。同一轮 macOS Intel 镜像 20260824.0482.1 的 Chrome 在验证期间从 151.0.7922.174 变为 157.0.8103.79,React 输入用例在后一版本超时。

## Decision

Windows x64 在实验性门禁中加入主版本 157。macOS Intel 的 CI、发布前和发布后冒烟统一选择运行器镜像预装的 Chrome for Testing,避免测试期间更换浏览器版本。macOS Intel 仍按 150、151 审查实际 CDP 身份。真实浏览器输入用例连续两次耗尽 5 秒,因此给这一项集成用例单独设置 20 秒上限,覆盖渲染和多轮 CDP 请求。

## Invariants

- 使用运行器预装浏览器。路径缺失或 CDP 身份超出审查范围时,门禁失败。
- 原有浏览器功能断言、Wake Test 默认超时、独立的超时语义回归和 stable readiness 策略继续生效。

## Evidence

- [Windows CI](https://github.com/hotlif/wake/actions/runs/44444096321/job/135292324091) 和 [Windows 官方镜像清单](https://github.com/actions/runner-images/blob/9aa6d32300c1b8caaeb4f01efdcd619261422fd4/images/windows/Windows2025-VS2026-Readme.md) 记录了同一镜像与 Chrome 版本。
- [macOS Intel CI](https://github.com/hotlif/wake/actions/runs/44444096321/job/135292324286) 记录了一次运行中的两个 Chrome 版本。[官方镜像清单](https://github.com/actions/runner-images/blob/f10516542b8f2fef89b652a8d5f5de63aa543b77/images/macos/macos-15-Readme.md) 记录预装的 Chrome for Testing 151.0.7922.138。[镜像构建脚本](https://github.com/actions/runner-images/blob/f10516542b8f2fef89b652a8d5f5de63aa543b77/images/macos/scripts/build/install-chrome.sh) 给出其安装位置。
- [修复分支首次 macOS Intel 验证](https://github.com/hotlif/wake/actions/runs/44452048899/job/135318597041) 确认 Chrome 版本保持 151.0.7922.138,并在同一输入用例复现 5 秒超时。

## Consequences

新版 Windows 镜像进入原有浏览器一致性门禁。macOS Intel 在各阶段从显式路径启动镜像预装的测试版 Chrome,功能结果仍由托管运行器验证。

## Validation

`corepack yarn browser:conformance:test`、`corepack yarn release:check`、`corepack yarn architecture:test`、`corepack yarn architecture:check`。在 Windows x64 和 macOS Intel 托管运行器复核 CDP 身份及功能门禁。

## Supersedes

None.

## Amends

- [ADR 0020](0020-react-browser-test-runtime.md): macOS Intel 浏览器证据选择镜像预装的 Chrome for Testing。
- [ADR 0074](0074-reviewed-windows-browser-major-156.md): Windows x64 的实验性浏览器准入新增已审查的主版本 157。

## Removal plan

后续更新运行器时,同步复核路径、CDP 版本和官方镜像清单。
1 change: 1 addition & 0 deletions engineering/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
- [ADR 0075: Wake Test 工程控制与可信统计](0075-test-engineering-controls.md) — `accepted`
- [ADR 0080: Linux 156 与 macOS arm64 157 浏览器镜像准入](0080-reviewed-linux-156-macos-arm64-157.md) — `accepted`
- [ADR 0083: Linux 157 浏览器镜像准入](0083-reviewed-linux-browser-major-157.md) — `accepted`
- [ADR 0086: Windows 157 与 macOS Intel 浏览器运行器修复](0086-windows-157-and-macos-intel-browser.md) — `accepted`

### node-release

Expand Down
12 changes: 10 additions & 2 deletions engineering/system-browser-conformance.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"rustTarget": "x86_64-pc-windows-msvc",
"experimental": {
"mode": "reviewed-major-conformance",
"majors": [151, 152, 155, 156]
"majors": [151, 152, 155, 156, 157]
},
"reviewedRunnerEvidence": [
{
Expand Down Expand Up @@ -56,6 +56,14 @@
"chrome": "156.0.8078.48",
"edge": "155.0.4283.62"
}
},
{
"source": "https://github.com/actions/runner-images/blob/9aa6d32300c1b8caaeb4f01efdcd619261422fd4/images/windows/Windows2025-VS2026-Readme.md",
"imageVersion": "20261116.315.1",
"browserVersions": {
"chrome": "157.0.8103.79",
"edge": "157.0.4341.60"
}
}
]
},
Expand Down Expand Up @@ -147,7 +155,7 @@
"source": "https://github.com/actions/runner-images/blob/f10516542b8f2fef89b652a8d5f5de63aa543b77/images/macos/macos-15-Readme.md",
"imageVersion": "20260824.0482.1",
"browserVersions": {
"chrome": "151.0.7922.174",
"chrome": "151.0.7922.138",
"edge": "151.0.4129.101"
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-architecture.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ test('system browser evidence separates experimental publication from stable rea
],
)
assert.equal(manifest.targets['win32-x64-msvc'].experimental.mode, 'reviewed-major-conformance')
assert.deepEqual(manifest.targets['win32-x64-msvc'].experimental.majors, [151, 152, 155, 156])
assert.deepEqual(manifest.targets['win32-x64-msvc'].experimental.majors, [151, 152, 155, 156, 157])
assert.equal(manifest.targets['linux-x64-gnu'].experimental.mode, 'reviewed-major-conformance')
assert.deepEqual(manifest.targets['linux-x64-gnu'].experimental.majors, [151, 152, 155, 156, 157])
assert.equal(manifest.targets['linux-arm64-gnu'].experimental.mode, 'unavailable')
Expand Down
3 changes: 3 additions & 0 deletions scripts/check-release-coverage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ function requireBrowserMatrix(name, source, { targetKey, runnerKey, rustTargetKe
} else if (policy.mode !== 'unavailable') {
lines.push(`browser_major: ${policy.major}`)
}
if (target === 'darwin-x64') {
lines.push("browser_path: '/Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing'")
}
const row = lines
.map((line, index) => index === 0
? escapeRegExp(line)
Expand Down
9 changes: 5 additions & 4 deletions scripts/check-system-browser-conformance.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ for (const [target, version] of [
assert.equal(checked.browser.major, 155)
assert.equal(checked.mode, 'reviewed-major-conformance')
assert.equal(checked.stableConformance, false)
const unreviewedMajors = target === 'linux-x64-gnu' ? [153, 154, 158] : [153, 154, 157, 158]
for (const major of unreviewedMajors) {
for (const major of [153, 154, 158]) {
assert.throws(() => validateExperimentalBrowserIdentity({
manifest,
target,
Expand All @@ -72,7 +71,7 @@ assert.throws(() => validateExperimentalBrowserIdentity({
manifest,
target: 'win32-x64-msvc',
identity: { kind: 'chrome', version: 'Chrome/153.0.0.1', headless: true },
}), /permits reviewed Chromium-family majors 151, 152, 155, 156/)
}), /permits reviewed Chromium-family majors 151, 152, 155, 156, 157/)

const missingWindowsEvidence = structuredClone(manifest)
missingWindowsEvidence.targets['win32-x64-msvc'].reviewedRunnerEvidence.pop()
Expand Down Expand Up @@ -141,8 +140,10 @@ for (const major of [150, 152, 157]) {
}

for (const [target, version, mode] of [
['win32-x64-msvc', 'Chrome/157.0.8103.79', 'reviewed-major-conformance'],
['linux-x64-gnu', 'Chrome/156.0.8078.79', 'reviewed-major-conformance'],
['linux-x64-gnu', 'Chrome/157.0.8103.50', 'reviewed-major-conformance'],
['darwin-x64', 'Chrome/151.0.7922.138', 'reviewed-major-smoke'],
['darwin-arm64', 'Chrome/157.0.8103.39', 'reviewed-major-smoke'],
]) {
const checked = validateExperimentalBrowserIdentity({
Expand Down Expand Up @@ -192,7 +193,7 @@ for (const [description, action, pattern] of [
() => validateExperimentalBrowserIdentity({
manifest,
target: 'darwin-x64',
identity: { kind: 'chrome', version: 'Chrome/149.0.0.1', headless: true },
identity: { kind: 'chrome', version: 'Chrome/157.0.8103.79', headless: true },
}),
/permits reviewed Chromium-family majors 150, 151/,
],
Expand Down
Loading