Skip to content

Commit 20635ba

Browse files
authored
[BOLT] Check processing time and max RSS swings in nfc builder (#70)
1 parent 38ec3ca commit 20635ba

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

zorg/buildbot/builders/BOLTBuilder.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ def getBOLTCmakeBuildFactory(
9494
env=env),
9595
ShellCommand(
9696
name='check-bolt-different',
97-
command='rm -f .llvm-bolt.diff; cmp -s bin/llvm-bolt.old bin/llvm-bolt.new || touch .llvm-bolt.diff',
97+
command=('find -name timing.log -delete; '
98+
'rm -f .llvm-bolt.diff; '
99+
'cmp -s bin/llvm-bolt.old bin/llvm-bolt.new || '
100+
'touch .llvm-bolt.diff'),
98101
description=('Check if llvm-bolt binaries are different and '
99102
'skip the following nfc-check steps'),
100103
haltOnFailure=False,
@@ -123,6 +126,16 @@ def getBOLTCmakeBuildFactory(
123126
flunkOnFailure=False,
124127
doStepIf=FileExists('build/.llvm-bolt.diff'),
125128
env=env),
129+
LitTestCommand(
130+
name='nfc-stat-check',
131+
command=(f"../{f.monorepo_dir}/bolt/utils/nfc-stat-parser.py "
132+
"`find -name timing.log`"),
133+
description="Check BOLT processing time and max RSS swings",
134+
warnOnFailure=True,
135+
haltOnFailure=False,
136+
flunkOnFailure=False,
137+
doStepIf=FileExists('build/.llvm-bolt.diff'),
138+
env=env),
126139
])
127140

128141
return f

0 commit comments

Comments
 (0)