Skip to main content

Module affected

Module affected 

Source
Expand description

Affected detection for workspace members

Detects which workspace members have changed based on git diff. Useful for CI/CD pipelines to only build/test affected packages.

# List affected packages
rx affected

# Run tests only on affected packages
rx run --affected pytest

Structs§

AffectedConfig
Configuration for affected detection
AffectedResult
Result of affected detection

Functions§

build_dependency_graph
Build dependency graph for workspace members Returns a map of member path -> paths it depends on
detect_affected
Detect affected workspace members based on git changes
detect_affected_with_transitive
Detect affected with transitive dependencies
get_transitive_affected
Get transitively affected members If A depends on B, and B changed, then A is also affected