[🚀 Feature]: Selenium GHA Testing Plan

Aperta
#17,539 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
github-actions
Ambito
ci-cd, testing

Direzione di ricerca

Inizia confrontando i workflow ci.yml e ci-rbe.yml e tracciando come vengono selezionati i target Bazel interessati. Esamina i filtri esistenti dei runner GHA, la gestione di .skipped-tests e le voci dei workflow pianificate e manuali. Il lavoro è completo quando i workflow evitano una copertura ridondante per PR eseguendo al contempo in modo coerente i test Windows, Mac e Linux specificati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Java
Stelle
34.6k
Fork
8.7k
Merge medio
1g 16h
PR unite (30g)
107

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SeleniumHQ/selenium

Tutte le issue di SeleniumHQ/selenium

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.