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

Unified Diff: master/skia_master_scripts/housekeeping_periodic_factory.py

Issue 12380071: Adding trybots for Periodic and PerCommit Housekeeper (Closed) Base URL: http://skia.googlecode.com/svn/buildbot/
Patch Set: Created 7 years, 10 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: master/skia_master_scripts/housekeeping_periodic_factory.py
===================================================================
--- master/skia_master_scripts/housekeeping_periodic_factory.py (revision 7935)
+++ master/skia_master_scripts/housekeeping_periodic_factory.py (working copy)
@@ -30,30 +30,31 @@
if clobber:
self.AddSlaveScript(script='clean.py', description='Clean')
- sanitize_script_path = self.TargetPathJoin('tools',
- 'sanitize_source_files.py')
- skia_trunk_svn_baseurl = '%s/%s' % (
- SKIA_SVN_BASEURL.replace('http', 'https'), 'trunk')
- # Run the sanitization script.
- self._skia_cmd_obj.AddRunCommand(
- command='python %s' % sanitize_script_path,
- description='RunSanitization')
- if self._do_upload_results:
- merge_dir_path = self.TargetPathJoin(tempfile.gettempdir(),
- 'sanitize-merge')
- # Cleanup the previous (if any) sanitize merge dir.
+ if not self._do_patch_step: # Do not run the sanitizer if it is a try job.
borenet 2013/03/01 20:53:00 I think it's clearer from a user perspective to pe
rmistry 2013/03/01 21:05:07 Yes this makes sense in the python scripts, but so
borenet 2013/03/01 21:18:49 Fair enough. Actually, now that I think about it,
+ sanitize_script_path = self.TargetPathJoin('tools',
+ 'sanitize_source_files.py')
+ skia_trunk_svn_baseurl = '%s/%s' % (
+ SKIA_SVN_BASEURL.replace('http', 'https'), 'trunk')
+ # Run the sanitization script.
self._skia_cmd_obj.AddRunCommand(
- command='rm -rf %s' % merge_dir_path, description='Cleanup')
- # Upload sanitized files.
- self._skia_cmd_obj.AddMergeIntoSvn(
- source_dir_path='.',
- dest_svn_url=skia_trunk_svn_baseurl,
- merge_dir_path=merge_dir_path,
- svn_username_file=self._skia_svn_username_file,
- svn_password_file=self._skia_svn_password_file,
- commit_message=WithProperties(
- 'Sanitizing source files in %s' % self._builder_name),
- description='UploadSanitizedFiles')
+ command='python %s' % sanitize_script_path,
+ description='RunSanitization')
+ if self._do_upload_results:
+ merge_dir_path = self.TargetPathJoin(tempfile.gettempdir(),
+ 'sanitize-merge')
+ # Cleanup the previous (if any) sanitize merge dir.
+ self._skia_cmd_obj.AddRunCommand(
+ command='rm -rf %s' % merge_dir_path, description='Cleanup')
+ # Upload sanitized files.
+ self._skia_cmd_obj.AddMergeIntoSvn(
+ source_dir_path='.',
+ dest_svn_url=skia_trunk_svn_baseurl,
+ merge_dir_path=merge_dir_path,
+ svn_username_file=self._skia_svn_username_file,
+ svn_password_file=self._skia_svn_password_file,
+ commit_message=WithProperties(
+ 'Sanitizing source files in %s' % self._builder_name),
+ description='UploadSanitizedFiles')
# pylint: disable=W0212
clang_static_analyzer_script_path = self.TargetPathJoin(
@@ -66,21 +67,22 @@
self.AddSlaveScript(script='check_gs_timestamps.py',
description='CheckGoogleStorageTimestamps')
- # pylint: disable=W0212
- disk_usage_script_path = self.TargetPathJoin(
- self._skia_cmd_obj._local_slave_script_dir,
- 'check_compute_engine_disk_usage.sh')
- self._skia_cmd_obj.AddRunCommand(
- command=('SKIA_COMPUTE_ENGINE_HOSTNAME=%s PERSISTENT_DISK_NAME='
- '/home/default/skia-master %s'
- % (SKIA_PUBLIC_MASTER, disk_usage_script_path)),
- description='CheckMasterDiskUsage')
- self._skia_cmd_obj.AddRunCommand(
- command=(WithProperties('SKIA_COMPUTE_ENGINE_HOSTNAME=%(slavename)s '
- 'PERSISTENT_DISK_NAME='
- '/home/default/skia-slave ' + \
- disk_usage_script_path)),
- description='CheckHousekeepingSlaveDiskUsage')
+ if not self._do_patch_step: # Do not run the checkers if it is a try job.
+ # pylint: disable=W0212
+ disk_usage_script_path = self.TargetPathJoin(
+ self._skia_cmd_obj._local_slave_script_dir,
+ 'check_compute_engine_disk_usage.sh')
+ self._skia_cmd_obj.AddRunCommand(
+ command=('SKIA_COMPUTE_ENGINE_HOSTNAME=%s PERSISTENT_DISK_NAME='
+ '/home/default/skia-master %s'
+ % (SKIA_PUBLIC_MASTER, disk_usage_script_path)),
+ description='CheckMasterDiskUsage')
+ self._skia_cmd_obj.AddRunCommand(
+ command=(WithProperties('SKIA_COMPUTE_ENGINE_HOSTNAME=%(slavename)s '
+ 'PERSISTENT_DISK_NAME='
+ '/home/default/skia-slave ' + \
+ disk_usage_script_path)),
+ description='CheckHousekeepingSlaveDiskUsage')
return self

Powered by Google App Engine
This is Rietveld 408576698