ReleaseEngineering/How To/Reset the Try Server: Difference between revisions
< ReleaseEngineering | How To
Jump to navigation
Jump to search
No edit summary |
(Update RelEng responsibilities) |
||
Line 26: | Line 26: | ||
***chown -R hg:hg_mozilla try | ***chown -R hg:hg_mozilla try | ||
** typically this is done by aravind | ** typically this is done by aravind | ||
* RelEng to | * RelEng to remove message from tinderbox server. | ||
[RelEng no longer needs to push 1.9.1 and 1.9.2 to try, since we don't support those branches; and doesn't need to reconfig any masters to get the hg polling working again.] | |||
Revision as of 04:40, 18 October 2010
Due to increased usage on tryserver, this is something we need to do approx once a month. This can typically be done in 30-60minutes.
- make sure joduinn has extracted all the logs he needs for blogposts. Its nice, but not required, to do this repo reset at the end of the calendar month, as it makes blogpost work easier.
- RelEng to post downtime notices to dev.planning, and mark the TryServer closed.
- Note this does *not* touch any production build/test/talos machines, so does *not* require closing mozilla-central, or any other tree.
- File IT bug to
- delete the try server hg repo
- rm -rf /repo/hg/mozilla/try
- create a fresh new hg repo cloned from mozilla-central.
- su - hg
- cd /repo/hg/mozilla
- hg clone mozilla-central try
- create an empty pushlog db.
- su - hg
- cp /repo/hg/mozilla/mozilla-central/.hg/pushlog2.db /repo/hg/mozilla/try/.hg/pushlog2.db
- chown hg:scm_level_1 /repo/hg/mozilla/try/.hg/pushlog2.db
- chmod g+w /repo/hg/mozilla/try/.hg/pushlog2.db
- cd /repo/hg/mozilla/try/.hg/
- sqlite3 pushlog2.db
- sqlite> delete from changesets;
- sqlite> delete from pushlog;
- sqlite> .exit
- Reset perms on the repo.
- Become the root user on the machine.
- cd /repo/hg/mozilla/
- chown -R hg:hg_mozilla try
- typically this is done by aravind
- delete the try server hg repo
- RelEng to remove message from tinderbox server.
[RelEng no longer needs to push 1.9.1 and 1.9.2 to try, since we don't support those branches; and doesn't need to reconfig any masters to get the hg polling working again.]