User:Ewong/info
Contents
Build horkage
From the 2.38 builds, we experienced some weird db horkage in which clicking on the source force build gave me nothing on the source builder page. In the full builders list, it shows as building, but there are no builds in the source builder page.
In the database, in the builds_properties table, it shows the builds with properties. It even shows which slave took the build. But the slaves aren't doing the source build.
- Had to go into the buildrequests table, and delete the offending entries with the buildername as 'source'.
- Had to delete the entries in the buildsets table (with the same buildsetsid as found in buildrequests table.
- deleted the actual builds in the builds table.
Why We Still Use Minis
- Because:
- 2012 Mac Minis are quad core i7s. 2014 are dual Core i5s. And Mac Pros are expensive. :(
crash-stats api token update
Every three months, the crash-stats-api.token needs to be renewed. The process is as follows:
- Log on to crash-stats.mozilla.com under my account
- Go to the API Token link (at the bottom)
- Generate new Token
- copy&paste the token to a file. (crash-stats-api.token)
- log on to sea-puppet as root
- mkdir tmp (on ~)
- copy the crash-stats-api.token to ~/tmp
- execute:
cat crash-stats-api.token | eyaml encrypt --pkcs7-private-key /etc/hiera/keys/private_key.pem --pkcs7-public-key /etc/hiera/keys/public_key.pem --output examples --stdin -l 'crash-stats-api.token' > x.tmp
- vi /etc/hiera/secrets.eyaml, c&p the contents of the x.tmp (select one of the options) and replace the existing crash_stats_api key.
- remember to rename crash-stats-api.token to crash_stats_api_token for the key.
- save file
- reboot all slaves.
Misc Commands
CVS command:
export CVSROOT=:ext:ewong%...@cvs.mozilla.org:/www
then
cvs checkout seamonkeyproject-org
(This is just old stuff. We've migrated to Mercurial. This is just for historic information.)
On Make Buildsymbols fail
Let _VERSION=*version to be released Let _BUILD = *build # Let _CHANNEL = release channel. i.e beta Let _CHAN_SHORT = release channel short form. i.e. rel for release, beta for beta
export MOZ_PKG_PRETTYNAMES=1 export MOZ_PKG_VERSION=_VERSION export MOZ_SYMBOLS_EXTRA_BUILDID=macosx64 export MOZ_UPDATE_CHANNEL=_CHANNEL cd /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/build/objdir/i386 make buildsymbols
export SYMBOL_SERVER_HOST=symbolpush.mozilla.org export SYMBOL_SERVER_PATH=/mnt/netapp/breakpad/symbols_sea/ export SYMBOL_SERVER_SSH_KEY=/Users/seabld/.ssh/seabld_dsa export SYMBOL_SERVER_USER=seabld make uploadsymbols
make package
cd /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/
python build/mozilla/config/printconfigsetting.py build/objdir/i386/mozilla/dist/bin/application.ini App BuildID
-> _ID
python build/mozilla/config/printconfigsetting.py build/objdir/i386/mozilla/dist/bin/application.ini App Version
-> _VERSION
cd /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/build
make -C objdir/i386/mozilla/tools/update-packaging
cd /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/build/objdir/i386/mozilla/dist echo buildID=_ID > macosx64_info.txt
export UPLOAD_EXTRA_FILES=macosx64_info.txt export UPLOAD_HOST=stage.mozilla.org export UPLOAD_SSH_KEY=~/.ssh/seabld_dsa export UPLOAD_TO_TEMP=1 export UPLOAD_USER=seabld
cd /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/build/objdir/i386 export POST_UPLOAD_CMD="post_upload.py -p seamonkey -n _BUILD -v _VERSION --release-to-candidates-dir" python /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/tools/buildfarm/utils/retry.py -s 1 -r 5 -t 3660 make upload
post_upload.py -n == build #, -v == version #.
cd /builds/slave/rel-comm-_CHAN_SHORT-osx64-bld/build/objdir/i386
make package-compare
On transplant
Justin@ORION /d/sources/comm-beta $ hg pull pulling from ssh://hg.mozilla.org/releases/comm-beta searching for changes adding changesets adding manifests adding file changes added 374 changesets with 853 changes to 556 files (+4 heads) (run 'hg heads' to see heads, 'hg merge' to merge)
Justin@ORION /d/sources/comm-beta $ hg up -r SEA_COMM190_20130111_RELBRANCH -C 502 files updated, 0 files merged, 12 files removed, 0 files unresolved
Justin@ORION /d/sources/comm-beta $ hg transplant 23039d3871de applying 23039d3871de 23039d3871de transplanted to 5897900fe21a
Justin@ORION /d/sources/comm-beta $ hg out comparing with ssh://hg.mozilla.org/releases/comm-beta searching for changes changeset: 14374:5897900fe21a branch: SEA_COMM190_20130111_RELBRANCH tag: tip parent: 14372:7212691a980c user: Edmund Wong <ewong@pw-wspx.org> date: Fri Jan 11 22:28:46 2013 +0800 summary: No bug - Add l10n release configs. r=release a=release
Justin@ORION /d/sources/comm-beta
$ hg tag -f -r 14374 SEAMONKEY_2_16b1_BUILD1 SEAMONKEY_2_16b1_RELEASE
Justin@ORION /d/sources/comm-beta $ hg out comparing with ssh://hg.mozilla.org/releases/comm-beta searching for changes changeset: 14374:5897900fe21a branch: SEA_COMM190_20130111_RELBRANCH tag: SEAMONKEY_2_16b1_BUILD1 tag: SEAMONKEY_2_16b1_RELEASE parent: 14372:7212691a980c user: Edmund Wong <ewong@pw-wspx.org> date: Fri Jan 11 22:28:46 2013 +0800 summary: No bug - Add l10n release configs. r=release a=release
changeset: 14375:f3fa50fd365b branch: SEA_COMM190_20130111_RELBRANCH tag: tip user: Justin Wood <Callek@gmail.com> date: Fri Jan 11 19:13:57 2013 -0500 summary: Added tag SEAMONKEY_2_16b1_BUILD1, SEAMONKEY_2_16b1_RELEASE for changeset 5897900fe21a
Justin@ORION /d/sources/comm-beta
$ hg push
pushing to ssh://hg.mozilla.org/releases/comm-beta
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 2 changesets with 1 changes to 1 files
remote: Pushing to an APPROVAL REQUIRED tree requires your top changeset comment to include: a=... (or, more accu
rately, a\S*=...)
remote: transaction abort!
remote: rollback completed
remote: abort: pretxnchangegroup.a_treeclosure hook failed
Justin@ORION /d/sources/comm-beta $ hg qimport -r tip
Justin@ORION /d/sources/comm-beta $ hg qref -e
Justin@ORION /d/sources/comm-beta $ hg out comparing with ssh://hg.mozilla.org/releases/comm-beta searching for changes changeset: 14374:5897900fe21a branch: SEA_COMM190_20130111_RELBRANCH tag: SEAMONKEY_2_16b1_BUILD1 tag: SEAMONKEY_2_16b1_RELEASE tag: qparent parent: 14372:7212691a980c user: Edmund Wong <ewong@pw-wspx.org> date: Fri Jan 11 22:28:46 2013 +0800 summary: No bug - Add l10n release configs. r=release a=release
changeset: 14375:8c3a01b74252 branch: SEA_COMM190_20130111_RELBRANCH tag: 14375.diff tag: qtip tag: qbase tag: tip user: Justin Wood <Callek@gmail.com> date: Fri Jan 11 19:13:57 2013 -0500 summary: Added tag SEAMONKEY_2_16b1_BUILD1, SEAMONKEY_2_16b1_RELEASE for changeset 5897900fe21a. r=callek a=c allek
Justin@ORION /d/sources/comm-beta
$ hg push
pushing to ssh://hg.mozilla.org/releases/comm-beta
abort: source has mq patches applied
Justin@ORION /d/sources/comm-beta $ hg qfin -a && hg push pushing to ssh://hg.mozilla.org/releases/comm-beta searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 2 changesets with 1 changes to 1 files remote: You can view your changes at the following URLs: remote: https://hg.mozilla.org/releases/comm-beta/rev/5897900fe21a remote: https://hg.mozilla.org/releases/comm-beta/rev/8c3a01b74252 remote: Trying to insert into pushlog. remote: Please do not interrupt... remote: Inserted into the pushlog db successfully.