ReleaseEngineering/Archive/Enable or Disable Updates on Aurora: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(→‎Update bouncer: add nightly too)
No edit summary
Line 6: Line 6:
= Disabling Updates =
= Disabling Updates =
NOTE: Disabling no longer has to be done by hand during uplifts. The uplift script does it.
NOTE: Disabling no longer has to be done by hand during uplifts. The uplift script does it.
As cltbld@buildbot-master81:
<pre>
cd /home/cltbld/
rm -rf tools
hg clone https://hg.mozilla.org/build/tools
cd tools/scripts/updates
# Run with dry run first, sanity check the "Would've locked" lines.
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c /builds/buildbot/build_scheduler/master/BuildSlaves.py -u ffxbld -r 8 -r 10 -r 18 -n lock
# Run without dry run to lock the updates
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c /builds/buildbot/build_scheduler/master/BuildSlaves.py -u ffxbld -r 8 -r 10 -r 18 lock
</pre>


This will eventually be integrated with the merge day script.
= Enabling Updates =
Unlike disabling, Firefox and Fennec aren't always re-enabled at the same time. Make sure you are connected to releng VPN.


= Enabling Updates =
Unlike disabling, Firefox and Fennec aren't always re-enabled at the same time.
== Fennec ==
== Fennec ==
As cltbld@buildbot-master81:
<pre>
<pre>
cd /home/cltbld/
cd /tmp
rm -rf tools
rm -rf tools
hg clone https://hg.mozilla.org/build/tools
hg clone https://hg.mozilla.org/build/tools
cd tools/scripts/updates
cd tools/scripts/updates
scp cltbld@buildbot-master81.bb.releng.scl3.mozilla.com:/builds/buildbot/build_scheduler/master/BuildSlaves.py oauth.txt
# Run with dry run first, sanity check the "Would've unlocked" lines.
# Run with dry run first, sanity check the "Would've unlocked" lines.
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c /builds/buildbot/build_scheduler/master/BuildSlaves.py -u ffxbld -r 8 -n unlock
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 8 -n unlock
# Run without dry run to unlock the updates
# Run without dry run to unlock the updates
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c /builds/buildbot/build_scheduler/master/BuildSlaves.py -u ffxbld -r 8 unlock
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 8 unlock
</pre>
</pre>


== Firefox ==
== Firefox ==
As cltbld@buildbot-master81:
<pre>
<pre>
cd /home/cltbld/
cd /tmp
rm -rf tools
rm -rf tools
hg clone https://hg.mozilla.org/build/tools
hg clone https://hg.mozilla.org/build/tools
cd tools/scripts/updates
cd tools/scripts/updates
scp cltbld@buildbot-master81.bb.releng.scl3.mozilla.com:/builds/buildbot/build_scheduler/master/BuildSlaves.py oauth.txt
# Run with dry run first, sanity check the "Would've unlocked" lines.
# Run with dry run first, sanity check the "Would've unlocked" lines.
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c /builds/buildbot/build_scheduler/master/BuildSlaves.py -u ffxbld -r 10 -r 18 -n unlock
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 10 -r 18 -n unlock
# Run without dry run to unlock the updates
# Run without dry run to unlock the updates
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c /builds/buildbot/build_scheduler/master/BuildSlaves.py -u ffxbld -r 10 -r 18 unlock
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 10 -r 18 unlock
</pre>
</pre>



Revision as of 15:11, 27 February 2015

When Nightly merges into Aurora every 6 weeks we lock Aurora updates at a specific old version for a period of time (days to a week) while QA runs some tests. Once their tests have passed, we re-enable updates. We're also occaisonly asked to disable updates temporarily for other reasons. This document describes how to do both of these things.

Note the magic rule ids below. These correspond to ids of rows in the "rules" table of Balrog. If we fix bug 1067402 we can pass more intelligable values here.

Disabling Updates

NOTE: Disabling no longer has to be done by hand during uplifts. The uplift script does it.

Enabling Updates

Unlike disabling, Firefox and Fennec aren't always re-enabled at the same time. Make sure you are connected to releng VPN.

Fennec

cd /tmp
rm -rf tools
hg clone https://hg.mozilla.org/build/tools
cd tools/scripts/updates
scp cltbld@buildbot-master81.bb.releng.scl3.mozilla.com:/builds/buildbot/build_scheduler/master/BuildSlaves.py oauth.txt
# Run with dry run first, sanity check the "Would've unlocked" lines.
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 8 -n unlock
# Run without dry run to unlock the updates
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 8 unlock

Firefox

cd /tmp
rm -rf tools
hg clone https://hg.mozilla.org/build/tools
cd tools/scripts/updates
scp cltbld@buildbot-master81.bb.releng.scl3.mozilla.com:/builds/buildbot/build_scheduler/master/BuildSlaves.py oauth.txt
# Run with dry run first, sanity check the "Would've unlocked" lines.
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 10 -r 18 -n unlock
# Run without dry run to unlock the updates
python2.7 balrog-nightly-locker.py -a https://aus4-admin.mozilla.org -c oauth.txt -u ffxbld -r 10 -r 18 unlock

Update bouncer

The version needs updating in these bouncer locations:

and also this one for nightly: