Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 2, 2024
1 parent bbe4a0c commit 0a2b3bf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
34 changes: 27 additions & 7 deletions buildLogAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,12 @@ def analyzeFile(self, fileNameIn):
},
{
str(
"^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/bin/(.*?)/lib\1\\." + shLib
"^gmake: \\*\\*\\* .*?/src/"
+ subsys
+ "/"
+ pkg
+ "/bin/(.*?)/lib\1\\."
+ shLib
): ["linkError", "for shared library %s in bin"]
},
{
Expand All @@ -505,7 +510,12 @@ def analyzeFile(self, fileNameIn):
},
{
str(
"^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/test/(.*?)/.*?\\." + shLib
"^gmake: \\*\\*\\* .*?/src/"
+ subsys
+ "/"
+ pkg
+ "/test/(.*?)/.*?\\."
+ shLib
): ["linkError", "for shared library %s in test"]
},
{
Expand All @@ -521,7 +531,9 @@ def analyzeFile(self, fileNameIn):
]
},
{
str("^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/test/(.*?)\\." + shLib): [
str(
"^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/test/(.*?)\\." + shLib
): [
"linkError",
"for shared library %s in test",
]
Expand All @@ -539,7 +551,9 @@ def analyzeFile(self, fileNameIn):
]
},
{
str("^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/plugins/(.*?)/.*?\\.o"): [
str(
"^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/plugins/(.*?)/.*?\\.o"
): [
"compError",
"for plugin %s in plugins",
]
Expand Down Expand Up @@ -567,7 +581,9 @@ def analyzeFile(self, fileNameIn):
{str("^TypeError: .*"): ["pythonError", "type error in module"]},
{str("^ValueError: .*"): ["pythonError", "value error in module"]},
{
str("^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/test/data/download\\.url"): [
str(
"^gmake: \\*\\*\\* .*?/src/" + subsys + "/" + pkg + "/test/data/download\\.url"
): [
"dwnlError",
"for file in data/download.url in test",
]
Expand All @@ -591,7 +607,9 @@ def analyzeFile(self, fileNameIn):
},
{
str(
"^ *(/.*?/" + self.release + "/|)src/.*?\\([0-9]+\\)\\: warning #[0-9]+-[A-Z]: "
"^ *(/.*?/"
+ self.release
+ "/|)src/.*?\\([0-9]+\\)\\: warning #[0-9]+-[A-Z]: "
): [
"compWarning",
"for file in release",
Expand Down Expand Up @@ -653,7 +671,9 @@ def analyzeFile(self, fileNameIn):
]

miscErrRe = re.compile("^gmake: \\*\\*\\* (.*)$")
genericLinkErrRe = re.compile("^gmake: \\*\\*\\* \\[tmp/.*?/lib.*?" + shLib + "\\] Error 1")
genericLinkErrRe = re.compile(
"^gmake: \\*\\*\\* \\[tmp/.*?/lib.*?" + shLib + "\\] Error 1"
)

if "_gcc46" in os.environ["SCRAM_ARCH"]:
errorInf.append(
Expand Down
3 changes: 2 additions & 1 deletion cmsutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def doCmd(cmd, dryRun=False, inDir=None, debug=True):

def getIBReleaseInfo(rel):
m = re.match(
"^CMSSW_(\\d+_\\d+(_[A-Z][A-Za-z0-9]+|))_X(_[A-Z]+|)_(\\d\\d\\d\\d-\\d\\d-\\d\\d-(\\d\\d)\\d\\d)", rel
"^CMSSW_(\\d+_\\d+(_[A-Z][A-Za-z0-9]+|))_X(_[A-Z]+|)_(\\d\\d\\d\\d-\\d\\d-\\d\\d-(\\d\\d)\\d\\d)",
rel,
)
if not m:
return ("", "", "")
Expand Down

0 comments on commit 0a2b3bf

Please sign in to comment.