[🚀 Feature]: Selenium GHA Testing Plan

未关闭
#17,539 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
github-actions
领域
ci-cd, testing

调研方向

首先比较 ci.yml 和 ci-rbe.yml 工作流,并追踪受影响的 Bazel 目标是如何选择的。检查现有的 GHA runner 过滤器、.skipped-tests 的处理方式,以及计划执行和手动执行的工作流条目。完成标准是:工作流避免每个 PR 的重复覆盖,同时持续运行指定的 Windows、Mac 和 Linux 测试。

由索引模型根据 Issue 内容生成。

描述

A-needs decision I-enhancement
Description

This supersedes #16809 - a lot of underlying work has been done on build process across the bindings since that issue was created to support a slightly better vision.

Problem
  • Github Actions runs are taking too long, especially when multiple small PRs are being made.
  • ci.yml workflow has significant overlap with ci-rbe.yml workflow
  • There are things that can't be tested in RBE that aren't being tested on a GHA Runner
  • Tests are inconsistent across bindings
Proposal

RBE remains the primary per-PR test gate. GHA Runners should only run tests that provide sufficient additional signal.

GHA runners should be scoped by affected Bazel targets (this is wired up but not used yet).

GHA Tests

Update: I think we move all browser tests that aren't se-manager or os-sensitive to manual/scheduled; Same with unit test matrix; we should trust that RBE will find enough of the unit test issues that it isn't worth rerunning every combination on every PR.

Run every time there are affected targets:

  1. Windows: Affected targets list filtered for Edge + se_manager + os_sensitive -safari -ie (large & small tests)
  2. Mac: Affected targets list filtered for Safari + se_manager + os_sensitive -ie (large & small tests)
  3. Linux: Affected targets list filtered for se_manager + rbe_skipped -safari -ie
    Run when tagged with [language]
    4. Unit Test Matrix: first/last version and alternate interpreters as applicable

Run manually and/or scheduled:

  1. Additional unit tests for alternate interpreters or other versions
  2. Updated: Windows: chrome-beta, firefox-beta, edge (local)
  3. Updated: Mac: safari (local)
Additional/Future Considerations
  1. consider running periodically all targets on windows not filtering to just edge as a stopgap
  2. Ideally we can replace .skipped-tests with bazel tags or test runner guards/annotations Update: Done
  3. fix Java to use target_compatible_with instead of generating targets for everything and filtering Update: Done
  4. consider splitting skip-rbe tag into a reason for skipping
  5. consider running scheduled ci.yml workflow 1x a day instead of 2x a day. We've averaged 4 commits a day on trunk for the past year; 90% of days are < 9 commits. We run this much more frequently than we evaluate it.
主要语言
Java
星标
34.6k
派生
8.7k
平均合并
1 天 16 小时
30 天内合并 PR
107

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SeleniumHQ/selenium 的其他 Issue

查看 SeleniumHQ/selenium 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。