-
-
Couldn't load subscription status.
- Fork 1.5k
Update architecture.zh-cn.md #2461
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
Update architecture.zh-cn.md #2461
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
CLAassistant
commented
Sep 3, 2025
CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Terminology Consistency
Ensure key terms like "stereotype", "capabilities", and "Grid Model" are consistently translated and, where first introduced, optionally retain the English term in parentheses to aid readers familiar with the original docs.
* 槽(slot)是会话可以运行的地方。 * 每个槽有一个能力集(stereotype)。这是一个最小能力集,传入的会话请求必须匹配,然后分配器才会将请求发送到拥有该槽的节点。 * 分配器跟踪 Grid 的状态。顾名思义,有时可能会因为现实(也许分配器刚刚启动)而出现同步问题。如果优先查询每个节点,以便分配器可以快速为新会话请求分配槽。 ## 同步和异步调用 Grid 中使用了两种主要的通信机制: 1. 通过 HTTP 请求的同步"REST-ish" JSON。 2. 发送到事件总线的异步事件。 我们如何选择同步机制(例如,大多数 WebDriver 调用)或异步机制?之后,我们可以将整个 Grid 建模为事件驱动的,它将正常工作。 答案是,如果响应丢失将是问题,我们希望将信息广播给任何感兴趣的人,或者我们不在乎响应,我们更喜欢使用事件总线。 一个有趣的现象是,同步调用比异步调用更解耦。 ## 组件间的启动顺序和依赖关系
Table Formatting
Verify the Markdown tables render correctly (headers, alignment, code formatting for literals like up/draining/down, and backticks) after translation; some cells might need inline code formatting to match original semantics.
| | 事件总线| 分配器 | 节点 | 路由器 | 会话映射 | 会话队列 | |---------------|-----------|-------------|------|--------|-------------|---------------| | Event Bus | X | | | | | | | Distributor | ✅ | X | ✅ | | | ✅ | | Node | ✅ | | X | | | | | Router | | | ✅ | X | ✅ | | | Session Map | | | | | X | | | Session Queue | ✅ | | | | | X |
Link Context
For references like new session and capabilities, confirm the surrounding Chinese text preserves the original link intent and uses consistent anchor text; consider adding backticks or brackets where appropriate.
|------|------|-------------| | capabilities | object | 会话提供的实际功能。将与 new session 命令的返回值匹配。 | | startTime | string |会话的开始时间,ISO-8601 格式。 | | stereotype | object | 此槽将匹配的最小能力集。一个最小示例是 {"browserName": "firefox"} | | uri | string | 节点用于与会话通信的 URI。 | [capabilities]: https://w3c.github.io/webdriver/#dfn-merging-capabilities [new session]: https://w3c.github.io/webdriver/#new-session
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
User description
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Checklist
PR Type
Documentation
Description
Complete Chinese translation of Grid architecture documentation
Translated all component descriptions and technical concepts
Converted tables and technical specifications to Chinese
Maintained original structure and formatting
Diagram Walkthrough
File Walkthrough
architecture.zh-cn.md
Complete Chinese translation of Grid architecture guidewebsite_and_docs/content/documentation/grid/architecture.zh-cn.md
Chinese
etc.)