Strengthen headeronly linter (#194486)
Previously, we only triggered this lint with header_only_apis.txt was modified. That was okay, but this means that if people remove tests or remove the API itself we'd still be happily telling everyone that the APIs exist + are headeronly. Scary! This PR runs the lint now when any aoti_abi_check test file is modified or torch/headeronly file in addition to header_only_apis.txt. The lint was also not complete in that it only checked that an API was tested. We also now lint that an API is reachable by including the respective torch/headeronly header. Pull Request resolved: https://github.com/pytorch/pytorch/pull/194486 Approved by: https://github.com/albanD
J
Jane Xu committed
b7c1d9a9ec08aeb45c7fac06e3f97a3faf974e0e
Parent: 6421eec
Committed by PyTorch MergeBot <pytorchmergebot@users.noreply.github.com>
on 8/25/2026, 12:17:28 AM