nchammas opened a new pull request, #60615:
URL: https://github.com/apache/spark/pull/60615

   ### What changes were proposed in this pull request?
   
   `identify_changed_files_from_git_commits` now passes `--no-renames` to `git 
diff --name-only`. A move is listed as a deletion of the old path and an 
addition of the new one. The helper still returns a flat list of paths.
   
   ### Why are the changes needed?
   
   Without `--no-renames`, git reports only the old path, so module selection 
never sees the new path.
   
   PRs that rename files can now run tests for modules that only the new path 
belongs to.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added `test_rename_of_unchanged_file_lists_both_paths`, which builds a 
temporary repo, renames an unchanged file, and checks that both paths are 
returned. That test fails on the previous `git diff` (only the old path is 
listed) and passes with `--no-renames`.
   
   Also ran:
   
   ```sh
   python3 -m unittest discover -s dev/sparktestsupport/tests -t dev
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Cursor Grok 4.7
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to