Check that |workspace| is not a sub-directory of an Android tree, so
that we don't `repo init` to a directory outside of |workspace|.
Test: mkdir /tmp/test && cd /tmp/test && repo init [AOSP]
Test: ./repo_diff_android.py # Should fail to repo-init
Test: rm -rf .repo/ && ./repo_diff_android.py # Should success
Change-Id: I3e1b94e8e3664cc50ab790aaa7e27b2a8d3feef0
Reporting is another use case that should be satisfied by this tool.
Since the use case deviates in terms of I/O, it's worth adding a
command-line interface for now and for future expansion.
Test: Unit tests included, will validate locally
Change-Id: Ifade560d9898722fdd5299d06899265b70ce771f
Had some trouble installing this on David's machine the other day, so
updating these commands so that it's seamless.
Test: Ran locally on my machine
Change-Id: I73f7e3b35d6b31ac8746a6d5bf8d59db50abbe2d
Test: Still in bootstrapping phase; tested a deployment from local
machine, can hit public facing endpoint
Change-Id: Ie194ec7e61a2ef84a3b74a22a52348a81a753d89
Test: Changes are currently independent of the rest of this project. Tests can
currently manually be run with "make test". CL is large, but poses no
risk
Change-Id: Ia77e073df077257cab96b7ca4e1d99a900d029b2
Some old projects might be removed for some reason, especially
the downstream ones. It should be fine to just skip analysing them
because people have stopped working on them.
Test: run the script against an old release
Change-Id: I563905565c4c502036159fce6a386bba13ba25ea
Some old SHA1 might be invalid when we use this tool.
Ignore these projects and keep going on.
Test: run the script against an old release
Change-Id: I5c89911759de6d122052e841eef0b016fa8b1422
We are using this tools on multiple releases (tags).
Create subfolders using release names, so that results won't be
overwitten.
Test: run the script against multiple releases
Change-Id: I9a94940d630874a5b378431f20a6c1182cf11509
Add a document explaining how to create a data studio dashboard using
the repo diff tool.
Renamed repo_diff_downstream.py to repo_diff_trees.py.
Renamed exclusions.txt to android_exclusions.txt.
Not all Android source trees support build IDs and tags.
When no build tag is requested, rather than try to match
the build IDs just sync the branch tips of the upstream
and downstream source trees.
Also select two Android Oreo release candidates
as the default branches. The fact that there are frozen
branches and that the diff is small serve as a good showcase
of the tool.
Change-Id: Ifdefd79fb6b32c6b83e0aee390dd5a435b6a61fc
These tools help compare android repo workspaces for high level
analysis.
Test: Run python repo_diff/repo_diff_android.py
Change-Id: I645351521c7f61735d3ce65a93569983cd28851c