Skip to content

Commit b128897

Browse files
authored
Minor cleanups (#542)
* Remove unused imports * Clean up trailing whitespace * Remove setting for defunct worker * Fix replacement-less f-strings
1 parent b2834aa commit b128897

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

master/custom/factories.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ class ClangUbsanLinuxBuild(UnixBuild):
322322
]
323323
factory_tags = ["clang", "ubsan", "sanitizer"]
324324

325+
325326
class ClangUbsanFunctionLinuxBuild(UnixBuild):
326327
buildersuffix = ".clang-ubsan-function"
327328
configureFlags = [
@@ -332,6 +333,7 @@ class ClangUbsanFunctionLinuxBuild(UnixBuild):
332333
]
333334
factory_tags = ["clang", "ubsan", "sanitizer"]
334335

336+
335337
class ClangUnixInstalledBuild(UnixInstalledBuild):
336338
buildersuffix = ".clang-installed"
337339
configureFlags = [
@@ -1238,13 +1240,13 @@ def setup(self, parallel, branch, **kwargs):
12381240
command=["./configure", "--prefix", "$(PWD)/target"] + self.configureFlags
12391241
)
12401242
)
1241-
1243+
12421244
compile = ["make", self.makeTarget]
12431245
if parallel:
12441246
compile = ["make", parallel, self.makeTarget]
1245-
1247+
12461248
self.addStep(Compile(command=compile, env=self.compile_environ))
1247-
1249+
12481250
self.addStep(
12491251
ShellCommand(
12501252
name="pythoninfo",
@@ -1254,7 +1256,7 @@ def setup(self, parallel, branch, **kwargs):
12541256
env=self.test_environ,
12551257
)
12561258
)
1257-
1259+
12581260
test = [
12591261
"valgrind",
12601262
"--leak-check=full",
@@ -1264,16 +1266,16 @@ def setup(self, parallel, branch, **kwargs):
12641266
"--track-origins=yes",
12651267
"--trace-children=yes",
12661268
"--suppressions=$(PWD)/Misc/valgrind-python.supp",
1267-
"./python",
1269+
"./python",
12681270
"-m", "test",
12691271
*self.testFlags,
12701272
f"--timeout={self.test_timeout}",
12711273
]
1272-
1274+
12731275
self.addStep(Test(
12741276
command=test,
12751277
timeout=step_timeout(self.test_timeout),
12761278
env=self.test_environ,
12771279
))
1278-
1279-
self.addStep(Clean())
1280+
1281+
self.addStep(Clean())

master/custom/pr_testing.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515

1616
GITHUB_PROPERTIES_WHITELIST = ["*.labels"]
1717

18-
BUILD_SCHEDULED_MESSAGE = f"""\
19-
:robot: New build scheduled with the buildbot fleet by @{{user}} for commit {{commit}} :robot:
18+
BUILD_SCHEDULED_MESSAGE_TEMPLATE = """\
19+
:robot: New build scheduled with the buildbot fleet by @{user} for commit {commit} :robot:
2020
21-
If you want to schedule another build, you need to add the <kbd>{{label}}</kbd> label again.
21+
If you want to schedule another build, you need to add the <kbd>{label}</kbd> label again.
2222
"""
2323

24-
BUILD_COMMAND_SCHEDULED_MESSAGE = f"""\
25-
:robot: New build scheduled with the buildbot fleet by @{{user}} for commit {{commit}} :robot:
24+
BUILD_COMMAND_SCHEDULED_MESSAGE_TEMPLATE = """\
25+
:robot: New build scheduled with the buildbot fleet by @{user} for commit {commit} :robot:
2626
27-
The command will test the builders whose names match following regular expression: `{{filter}}`
27+
The command will test the builders whose names match following regular expression: `{filter}`
2828
2929
The builders matched are:
30-
{{builders}}
30+
{builders}
3131
"""
3232

3333
BUILDBOT_COMMAND = re.compile(r"!buildbot (.+)")
@@ -82,7 +82,7 @@ def _remove_label_and_comment(self, payload, label):
8282
yield http.post(
8383
url.replace(self.github_api_endpoint, ""),
8484
json={
85-
"body": BUILD_SCHEDULED_MESSAGE.format(
85+
"body": BUILD_SCHEDULED_MESSAGE_TEMPLATE.format(
8686
user=username, commit=commit, label=label
8787
)
8888
},
@@ -273,7 +273,7 @@ def handle_issue_comment(self, payload, event):
273273

274274
yield self._post_comment(
275275
payload["issue"]["comments_url"],
276-
BUILD_COMMAND_SCHEDULED_MESSAGE.format(
276+
BUILD_COMMAND_SCHEDULED_MESSAGE_TEMPLATE.format(
277277
user=payload["sender"]["login"],
278278
commit=head_sha,
279279
filter=builder_filter,

master/master.cfg

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ from custom.builders import ( # noqa: E402
4949
get_builders,
5050
STABLE,
5151
ONLY_MAIN_BRANCH,
52-
TIER_1,
53-
TIER_2,
5452
)
5553

5654

@@ -139,10 +137,6 @@ c["schedulers"] = []
139137

140138
parallel = {w.name: f"-j{w.parallel_tests}" for w in WORKERS if w.parallel_tests}
141139
extra_factory_args = {
142-
"ware-gentoo-x86": {
143-
# test curses as well
144-
"test_with_PTY": True,
145-
},
146140
"cstratak-RHEL8-ppc64le": {
147141
# Increase the timeout on this slow worker
148142
"timeout_factor": 2,

0 commit comments

Comments
 (0)