VirtualenvMixin should provide a way to specify requirements via commandline/config

NEW
Unassigned

Status

P5
normal
3 years ago
2 years ago

People

(Reporter: ahal, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Currently various test scripts are hardcoding their requirements, e.g:
https://dxr.mozilla.org/mozilla-central/source/testing/mozharness/scripts/desktop_unittest.py#254

But it's not possible for a particular job or config file to specify a different set of requirements. Which means every job installs every requirement, whether it's needed or not.

The commandline argument for this should be added to 'virtualenv_config_options':
https://dxr.mozilla.org/mozilla-central/source/testing/mozharness/mozharness/base/python.py#45

It would be nice to have support for both requirements files, as well as just standard specificiers like <package-name>.

Updated

2 years ago
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.