Increase pylint processes

The default process concurrency for pylint is 1. Since our gate
images used to run the job have 8 cores, this results in slower
job execution with many cores sitting idle. To speed things up,
this sets the process count to match the number of cores available.

Change-Id: If4ba3333a1cb3b8bb6b4797f9149f412d32047ef
This commit is contained in:
Sean McGinnis 2018-06-20 10:24:40 -05:00
parent e396560f33
commit 1c741636c7

View File

@ -17,6 +17,7 @@
"""pylint error checking."""
import json
import multiprocessing
import re
import sys
@ -204,6 +205,7 @@ def run_pylint():
reporter = text.TextReporter(output=buff)
args = [
"--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'",
"-j", "%s" % multiprocessing.cpu_count(),
"-E", "cinder"]
lint.Run(args, reporter=reporter, exit=False)
val = buff.getvalue()