[🚀 Feature]: Selenium GHA Testing Plan

オープン
#17,539 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
107

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SeleniumHQ/selenium のほかの issue

SeleniumHQ/selenium の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。