gecko-dev/tools/tryselect/selectors
Ricky Stewart ce17cf368b Bug 1645179 - Squash remaining dead code after removal of IMPACTED_TESTS r=ahal,froydnj
There is some remaining code in central originating from bug 1184405, which sought to associate source files with their "affected" test files. That ended up not panning out, and bug 1644228 removed a lot of that code, but left some remnants in the `Files` object which are still referenced in a couple different places. I'm deleting all of that code in `context.py` plus everything that references it for the following reasons:

1. Right now, `Files.{test_files,test_tags,test_flavors}` do get populated, but only ever with "default" values -- namely `moz.build` files that are above the files in question in the directory hierarchy. This is a heuristic that doesn't actually have anything to do with mapping source files to their corresponding test files, which is misleading.

2. Those attributes are accessed in two places. The first is in the `mach file-info dep-tests` command. This command isn't referenced anywhere else in tree and I don't have any evidence anyone ever uses it. Even if they do, I would claim that doing so is a mistake (because the results of the command aren't meaningful and are just populated by the "defaults" described above), and that person's workflow should be migrated to something else that *is* meaningful.

3. The second place where this metadata is accessed is in `testing/mozbase/moztest/moztest/resolve.py`; that method is invoked in `tools/tryselect/selectors/syntax.py`, but only if you pass `--detect-paths` to `mach try syntax`. This is [entirely broken](https://bugzilla.mozilla.org/show_bug.cgi?id=1614614), and even if we made an effort to fix it, it wouldn't do anything resembling what the documentation of `--detect-paths` suggests it would do (again, because the data isn't populated meaningfully). So I'm deleting the command line option entirely.

Differential Revision: https://phabricator.services.mozilla.com/D79711
2020-06-17 13:30:49 +00:00
..
chooser No bug: Rename list of labels to ignore on try to UNCOMMON_TRY_TASK_LABELS; r=ahal 2020-05-20 13:18:19 +00:00
__init__.py
again.py
auto.py Bug 1633866 - [tryselect] Use 'bugbug' loader with |mach try auto|, r=marco 2020-06-03 21:00:43 +00:00
coverage.py Bug 1634603 - [tryselect] Fix 'mach try coverage'; r=marco 2020-05-28 18:50:49 +00:00
empty.py
fuzzy.py Bug 1642704 - Make ./mach try fuzzy --update install if fzf is not present r=ahal 2020-06-03 19:14:48 +00:00
preview.py
release.py
scriptworker.py Bug 1642517: Resolves |mach try scriptworker| py3 issue r=rstewart 2020-06-02 13:54:33 +00:00
syntax.py Bug 1645179 - Squash remaining dead code after removal of IMPACTED_TESTS r=ahal,froydnj 2020-06-17 13:30:49 +00:00