ReleaseEngineering/BuildAPI: Difference between revisions

→‎BuildAPI: Update for changes in bug 1318969
(→‎BuildAPI: Update for the passage of time)
(→‎BuildAPI: Update for changes in bug 1318969)
Line 156: Line 156:
The steps are roughly as follows, from the base directory of buildapi:
The steps are roughly as follows, from the base directory of buildapi:
* Push new version of BuildAPI to HG
* Push new version of BuildAPI to HG
** Edit setup.py to show the updated version (ie version='0.3.0' becomes version='0.3.1')
** Edit setup.py to show the updated version (eg version='0.3.0' becomes version='0.3.1')
* Build a new sdist tarball of BuildAPI, using normal python techniques, and upload it to the puppetagain python repository at releng-puppet2.srv.releng.scl3.mozilla.com (/data/python/packages on the distinguished puppetmaster)
* Build a new sdist tarball of BuildAPI, using normal python techniques, and upload it to the our pypi repository on relengwebadm.private.scl3.mozilla.com.
** Tarballs can be seen here: http://releng-puppet2.srv.releng.scl3.mozilla.com/python/packages/
** Tarballs can be seen here: http://pypi.pub.build.mozilla.org/pub/
   python setup.py sdist
   python setup.py sdist
   VERSION=0.3.1
   VERSION=0.3.1
   scp dist/buildapi-${VERSION}.tar.gz releng-puppet2.srv.releng.scl3.mozilla.com:
   scp dist/buildapi-${VERSION}.tar.gz relengwebadm.private.scl3.mozilla.com:
   ssh releng-puppet2.srv.releng.scl3.mozilla.com
   ssh relengwebadm.private.scl3.mozilla.com


   VERSION=0.3.1
   VERSION=0.3.1
   sudo mv buildapi-${VERSION}.tar.gz /data/python/packages
   sudo mv buildapi-${VERSION}.tar.gz /mnt/netapp/relengweb/pypi/pub/
  cd /data/python/packages
   sudo chmod 664 /mnt/netapp/relengweb/pypi/pub/buildapi-${VERSION}.tar.gz
  sudo chown puppetsync:puppetsync buildapi-${VERSION}.tar.gz
 
   sudo chmod 664 buildapi-${VERSION}.tar.gz
* Deploy to the webheads, reusing the relengwebadm ssh session from above
* Login to relengwebadm.private.scl3.mozilla.com and become root.  Go to /data/releng-stage/src/buildapi (or /releng/ for production) and have a look at README.txt. Where 0.3.1 is the version you want to install, it boils down to:
  sudo su -
  cd /data/releng/src/buildapi   # or for staging /data/releng-stage/src/buildapi
   ./update 0.3.1
   ./update 0.3.1


Confirmed users
4,293

edits