Skip to content

Enhance CI to only build & test affected targets for PRs #9112

@ghpvnist

Description

@ghpvnist

🚀 Feature

Leverage tools like bazel-diff to only build/test targets that are affected by the PR during review. However, full CI should still be run when merged to master branch to ensure there are no hidden breakages.

Motivation

Currently, our CI is not great at detecting individual file level changes and running only the affected targets and instead runs full test suite on all PRs. This should save valuable resources that are currently running expensive GPU and TPU tests that are not often necessary during review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CICI related changeenhancementNew feature or requesttestingTesting and coverage related issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions