Skip to content

Commit f0fdd8a

Browse files
committed
fix(build): Adjust formatting for better readability in coverage and trial build scripts
1 parent cd02525 commit f0fdd8a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

infra/build/functions/build_and_run_coverage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_build_steps( # pylint: disable=too-many-locals, too-many-arguments
9090

9191
if project.fuzzing_language not in LANGUAGES_WITH_COVERAGE_SUPPORT:
9292
return [], (f'Project "{project.name}" is written in '
93-
f'"{project.fuzzing_language}", coverage is not supported yet.')
93+
f'"{project.fuzzing_language}", coverage is not supported yet.')
9494

9595
report_date = build_project.get_datetime_now().strftime('%Y%m%d')
9696
bucket = CoverageBucket(project.name, report_date, PLATFORM, config.testing)
@@ -258,7 +258,7 @@ def get_build_steps( # pylint: disable=too-many-locals, too-many-arguments
258258

259259
build_steps.append(
260260
build_lib.http_upload_step(latest_report_info_body,
261-
latest_report_info_url,
261+
latest_report_info_url,
262262
LATEST_REPORT_INFO_CONTENT_TYPE))
263263
return build_steps, None
264264

@@ -273,8 +273,8 @@ def get_fuzz_introspector_steps( # pylint: disable=too-many-locals, too-many-ar
273273

274274
if project.fuzzing_language not in LANGUAGES_WITH_INTROSPECTOR_SUPPORT:
275275
return [], (f'Project "{project.name}" is written in '
276-
f'"{project.fuzzing_language}", Fuzz Introspector is not '
277-
'supported yet.')
276+
f'"{project.fuzzing_language}", Fuzz Introspector is not '
277+
'supported yet.')
278278

279279
build_steps = []
280280
build = build_project.Build(FUZZING_ENGINE, 'introspector', ARCHITECTURE)

infra/build/functions/trial_build.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ def _do_test_builds(args, test_image_suffix, end_time, version_tag):
287287
build_ids = collections.defaultdict(list)
288288
skipped_projects = []
289289
failed_to_start_builds = []
290-
projects_to_build_count = 0
291290
credentials = oauth2client.client.GoogleCredentials.get_application_default()
292291

293292
logging.info(
@@ -332,10 +331,8 @@ def _do_test_builds(args, test_image_suffix, end_time, version_tag):
332331
failed_to_start_builds.extend(new_failed_to_start)
333332
for project, project_build_id in project_builds.items():
334333
build_ids[project].append(project_build_id)
335-
projects_to_build_count += 1
336334

337335
logging.info('Triggered all builds.')
338-
339336
if skipped_projects:
340337
logging.info(
341338
'================================================================')
@@ -413,7 +410,7 @@ def _do_build_type_builds(args, config, credentials, build_type, projects):
413410
continue
414411

415412
steps, reason = build_type.get_build_steps_func(project_name, project_yaml,
416-
dockerfile_contents, config)
413+
dockerfile_contents, config)
417414
if reason:
418415
skipped_projects.append((project_name, reason))
419416
continue

0 commit comments

Comments
 (0)