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:
parent
e396560f33
commit
1c741636c7
@ -17,6 +17,7 @@
|
|||||||
"""pylint error checking."""
|
"""pylint error checking."""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import multiprocessing
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -204,6 +205,7 @@ def run_pylint():
|
|||||||
reporter = text.TextReporter(output=buff)
|
reporter = text.TextReporter(output=buff)
|
||||||
args = [
|
args = [
|
||||||
"--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'",
|
"--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'",
|
||||||
|
"-j", "%s" % multiprocessing.cpu_count(),
|
||||||
"-E", "cinder"]
|
"-E", "cinder"]
|
||||||
lint.Run(args, reporter=reporter, exit=False)
|
lint.Run(args, reporter=reporter, exit=False)
|
||||||
val = buff.getvalue()
|
val = buff.getvalue()
|
||||||
|
Loading…
Reference in New Issue
Block a user