ReleaseEngineering/How To/Update Mercurial: Difference between revisions

Jump to navigation Jump to search
Line 122: Line 122:
I'm not repeating the puppet user environment instructions here, but I will detail what you need to change for these nodes.
I'm not repeating the puppet user environment instructions here, but I will detail what you need to change for these nodes.
==== 10.6 (Snow Leopard) ====
==== 10.6 (Snow Leopard) ====
'''''TODO''''' MOVE THE OSX SECTION BELOW THE PACKAGE DEPLOY SECTIONS. WE NEED RPM ON PUPPETAGAIN FIRST
* Disable a random production slave, commenting with whatever bug you need it for, (you're essentially doing a loan - but need puppet running)
* Disable a random production slave, commenting with whatever bug you need it for, (you're essentially doing a loan - but need puppet running)
* Make sure you have a (clean/updated) puppetagain environment setup you can use (See [[ReleaseEngineering/PuppetAgain/HowTo/Set_up_a_user_environment|The Docs]])
* Make sure you have a (clean/updated) puppetagain environment setup you can use (See [[ReleaseEngineering/PuppetAgain/HowTo/Set_up_a_user_environment|The Docs]])
Line 135: Line 136:
     include packages::xcode
     include packages::xcode
  }
  }
* login to your host and run puppet
** '''''CHANGE THE PUPPET ARGS APPROPRIATELY''''
ssh root@t-snow-r4-0000.build.mozilla.org
puppet agent --server foo --test --environment jwood
* change to cltbld
su - cltbld
* Get the necessary file:
mkdir mercurial
cd mercurial
wget -O py27_mercurial-dmg.sh \
    http://hg.mozilla.org/build/puppet/raw-file/default/modules/packages/manifests/mozilla/py27_mercurial-dmg.sh
chmod 755 ./py27_mercurial-dmg.sh
* Update the script to be the correct version
OLDHGVER=3.2.1
NEWHGVER=4.0
sed -i "s/version=$OLDHGVER/version=$NEWHGVER/" ./py27_mercurial-dmg.sh
* Get the new tar.gz
wget http://mercurial.selenic.com/release/mercurial-$NEWHGVER.tar.gz
* Run the script
./py27_mercurial-dmg.sh
* The script will output where the dmg is, copy it outside the host (storing it in a way that you know it was for 10.6)
* You now want to reimage the slave following [https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=34014655 this mana doc], and put it back in production in slavealloc


==== 10.7 (Lion) ====
==== 10.7 (Lion) ====
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
1,529

edits

Navigation menu