Skip to content

[🚀 Feature]: Selenium Testing Plan #16809

Closed

Description

@titusfortner

Description

Current Status

Problems

  • Many things tested on RBE are being duplicated in GitHub Actions
  • Our GHA logic is too coarse: check-bazel-targets code often triggers full binding CI workflow even when only a subset of targets (e.g., *-remote) is affected.
  • Selenium Manager is not currently tested across bindings (can't be run on RBE)
  • Inconsistent GHA testing across bindings (Java, .NET & JS have almost nothing, while Ruby's take ~6 hours of runtime)
  • Also inconsistent RBE tests in general (beta versions of browsers, testing against grid, etc)
  • Pinned Browser Cache on GitHub Actions is prohibitive

Goals

  • Keep per-PR signal fast and scoped to the change.
  • Ensure consistent target coverage across bindings (same categories exist everywhere even if implementations differ).
  • Add upstream browser regression detection (betas).
  • Keep results reported by binding (maintainer ownership).

Proposed plan

Per PR (always filtered by affected targets)

  1. Linux (RBE)
    • Standardize (or add missing) targets per binding: Beta versions, Remote execution
    • Track skip-rbe and .skipped-tests
  2. Windows (GHA) - filter for chrome/firefox, use Selenium Manager, include unit tests (Ruby/Python/JS)
  3. Mac (GHA) - filter for safari, use Selenium Manager, include unit tests (Ruby/Python/JS)
  4. Linux (GHA) - Alternate Interpreter unit tests (Ruby/Python/JS) & Selenium Manager tests

Note: if no affected targets found, but the binding is indicated in title or commit, run all targets for that binding

Scheduled (GHA only)

  • Windows: All targets, no browser filters
  • macOS: filter for safari, chrome
  • Linux: Alternate Interpreter unit tests (Ruby/Python/JS) & Selenium Manager

Have you considered any alternatives or workarounds?

  1. We could just add "remote tests" job for each binding and try to run remote vs local depending on what the check targets finds, but that adds more complexity
  2. We could increase coverage to match what Ruby currently does on all the bindings, but that'll take forever.
  3. We could run browser tests with pinned browsers, and run Selenium Manager tests separately, but the cache limitations, and might just be duplication.

Activity

  1. added
    A-needs decision
    I-enhancement
    on Dec 29, 2025
  2. diemol commented on Jan 5, 2026

    @diemol
    Member

    The initial implementation of the Bazel targets checks file names from the diff and, based on that, queries Bazel to retrieve the list of targets to run. I don't remember why we changed this. I guess we assumed the cache was going to help us, but now that the size is restricted, we have trouble.

  3. titusfortner commented on May 21, 2026

    @titusfortner
    MemberAuthor

    See #17539

  4. github-actions commented on Jun 20, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

  5. locked and limited conversation to collaborators on Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs decisionI-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions