Repository navigation
test: stabilize Windows Chromium loopback connections - #150
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
Windows CI 偶发在首个 document 或单个 stylesheet 的 TCP 连接阶段出现
net::ERR_NO_BUFFER_SPACE,导致无关 UI 回归随机失败。上游 Playwright #43545 已复现并以 #43605 禁用TcpPortRandomizationWin缓解;本项目锁定的 Playwright 1.60.0 / Chromium 148 尚不含此修复。仅为管理器测试的 Windows 浏览器回补上游配置:每个测试会话通过一次短暂的 CDP 探测取得实际默认
--disable-features,关闭探测浏览器后,在既有 module 浏览器夹具中精确替换为保留全部原项的单个组合参数。其他系统保持默认启动;不读取 driver 内部文件,不修改应用、依赖、HTTP 服务、错误断言或重试策略。自检
origin/master的12cc3f6创建独立分支,未修改 master。验证结果
python -m pytest tests/test_browser_launch.py tests/test_manager_startup.py tests/test_history_webui.py -q -k 'socket_options or platforms_keep_default or real_chromium or wechat_signal_uses_live_connection or manager_loads_all_resources or history_access_loss_clears':16 passed, 52 deselected。python -m compileall -q tests/conftest.py tests/test_manager_startup.py tests/test_browser_launch.py、git diff --check通过。风险与后续
Windows 测试会话增加一次短暂浏览器启动;CDP 默认参数契约若未来改变会显式失败。保留全部应用错误断言,后续真实网络错误仍会使测试失败。回滚本提交即可恢复原测试启动配置。