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

Unified Diff: scripts/slave/recipes/infra/luci_gae.py

Issue 2047263003: build: delete infra recipes moved to infra repo except infra_continuous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 6 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/infra/luci_gae.py
diff --git a/scripts/slave/recipes/infra/luci_gae.py b/scripts/slave/recipes/infra/luci_gae.py
deleted file mode 100644
index d89cdee2703be2e8d7e40ff4a4537b0d3f0378cb..0000000000000000000000000000000000000000
--- a/scripts/slave/recipes/infra/luci_gae.py
+++ /dev/null
@@ -1,106 +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.
-
-DEPS = [
- 'depot_tools/bot_update',
- 'depot_tools/gclient',
- 'depot_tools/git',
- 'depot_tools/presubmit',
- 'recipe_engine/json',
- 'recipe_engine/path',
- 'recipe_engine/properties',
- 'recipe_engine/python',
- 'depot_tools/tryserver',
-]
-
-
-def _run_presubmit(api, patch_root, bot_update_step):
- upstream = bot_update_step.json.output['properties'].get(
- api.gclient.c.got_revision_mapping[
- 'infra/go/src/github.com/luci/gae'])
- # The presubmit must be run with proper Go environment.
- # infra/go/env.py takes care of this.
- presubmit_cmd = [
- 'python', # env.py will replace with this its sys.executable.
- api.presubmit.presubmit_support_path,
- '--root', api.path['slave_build'].join(patch_root),
- '--commit',
- '--verbose', '--verbose',
- '--issue', api.properties['issue'],
- '--patchset', api.properties['patchset'],
- '--skip_canned', 'CheckRietveldTryJobExecution',
- '--skip_canned', 'CheckTreeIsOpen',
- '--skip_canned', 'CheckBuildbotPendingBuilds',
- '--rietveld_url', api.properties['rietveld'],
- '--rietveld_fetch',
- '--upstream', upstream,
- '--rietveld_email', ''
- ]
- api.python('presubmit', api.path['checkout'].join('go', 'env.py'),
- presubmit_cmd, env={'PRESUBMIT_BUILDER': '1'})
-
-
-def _commit_change(api, patch_root):
- api.git('-c', 'user.email=commit-bot@chromium.org',
- '-c', 'user.name=The Commit Bot',
- 'commit', '-a', '-m', 'Committed patch',
- name='commit git patch',
- cwd=api.path['slave_build'].join(patch_root))
-
-
-def RunSteps(api):
- api.gclient.set_config('luci_gae')
- # patch_root must match the luci/gae repo, not infra checkout.
- for path in api.gclient.c.got_revision_mapping:
- if 'github.com/luci/gae' in path:
- patch_root = path
- break
- bot_update_step = api.bot_update.ensure_checkout(force=True,
- patch_root=patch_root)
-
- is_presubmit = 'presubmit' in api.properties.get('buildername', '').lower()
- if is_presubmit:
- _commit_change(api, patch_root)
- api.gclient.runhooks()
-
- # This downloads the third parties, so that the next step doesn't have junk
- # output in it.
- api.python(
- 'go third parties',
- api.path['checkout'].join('go', 'env.py'),
- ['go', 'version'])
-
- if is_presubmit:
- with api.tryserver.set_failure_hash():
- _run_presubmit(api, patch_root, bot_update_step)
- else:
- api.python(
- 'go build',
- api.path['checkout'].join('go', 'env.py'),
- ['go', 'build', 'github.com/luci/gae/...'])
-
- api.python(
- 'go test',
- api.path['checkout'].join('go', 'env.py'),
- ['go', 'test', 'github.com/luci/gae/...'])
-
-
-def GenTests(api):
- yield (
- api.test('luci_gae') +
- api.properties.git_scheduled(
- path_config='kitchen',
- buildername='luci-gae-linux64',
- mastername='chromium.infra',
- repository='https://chromium.googlesource.com/external/github.com/luci/gae',
- )
- )
- yield (
- api.test('presubmit_try_job') +
- api.properties.tryserver(
- path_config='kitchen',
- mastername='tryserver.infra',
- buildername='Luci-GAE Presubmit',
- ) + api.step_data('presubmit', api.json.output([[]]))
- )

Powered by Google App Engine
This is Rietveld 408576698