Merge lp:~adconrad/launchpad-buildd/speed-fixes into lp:launchpad-buildd

Proposed by Adam Conrad
Status: Merged
Approved by: William Grant
Approved revision: 53
Merged at revision: 52
Proposed branch: lp:~adconrad/launchpad-buildd/speed-fixes
Merge into: lp:launchpad-buildd
Diff against target: 78 lines (+22/-13)
3 files modified
debian/changelog (+9/-0)
sbuild (+12/-12)
umount-chroot (+1/-1)
To merge this branch: bzr merge lp:~adconrad/launchpad-buildd/speed-fixes
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+98808@code.launchpad.net

Description of the change

  * Shut up umount-chroot's verbose output, it served its purpose.
  * Yank out sbuild's dependency removal code, as we never once
    checked the return from this anyway, so it's just wasted time.
  * Stop writing to avg-space and avg-time, which we don't use.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-01-25 18:46:47 +0000
3+++ debian/changelog 2012-03-22 10:18:20 +0000
4@@ -1,3 +1,12 @@
5+launchpad-buildd (113) hardy; urgency=low
6+
7+ * Shut up umount-chroot's verbose output, it served its purpose.
8+ * Yank out sbuild's dependency removal code, as we never once
9+ checked the return from this anyway, so it's just wasted time.
10+ * Stop writing to avg-space and avg-time, which we don't use.
11+
12+ -- Adam Conrad <adconrad@ubuntu.com> Thu, 22 Mar 2012 04:01:48 -0600
13+
14 launchpad-buildd (112) hardy; urgency=low
15
16 [ Jelmer Vernooij ]
17
18=== modified file 'sbuild'
19--- sbuild 2011-11-29 06:09:01 +0000
20+++ sbuild 2012-03-22 10:18:20 +0000
21@@ -750,7 +750,7 @@
22
23 cleanup_packages:
24 undo_specials();
25- uninstall_deps();
26+ #uninstall_deps();
27 remove_srcdep_lock_file();
28 cleanup_symlinks:
29 remove_files( @files_to_rm );
30@@ -1446,13 +1446,13 @@
31 check_watches();
32 check_space( @space_files );
33
34- if ($conf::purge_build_directory eq "always" ||
35- ($conf::purge_build_directory eq "successful" && $rv == 0)) {
36- print PLOG "Purging $dir\n";
37- system "$conf::sudo rm -rf $dir";
38- }
39-
40- print PLOG "-"x78, "\n";
41+ #if ($conf::purge_build_directory eq "always" ||
42+ # ($conf::purge_build_directory eq "successful" && $rv == 0)) {
43+ # print PLOG "Purging $dir\n";
44+ # system "$conf::sudo rm -rf $dir";
45+ #}
46+ #
47+ #print PLOG "-"x78, "\n";
48 return $rv == 0 ? 1 : 0;
49 }
50
51@@ -3031,10 +3031,10 @@
52
53 $pkg = basename( $pkg );
54 $t = 0 if $t < 0;
55- if ($main::pkg_status eq "successful") {
56- add_time_entry( $pkg, $t );
57- add_space_entry( $pkg, $main::this_space );
58- }
59+ #if ($main::pkg_status eq "successful") {
60+ # add_time_entry( $pkg, $t );
61+ # add_space_entry( $pkg, $main::this_space );
62+ #}
63 print PLOG "*"x78, "\n";
64 printf PLOG "Finished at ${date}Build needed %02d:%02d:%02d, %dk disk space\n",
65 int($t/3600), int(($t%3600)/60), int($t%60), $main::this_space;
66
67=== modified file 'umount-chroot'
68--- umount-chroot 2011-11-09 07:50:56 +0000
69+++ umount-chroot 2012-03-22 10:18:20 +0000
70@@ -26,7 +26,7 @@
71 # pass at umounting fails unless we reverse the list. Leave the while
72 # loop in just to handle pathological cases, too.
73 COUNT=0
74-while $GREP "$HOME/build-$BUILDID/chroot-autobuild" /proc/mounts; do
75+while $GREP -q "$HOME/build-$BUILDID/chroot-autobuild" /proc/mounts; do
76 COUNT=$(($COUNT+1))
77 if [ $COUNT -ge 20 ]; then
78 echo "failed to umount $HOME/build-$BUILDID/chroot-autobuild"

Subscribers

People subscribed via source and target branches