Closed Bug 1229713 Opened 10 years ago Closed 10 years ago

mach talos-test downloads all its things into the tree and clutters up hg st with lots of unknown files

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(firefox45 affected, firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox45 --- affected
firefox46 --- fixed

People

(Reporter: Gijs, Assigned: parkouss)

References

Details

Attachments

(1 file)

And when I say lots, I mean lots: $ hg st -un | grep mozharness | wc -l 952 almost 1000 files? That is not OK - this stuff should go in a . directory or at least be added to .hgignore.
right now ./mach talos-test run mozharness style to the point of much wasted work/files. We could make this smarter by knowing we are in tree and using the resources available to us better. Talos still needs a virtualenv, but that can be put in the objdir instead of the srcdir. thanks for filing this!
There's always ~/.mozbuild/
I believe most of these files are there because we use mozharness to run talos locally. And mozharness takes care of creating the virtualenv, but I noticed it does it inside the source dir. So I can see three options so far: - change mozharness to not do that (not sure how) - add the virtualenv dir created by mozharness in .hgignore - change talos to not use mozharness when runing locally from mach (I know :jmaher does not really like that idea, to be closer to what is run on try) Also there will be a few files created by talos runs - those would need to be handled differently (bug 735506).
See Also: → 735506
I prefer to keep the mozharness method of running the tests, but would be open to doing this more streamlined. most likely if we can put the virtualenv elsewhere, then we don't need to worry about much else.
Please don't clutter the source directory - ever. If I had my way, I'd forbid objdirs from existing in the source directory. ~/.mozbuild, objdir, or temporary directories are where things should go. We don't yet have a good logical place for state tied to a specific source directory [and shared across many objdirs]. We should invent said location (probably under ~/.mozbuild somewhere by hashing the source path or something). But that's likely for another bug.
:parkouss, we should tackle this bug soon. When I get the tart crash resolved I can do this- likewise you could if you have some cycles.
Flags: needinfo?(j.parkouss)
Sure, I take it - just looked in the code and saw that it is easy to put everything we create (virtual env and a config file) in $objdir/testing/. BTW, forgot my comment 3 - this is not a mozharness issue at all. ;
Assignee: nobody → j.parkouss
Status: NEW → ASSIGNED
Flags: needinfo?(j.parkouss)
:jmaher, feel free to redirect the review flag if needed (maybe :gps or :armenzg ?).
Comment on attachment 8698682 [details] MozReview Request: Bug 1229713 - mach talos-test downloads all its things into the source tree. r=jmaher https://reviewboard.mozilla.org/r/28069/#review25171 ::: testing/talos/mach_commands.py:41 (Diff revision 1) > - self.config_file_path = os.path.join(self.config_dir, > + 'talos-in_tree_conf.json') I was under the impression this is 'in_tree_config.json' without the 'talos-' at the front. ::: testing/talos/mach_commands.py:45 (Diff revision 1) > - self.virtualenv_path = os.path.join(self.mozharness_dir, 'venv') > + self.virtualenv_path = os.path.join(self._topobjdir, 'testing', is self._topobjdir defined and realistic in the buildbot automation? a few things, lets sort them out first.
Attachment #8698682 - Flags: review?(jmaher)
I forgot to say that it works for me, I tested. mach_commands is not used in automation - this is only for local runs. Also, 'talos-in_tree_conf.json' is an arbitrary name for the config. I just wanted to prefix 'talos-' to this file since it is in the objdir/testing directory.
Comment on attachment 8698682 [details] MozReview Request: Bug 1229713 - mach talos-test downloads all its things into the source tree. r=jmaher https://reviewboard.mozilla.org/r/28069/#review25175 thanks parkouss! then lets ship it
Attachment #8698682 - Flags: review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/67730d70a0f296dab566b0ac7f68de3aeb409de1 Bug 1229713 - mach talos-test downloads all its things into the source tree. r=jmaher
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: