gecko-dev/tools/tryselect
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
..
docs no bug - remove old references to inbound r=glob DONTBUILD 2020-05-14 14:03:43 +00:00
selectors Bug 1645179 - Squash remaining dead code after removal of IMPACTED_TESTS r=ahal,froydnj 2020-06-17 13:30:49 +00:00
test Bug 1633866 - [tryselect] Use 'bugbug' loader with |mach try auto|, r=marco 2020-06-03 21:00:43 +00:00
util Bug 1635136 - add a --push-to-try option r=aerickson 2020-05-12 21:19:48 +00:00
__init__.py Bug 1562642 - Part 4 - Add missing MPL2 headers in tools r=ahal 2019-07-10 19:12:07 +00:00
cli.py Bug 1496768 - [tryselect] Rename 'templates' to 'task_configs', r=tomprince 2019-11-22 17:16:18 +00:00
mach_commands.py Bug 1641134 - [tryselect] Fix Python 3 compatibility issues with |mach try --pernosco|, r=mhentges 2020-05-29 20:45:36 +00:00
preset.py Bug 1603510 - Allow multi-word $EDITOR in 'mach try syntax --edit-presets'; r=bc 2020-05-08 17:54:10 +00:00
push.py Bug 1637354: Don't show time estimates for |./mach try release| r=ahal 2020-05-12 20:10:58 +00:00
task_config.py Bug 1641134 - [tryselect] Fix Python 3 compatibility issues with |mach try --pernosco|, r=mhentges 2020-05-29 20:45:36 +00:00
tasks.py Bug 1630350 - apply mach try filter to try syntax selector r=jmaher,gbrown 2020-04-21 19:51:25 +00:00
try_presets.yml Bug 1641224 - Add webrender-perf try preset. r=kats 2020-05-28 15:13:26 +00:00
watchman.json Bug 1546757 - [tryselect] Add a watchman trigger to rebuild the taskgraph cache in the background, r=tomprince 2019-05-02 16:45:19 +00:00