SERVER-136414ClosedFixed

Skip deleted files when generating CODEOWNERS

Deleting an OWNERS.yaml file without staging the deletion leaves it in Git's index, causing CODEOWNERS generation to try to open a missing file. Exclude deleted paths from the file scan while preserving tracked and untracked files, including dangling symlinks. Regression tests cover staged and unstaged deletions and verify that files still present remain included. All seven tests in the changed-files module and the CODEOWNERS generator smoke test passed; both Python files pass Ruff formatting c

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1024
Components
Server components related to this issue
Bazel
Labels
Tags and classification
auto-fix-version-interrupted