Closed
Bug 842656
Opened 11 years ago
Closed 11 years ago
[AirMozilla] push -stage and -prod (channels)
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: peterbe, Assigned: cturra)
Details
(Whiteboard: [triaged 20130219][push interrupt])
Please push master to stage and prod for Air Mozilla. It'll contain a bunch of SQL migrations but the scripts should take care of all of that.
Assignee | ||
Comment 1•11 years ago
|
||
push to stage complete. [root@genericadm.private.phx1 air.allizom.org]# bash -x update + CODE_DIR=/data/genericrhel6-stage/src/air.allizom.org/air + MEDIA_DIR=/data/genericrhel6-stage/src/air.allizom.org/air/media ++ md5sum ++ date +%s%N ++ cut -d ' ' -f 1 + LOGFILE=/tmp/0bde756cb1167b831c50d00fec136d73 + PYTHON='/usr/bin/env python' ++ date +%s + START=1361302618 + '[' 0 -ne 0 ']' + tee /tmp/0bde756cb1167b831c50d00fec136d73 + control + techo Start. ++ date -u '+%F %T' + STAMP='[2013-02-19 19:36:58]' + echo '[2013-02-19 19:36:58] Start.' [2013-02-19 19:36:58] Start. + update_code + techo 'Updating code.' ++ date -u '+%F %T' + STAMP='[2013-02-19 19:36:58]' + echo '[2013-02-19 19:36:58] Updating code.' [2013-02-19 19:36:58] Updating code. + cd /data/genericrhel6-stage/src/air.allizom.org/air + git checkout master Already on 'master' M vendor + checkretval + retval=0 + [[ 0 -gt 0 ]] + git pull -f From https://github.com/mozilla/airmozilla f35412b..24f26dc master -> origin/master Updating f35412b..24f26dc Fast-forward LICENSE | 2 +- airmozilla/base/templates/500.html | 1 + airmozilla/base/templates/503.html | 37 ++ airmozilla/base/tests/test_views.py | 54 +++ airmozilla/base/utils.py | 9 +- airmozilla/base/views.py | 28 ++ airmozilla/main/context_processors.py | 71 ++- .../main/migrations/0010_auto__add_channel.py | 179 +++++++ .../main/migrations/0011_events_main_channel.py | 166 +++++++ airmozilla/main/models.py | 47 +- airmozilla/main/static/main/css/main.css | 12 + airmozilla/main/templates/main/_event_privacy.html | 4 +- airmozilla/main/templates/main/calendars.html | 25 + airmozilla/main/templates/main/channels.html | 30 ++ airmozilla/main/templates/main/home.html | 33 +- airmozilla/main/templates/main/main_base.html | 17 +- airmozilla/main/tests/test_models.py | 10 +- airmozilla/main/tests/test_views.py | 527 ++++++++++++++++++++- airmozilla/main/urls.py | 17 +- airmozilla/main/views.py | 173 ++++++- airmozilla/manage/forms.py | 65 ++- .../manage/static/manage/js/channel-html-edit.js | 19 + .../manage/static/manage/js/event-request.js | 1 + .../manage/static/manage/js/flatpage-edit.js | 11 +- .../templates/manage/_about_sidebar_slugs.html | 24 + .../manage/templates/manage/channel_edit.html | 46 ++ .../manage/templates/manage/channel_new.html | 46 ++ airmozilla/manage/templates/manage/channels.html | 46 ++ airmozilla/manage/templates/manage/events.html | 9 +- .../manage/templates/manage/flatpage_edit.html | 1 + .../manage/templates/manage/flatpage_new.html | 1 + .../manage/templates/manage/manage_base.html | 4 +- airmozilla/manage/templates/manage/users.html | 19 + airmozilla/manage/tests/main_testdata.json | 18 + airmozilla/manage/tests/test_views.py | 205 +++++++- airmozilla/manage/urls.py | 6 + airmozilla/manage/views.py | 124 ++++- airmozilla/settings/base.py | 4 + airmozilla/urls.py | 4 + requirements/dev.txt | 3 +- 40 files changed, 1995 insertions(+), 103 deletions(-) create mode 100644 airmozilla/base/templates/503.html create mode 100644 airmozilla/base/tests/test_views.py create mode 100644 airmozilla/base/views.py create mode 100644 airmozilla/main/migrations/0010_auto__add_channel.py create mode 100644 airmozilla/main/migrations/0011_events_main_channel.py create mode 100644 airmozilla/main/templates/main/calendars.html create mode 100644 airmozilla/main/templates/main/channels.html create mode 100644 airmozilla/manage/static/manage/js/channel-html-edit.js create mode 100644 airmozilla/manage/templates/manage/_about_sidebar_slugs.html create mode 100644 airmozilla/manage/templates/manage/channel_edit.html create mode 100644 airmozilla/manage/templates/manage/channel_new.html create mode 100644 airmozilla/manage/templates/manage/channels.html + checkretval + retval=0 + [[ 0 -gt 0 ]] + techo 'Updating submodules.' ++ date -u '+%F %T' + STAMP='[2013-02-19 19:37:05]' + echo '[2013-02-19 19:37:05] Updating submodules.' [2013-02-19 19:37:05] Updating submodules. + git submodule update --init --recursive + checkretval + retval=0 + [[ 0 -gt 0 ]] + git rev-parse HEAD + clean_src + techo 'Cleaning gitignore and pyc files.' ++ date -u '+%F %T' + STAMP='[2013-02-19 19:37:06]' + echo '[2013-02-19 19:37:06] Cleaning gitignore and pyc files.' [2013-02-19 19:37:06] Cleaning gitignore and pyc files. + cd /data/genericrhel6-stage/src/air.allizom.org/air + find . -type f -name .gitignore -or -name '*.pyc' -delete + checkretval + retval=0 + [[ 0 -gt 0 ]] + run_migration + echo -e 'Running schema/data migrations...' Running schema/data migrations... + /usr/bin/env python /data/genericrhel6-stage/src/air.allizom.org/air/manage.py syncdb Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Synced: > funfactory > compressor > django.contrib.auth > django.contrib.contenttypes > django.contrib.sessions > django.contrib.staticfiles > commonware.response.cookies > session_csrf > airmozilla.base > airmozilla.auth > bootstrapform > sorl.thumbnail > south > django.contrib.messages > django.contrib.sites > django.contrib.flatpages Not synced (use migrations): - djcelery - airmozilla.main (use ./manage.py migrate to migrate these) + /usr/bin/env python /data/genericrhel6-stage/src/air.allizom.org/air/manage.py migrate airmozilla.main Running migrations for main: - Migrating forwards to 0011_events_main_channel. > main:0010_auto__add_channel > main:0011_events_main_channel - Migration 'main:0011_events_main_channel' is marked for no-dry-run. - Loading initial data for main. Installed 0 object(s) from 0 fixture(s) + /usr/bin/env python /data/genericrhel6-stage/src/air.allizom.org/air/manage.py collectstatic --noinput from pkg_resources import resource_stream Copying '/data/genericrhel6-stage/src/air.allizom.org/air/airmozilla/main/static/main/css/main.css' Copying '/data/genericrhel6-stage/src/air.allizom.org/air/airmozilla/manage/static/manage/js/flatpage-edit.js' Copying '/data/genericrhel6-stage/src/air.allizom.org/air/airmozilla/manage/static/manage/js/event-request.js' Copying '/data/genericrhel6-stage/src/air.allizom.org/air/airmozilla/manage/static/manage/js/channel-html-edit.js' 4 static files copied, 56 unmodified. + deploy + techo 'Deploying code.' ++ date -u '+%F %T' + STAMP='[2013-02-19 19:37:20]' + echo '[2013-02-19 19:37:20] Deploying code.' [2013-02-19 19:37:20] Deploying code. + OPT= + '[' xterm == dumb ']' + /data/genericrhel6-stage/deploy air.allizom.org [2013-02-19 11:37:20] Running rsync_project [2013-02-19 11:37:20] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-stage/src/air.allizom.org/ /data/genericrhel6-stage/www/air.allizom.org/ [2013-02-19 11:37:22] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-stage/src/air.allizom.org/ /data/genericrhel6-stage/www/air.allizom.org/ (2.359s) [2013-02-19 11:37:22] Finished rsync_project (2.359s) [2013-02-19 11:37:22] Running commit_www [2013-02-19 11:37:22] [localhost] running: cd /data/genericrhel6-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['air.allizom.org']' [2013-02-19 11:38:00] [localhost] finished: cd /data/genericrhel6-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['air.allizom.org']' (37.621s) [localhost] out: [master f275995] deploy [air.allizom.org] [localhost] out: 40 files changed, 1995 insertions(+), 103 deletions(-) [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/base/templates/503.html [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/base/tests/test_views.py [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/base/views.py [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/main/migrations/0010_auto__add_channel.py [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/main/migrations/0011_events_main_channel.py [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/main/templates/main/calendars.html [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/main/templates/main/channels.html [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/manage/static/manage/js/channel-html-edit.js [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/manage/templates/manage/_about_sidebar_slugs.html [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/manage/templates/manage/channel_edit.html [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/manage/templates/manage/channel_new.html [localhost] out: create mode 100644 air.allizom.org/air/airmozilla/manage/templates/manage/channels.html [2013-02-19 11:38:00] Finished commit_www (37.622s)
Assignee: server-ops-webops → cturra
Status: NEW → ASSIGNED
Whiteboard: [triaged 20130219][push interrupt]
Reporter | ||
Comment 2•11 years ago
|
||
Thanks. Richard and Zandr are in Europe somewhere and I hope they'll check this tomorrow morning.
Reporter | ||
Comment 3•11 years ago
|
||
Actually. Can I be annoying and ask that you do stage again. Because of this https://www.djangoproject.com/weblog/2013/feb/19/security/ I've had to upgrade airmozilla to use Django 1.4.4 and this has landed on master and jenkins should have pushed this to air-dev by now. There's nothing to test but it would be bad if prod is one version ahead of stage.
Assignee | ||
Comment 4•11 years ago
|
||
:peterbe - not annoying in the least, that's a good idea! i just did another push to stage to grab these django submodule updates.
Comment 5•11 years ago
|
||
Tested channels on dev and stage. Everything looks good there. New spacing is an improvement.
Reporter | ||
Comment 6•11 years ago
|
||
:cturra, let's proceed with prod. Thanks.
Comment 7•11 years ago
|
||
Pushed to prod
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•5 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•