Gitdiff v2#5752
Conversation
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
…nto gitdiff-v2
Signed-off-by: Gongxl972 <141223555+Gongxl972@users.noreply.github.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds two CI scripts ( ChangesIncremental Python test selection
Unrelated stray file
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Workflow as test_python.yml
participant Detect as detect_affected_tests.py
participant Mapping as .global_test_mapping.json
participant Pytest
Workflow->>Detect: run with changed files env vars
Detect->>Detect: get_changed_files_from_git() fallback
Detect->>Mapping: load .global_test_mapping.json
Mapping-->>Detect: dependency map
Detect->>Detect: match changed files to affected_tests
Detect-->>Workflow: selected_paths / need_full_test / skip_all
Workflow->>Pytest: run full suite or selected_paths
Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Modify the test_python.ymlworkflow and add several Python helper scripts under .github/scripts/.
The new scripts discover all test files, analyze test-to-source dependencies, and generate a .global_test_mapping.jsoncache file.
Subsequent test runs will only execute tests mapped to changed source files, reducing CI runtime.
Summary by CodeRabbit
New Features
Bug Fixes