ReleaseEngineering/How To/Update Mercurial: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 30: Line 30:
  ssh $USER@rpmpackager1.srv.releng.use1.mozilla.com
  ssh $USER@rpmpackager1.srv.releng.use1.mozilla.com
* Get Old RPM, Spec from puppet, and extract spec from rpm, Also get new sources
* Get Old RPM, Spec from puppet, and extract spec from rpm, Also get new sources
  NEWHGVER=3.9.1  # Set this appropriately
  NEWHGVER=4.4.1  # Set this appropriately
  NEWHGREL=1 #Set this too
  NEWHGREL=1 #Set this too
  OLDHGVER=3.7.3
  OLDHGVER=3.9.1
  OLDHGREL=1
  OLDHGREL=1
  OLDHGFULL=$OLDHGVER-$OLDHGREL
  OLDHGFULL=$OLDHGVER-$OLDHGREL
Line 120: Line 120:


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) ====
'''''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)
* Make sure you have a (clean/updated) puppetagain environment setup you can use (See [[ReleaseEngineering/PuppetAgain/HowTo/Set_up_a_user_environment|The Docs]])
* Add packagemaker and xcode to the node def for testers (applies to all OSX jobs)
** '''Note''' This will break any tester puppet runs for non OSX (but is fixable by reverting this)
# linux64 and OS X
node /t.*-\d+\.test\.releng\.scl3\.mozilla\.com/ {
    # hosts starting with t and ending in -digit.test.releng.scl3.mozilla.com
    $slave_trustlevel = 'try'
    include toplevel::slave::releng::test::gpu
    # New Lines Here
    include packages::packagemaker
    include packages::xcode
}
* login to your host and run puppet
** '''''CHANGE THE PUPPET ARGS APPROPRIATELY''''
SLAVE=t-snow-r4-0089
ssh root@$SLAVE.test.releng.scl3.mozilla.com
USER=yourusername
puppet agent --server foo --test --environment $USER
* 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.7.3
NEWHGVER=3.9.1
sed -i "s/version=$OLDHGVER/version=$NEWHGVER/" ./py27_mercurial-dmg.sh
* Get the new tar.gz
wget https://www.mercurial-scm.org/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) ====
* 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)
Line 171: Line 131:
  chmod 755 ./py27_mercurial-dmg.sh
  chmod 755 ./py27_mercurial-dmg.sh
* Update the script to be the correct version
* Update the script to be the correct version
  OLDHGVER=3.7.3
  OLDHGVER=3.9.1
  NEWHGVER=3.9.1
  NEWHGVER=4.4.1
  sed -i "s/version=$OLDHGVER/version=$NEWHGVER/" ./py27_mercurial-dmg.sh
  sed -i "s/version=$OLDHGVER/version=$NEWHGVER/" ./py27_mercurial-dmg.sh
* Get the new tar.gz  
* Get the new tar.gz  
Line 210: Line 170:
  chmod 755 ./py27_mercurial-dmg.sh
  chmod 755 ./py27_mercurial-dmg.sh
* Update the script to be the correct version
* Update the script to be the correct version
  OLDHGVER=3.7.3
  OLDHGVER=3.9.1
  NEWHGVER=3.9.1
  NEWHGVER=4.4.1
  sed -i "s/version=$OLDHGVER/version=$NEWHGVER/" ./py27_mercurial-dmg.sh
  sed -i "s/version=$OLDHGVER/version=$NEWHGVER/" ./py27_mercurial-dmg.sh
* Get the new tar.gz  
* Get the new tar.gz  
12

edits