Bug 1411796 - [taskgraph] Skip parameters.rst doc verification if parameters.strict is False, r=dustin

This is needed to prevent parameter mismatch errors when using |mach try fuzzy|
from an older revision. This can happen if the parameters.yml is being
downloaded from a commit with a recently added parameter.

MozReview-Commit-ID: 4NxCM7i8B4W

--HG--
extra : rebase_source : 4d2052aae33292fbd7928a79bfedba76426206b9
This commit is contained in:
Andrew Halberstadt 2017-10-25 20:27:17 -04:00
parent bf4ff12d81
commit c91c991524

View File

@ -291,6 +291,9 @@ class TaskGraphGenerator(object):
return self._run_results[name]
def verify_parameters(self, parameters):
if not parameters.strict:
return
parameters_dict = dict(**parameters)
verify_docs(
filename="parameters.rst",