weblayer: adds presubmit check to catch invalid aidl changes
The tool for processing aidl files supports two additional options --checkapi and --dumpapi. --dumpapi generates aidl files in a content suitable for diffing, and --checkapi detects incompatible api changes by comparing results of --dumpapi. This patch adds a presubmit check that for any aidl changes uses --dumpapi on the original and changed to generate api dumps and then uses --checkapi to verify the changes are safe. The check will fail on renames, which are actually safe. I'm assuming if we actually want to rename we can bypass the hooks. We'll need to do similar when actually removing functions (because of deprecation). BUG=none TEST=none Change-Id: Ifc87d025c36f9cc6a04bd101580a6df04f24ae23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1959583 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by:Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#724734}
Showing
Please register or sign in to comment