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

Side by Side Diff: bin/cbuildbot.py

Issue 6291013: Have the ability for the PFQ to both rev Chrome and other packages. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | bin/cbuildbot_config.py » ('j') | cros_mark_as_stable.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" 7 """CBuildbot is wrapper around the build process used by the pre-flight queue"""
8 8
9 import errno 9 import errno
10 import heapq 10 import heapq
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 for path in rev_overlays: 728 for path in rev_overlays:
729 if not os.path.isdir(path): 729 if not os.path.isdir(path):
730 Die('Missing overlay: %s' % path) 730 Die('Missing overlay: %s' % path)
731 731
732 if not os.path.isdir(chroot_path): 732 if not os.path.isdir(chroot_path):
733 _MakeChroot(buildroot) 733 _MakeChroot(buildroot)
734 734
735 if not os.path.isdir(boardpath): 735 if not os.path.isdir(boardpath):
736 _SetupBoard(buildroot, board=buildconfig['board']) 736 _SetupBoard(buildroot, board=buildconfig['board'])
737 737
738 # Perform uprev. If chrome_uprev is set, rev Chrome ebuilds. 738 # Perform chrome uprev.
739 if options.chrome_rev: 739 chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch,
740 chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch, 740 options.chrome_rev, board)
741 options.chrome_rev, board) 741 # Perform other uprevs.
742 # If we found nothing to rev, we're done here. 742 if buildconfig['uprev']:
743 if not chrome_atom_to_build:
744 return
745
746 elif buildconfig['uprev']:
747 _UprevPackages(buildroot, tracking_branch, revisionfile, 743 _UprevPackages(buildroot, tracking_branch, revisionfile,
748 buildconfig['board'], rev_overlays) 744 buildconfig['board'], rev_overlays)
745 elif not chrome_atom_to_ebuild:
746 # We found nothing to rev, we're done here.
747 return
749 748
750 _EnableLocalAccount(buildroot) 749 _EnableLocalAccount(buildroot)
751 750
752 if options.build: 751 if options.build:
753 _Build(buildroot, emptytree) 752 _Build(buildroot, emptytree)
754 753
755 if buildconfig['unittests'] and options.tests: 754 if buildconfig['unittests'] and options.tests:
756 _RunUnitTests(buildroot) 755 _RunUnitTests(buildroot)
757 756
758 _BuildImage(buildroot) 757 _BuildImage(buildroot)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 except: 798 except:
800 # Send failure to master bot. 799 # Send failure to master bot.
801 if not buildconfig['master'] and buildconfig['important']: 800 if not buildconfig['master'] and buildconfig['important']:
802 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) 801 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED)
803 802
804 raise 803 raise
805 804
806 805
807 if __name__ == '__main__': 806 if __name__ == '__main__':
808 main() 807 main()
OLDNEW
« no previous file with comments | « no previous file | bin/cbuildbot_config.py » ('j') | cros_mark_as_stable.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698