mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
0b6f26805a
Human Note phase 2 mergin in exsting list of owenrs into the finer grained form Agent note > This AI-assisted change moves the existing active CODEOWNERS assignments into the grouped review-surface > taxonomy. Unresolved ownership remains commented for future assignment. > > The taxonomy checker validates active and unresolved rules in the grouped sections, supports the existing glob > patterns, and reads committed paths so generated files staged by CI do not affect coverage. Every listed > pattern must match at least one committed path. > > I compared the last matching active rule for every committed path before and after the migration. Of 21,647 > paths, 21,522 retain the exact ordered owner tuple. The 125 intentional changes repair five previously invalid > quantization rules (122 paths), update the renamed XPU getting-started document (one path), and add protected > ownership for CODEOWNERS and merge_rules.yaml (two paths). > > I also audited every active rule removed from the old layout. Thirteen matched no committed path: obsolete > Caffe2 HIP, PyTree directory, CUDA scaled-BLAS, invalid quantization, and renamed XPU documentation patterns. > The quantization and XPU patterns were corrected; the obsolete patterns were removed. The remaining removed > rule was the merge_rules.yaml assignment, which had been shadowed by the later /.github/ rule; it is now an > explicit protected rule at the end of CODEOWNERS. > > The standalone taxonomy check reports 100% coverage and zero uncovered, duplicate, stale, ineffective, or > source-order-invalid patterns. <details> <summary>Ownership validation</summary> ```text paths=21647 differences=125 unchanged exact owner tuples: 21522 corrected quantization ownership: 122 corrected XPU documentation ownership: 1 protected ownership overrides: 2 CODEOWNERS taxonomy summary Tracked paths: 21647 Covered paths: 21647 Coverage: 100.0000% Review surfaces: 55 Patterns: 1052 Paths matched by multiple patterns: 3595 Integrity checks (all must be zero) Uncovered paths: 0 Duplicate patterns: 0 Stale patterns: 0 Ineffective patterns: 0 Source-order mismatches: 0 Result: PASS ``` </details> Test Plan: ```bash export PATH="$HOME/.venvs/dev/bin:$PATH" lintrunner -a /Users/drisspg/meta/pytorch/.venv/bin/python scripts/codeowners/check_taxonomy.py python3 agent_space/compare_codeowners_with_allowed_overrides.py python3 agent_space/audit_removed_codeowner_rules.py git diff --check ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/192572 Approved by: https://github.com/albanD