Skip to content

Exploration: Detect website changes from PR with ultrathink analysis #38096

@GeorgePearse

Description

@GeorgePearse

Objective

Investigate how to make Playwright faster by detecting which parts of a website have been changed by a given PR.

Approach

  • Use extended reasoning (ultrathink) to analyze PRs and determine affected website elements
  • Build dependency graphs of page elements and their relationships
  • Identify which selectors, elements, or page regions are affected by code changes
  • Skip or optimize test runs for unaffected areas

Key Questions

  • Can we statically analyze PR diffs to predict affected page areas?
  • Should we maintain a mapping of code changes to UI components?
  • How can we cache test results for unchanged regions?
  • What's the overhead of change detection vs. savings from skipped tests?

Potential Benefits

  • Faster test feedback by running only affected tests
  • Reduced compute costs
  • More granular test reporting

Related Concepts

  • Change impact analysis
  • Dependency tracking for web components
  • Smart test selection
  • Region-based testing strategies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions