From 1c741636c7cf2c1eb6eacd37e4b0bf811fd354a0 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 20 Jun 2018 10:24:40 -0500 Subject: [PATCH] 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 --- tools/lintstack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lintstack.py b/tools/lintstack.py index f57dec0e6f0..d833fdd19a9 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -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()