Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: scripts/slave/recipes/chromium_drfuzz.py

Issue 2205113002: Remove FYI DrMemory clusterfuzz builders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: delete expected files as well Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/chromium_drfuzz.py
diff --git a/scripts/slave/recipes/chromium_drfuzz.py b/scripts/slave/recipes/chromium_drfuzz.py
deleted file mode 100644
index 36921901be2d3da51e22c6a2c562eda466e0489a..0000000000000000000000000000000000000000
--- a/scripts/slave/recipes/chromium_drfuzz.py
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from recipe_engine.types import freeze
-
-
-DEPS = [
- 'archive',
- 'depot_tools/bot_update',
- 'chromium',
- 'file',
- 'recipe_engine/json',
- 'recipe_engine/path',
- 'recipe_engine/platform',
- 'recipe_engine/properties',
- 'recipe_engine/python',
- 'recipe_engine/raw_io',
- 'recipe_engine/step',
-]
-
-
-BUILDERS = freeze({
- 'chromium.fyi': {
- 'builders': {
- 'Win LKGR (DrM)': {
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 32,
- },
- 'upload_bucket': 'chromium-browser-drfuzz',
- 'upload_directory': 'chromium_win32',
- 'bot_type': 'builder',
- },
- 'Win LKGR (DrM 64)': {
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 64,
- },
- 'upload_bucket': 'chromium-browser-drfuzz',
- 'upload_directory': 'chromium_win64',
- 'bot_type': 'builder',
- },
- },
- },
-})
-
-
-def gn_refs(api, step_name, args):
- """Runs gn refs with given additional arguments.
- Returns: the list of matched targets.
- """
- step_result = api.python(step_name,
- api.path['depot_tools'].join('gn.py'),
- ['--root=%s' % str(api.path['checkout']),
- 'refs',
- str(api.chromium.output_dir),
- ] + args,
- stdout=api.raw_io.output())
- return step_result.stdout.split()
-
-
-def RunSteps(api):
- mastername = api.m.properties['mastername']
- buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb'])
-
- checkout_results = api.bot_update.ensure_checkout(
- force=True, patch_root=bot_config.get('root_override'))
-
- api.chromium.runhooks()
-
- api.chromium.run_mb(mastername, buildername, use_goma=False)
-
- all_fuzzers = gn_refs(
- api,
- 'calculate all_fuzzers',
- ['--all',
- '--type=executable',
- '--as=output',
- '//testing/libfuzzer:libfuzzer_main'])
- no_clusterfuzz = gn_refs(
- api,
- 'calculate no_clusterfuzz',
- ['--all',
- '--type=executable',
- '--as=output',
- '//testing/libfuzzer:no_clusterfuzz'])
- targets = list(set(all_fuzzers).difference(set(no_clusterfuzz)))
- api.step.active_result.presentation.logs['all_fuzzers'] = all_fuzzers
- api.step.active_result.presentation.logs['no_clusterfuzz'] = no_clusterfuzz
- api.step.active_result.presentation.logs['targets'] = targets
- api.chromium.compile(targets=targets)
-
- api.archive.clusterfuzz_archive(
- build_dir=api.path['slave_build'].join('src', 'out', 'Release'),
- update_properties=checkout_results.json.output['properties'],
- gs_bucket=bot_config['upload_bucket'],
- archive_prefix='drfuzz',
- archive_subdir_suffix=bot_config['upload_directory'],
- gs_acl='public-read')
-
-def GenTests(api):
- for test in api.chromium.gen_tests_for_builders(BUILDERS):
- yield (test +
- api.step_data('calculate all_fuzzers',
- stdout=api.raw_io.output('target1 target2 target3')) +
- api.step_data('calculate no_clusterfuzz',
- stdout=api.raw_io.output('target1'))
- )
-

Powered by Google App Engine
This is Rietveld 408576698