ReleaseEngineering/UsefulTricks: Difference between revisions

Jump to navigation Jump to search
Replaced content with "Please add your tricks here, tricksters."
m (moved User:CF:UsefulTricks to ReleaseEngineering/UsefulTricks: move useful docs to a better link)
(Replaced content with "Please add your tricks here, tricksters.")
 
Line 1: Line 1:
= Machine comparison =
Please add your tricks here, tricksters.
<pre>
logfile=fx-mac-1.9-slave1
set > $logfile
# create a sha1sum for every file on the path
echo >> $logfile; echo PATH: >> $logfile; (dirs=`echo $PATH | sed 's/:/ /g'`; for dir in $dirs; do if [[ '.' != $dir ]]; then find $dir -maxdepth 1 ! -type d | perl -nle 'system("openssl","dgst","-sha1",$_)'; fi; done) 2>&1 | tee -a $logfile
# for Windows, sha1sum every file on INCLUDE
echo >> $logfile; echo INCLUDE: >> $logfile; (dirs=`echo $INCLUDE | sed 's/;/ /g'`; for dir in $dirs; do if [[ '.' != $dir ]]; then find $dir -maxdepth 1 ! -type d | perl -nle 'system("openssl","dgst","-sha1",$_)'; fi; done) 2>&1 | tee -a $logfile
</pre>
= Remove SeaMonkey nightly l10n builds (cltbld@stage) =
cd /pub/mozilla.org/seamonkey/nightly/2008/
find 06 -type f ! -name '*en-US*' -ls | grep trunk | grep -v xpi | awk '{sum+=$7; printf("%9s  %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~/cf/remove_seamonkey_l10n/2008-06 | less
find 06 -type f ! -name '*en-US*' | grep trunk | grep -v xpi | xargs rm -v | tee -a ~/cf/remove_seamonkey_l10n/2008-06
= Remove old complete mar files (root@stage) =
== Firefox ==
cd /pub/mozilla.org/firefox/nightly/2008/
find 11 -name '*.mar' -ls | grep -E '(mozilla1.8.0|mozilla1.8|trunk|mozilla1.9.0|mozilla-1.9.1|mozilla-central|(action|trace)monkey)/' | awk '{sum+=$7; printf("%9s  %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~cltbld/cf/remove_mars/round2/fx-2008-11
find 11 -name '*.mar'    | grep -E '(mozilla1.8.0|mozilla1.8|trunk|mozilla1.9.0|mozilla-1.9.1|mozilla-central|(action|trace)monkey)/' | xargs rm -v | tee -a ~cltbld/cf/remove_mars/round2/fx-2008-11
 
== Sunbird ==
cd /pub/mozilla.org/calendar/sunbird/nightly/2008/
find 10 -name '*.mar' -ls | grep -E '(mozilla1.8|trunk|comm-central-sunbird)/' | awk '{sum+=$7; printf("%9s  %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~cltbld/cf/remove_mars/round2/sb-2008-10
find 10 -name '*.mar'    | grep -E '(mozilla1.8|trunk|comm-central-sunbird)/' | xargs rm -v | tee -a ~cltbld/cf/remove_mars/round2/sb-2008-10
 
== SeaMonkey ==
cd /pub/mozilla.org/seamonkey/nightly/2008/
find 06 -name '*.mar' -ls | grep -E 'comm-' | awk '{sum+=$7; printf("%9s  %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~cltbld/cf/remove_mars/round2/sm-2008-06
find 06 -name '*.mar' | grep -E 'comm-' | xargs rm -v | tee -a ~cltbld/cf/remove_mars/round2/sm-2009-06
 
= Change account for CVS/Root =
for i in `find . -name '*Root'`; do echo $i; in=`cat $i`; echo $in | sed s/cltbld/tbirdbld/ > $i; done
= Compress old log files (eg buildbot masters) =
find . -mtime +5 -type f -size +10k -exec bzip2 -v {} \;
= Buildbot job analysis =
To figure out when jobs ''finished'' and who did them (win32 specific, need to put in build numbers into for argument)
for ((b=5013;b>=4990;b--)); do echo `ls -l $b`  `grep -a win32-slave $b | perl -nle '$_ =~ s/Building on: (moz2-win32-slave\d+)/$1/; print $1' | grep \.`; done
Confirmed users
4,293

edits

Navigation menu