Skip to content

Instantly share code, notes, and snippets.

@facuescobar
Created February 10, 2016 16:35
Show Gist options
  • Save facuescobar/3f63f4ded2949ddb61d9 to your computer and use it in GitHub Desktop.
Save facuescobar/3f63f4ded2949ddb61d9 to your computer and use it in GitHub Desktop.
(rebelmouse)escobar@beta1:~/rebelmouse$ deploy-script deploy_prodtest
[localhost:8022] Executing task 'deploy_prodtest'
[localhost] local: hostname
beta1
[localhost] local: grep -q escobar /home/deploys_debug/prodtest.conf
[localhost] local: grep escobar /home/deploys_debug/prodtest.conf | cut -d'|' -f4
[localhost] local: grep rebelmouse@wfe-prod-test4:rebelmouse@wfecache-prod-test4 /home/deploys_debug/prodtest.conf | cut -d'|' -f1
[localhost] local: test -f /tmp/rebelmouse-prodtest.lock && echo True || echo False
False
[localhost] local: echo -n escobar > /tmp/rebelmouse-prodtest.lock
[localhost:8022] run: whoami
[localhost:8022] Login password for 'escobar':
[localhost:8022] out: escobar
[localhost:8022] out:
Is there any change in css/js files? [y/N] y
[localhost:8022] running tests..
[localhost] local: /bin/bash -c "set -o pipefail && RM_ENV=dev && $WORKON_HOME/rebelmouse/bin/python manage.py test --failfast --noinput 2>&1 > /mnt/local/tmp/log/escobar-2016-02-10-1619-test.log | tee /mnt/local/tmp/log/escobar-2016-02-10-1619-test-error.log"
'Raven is not configured (logging is disabled). Please see the documentation for more information.'
......
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1020: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
res = mongo['community_{}'.format(posts_class)].insert(post)
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1706: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
res = mongo['community_{}'.format(posts_class)].update(pack_fields(query), pack_fields(updates), multi=True)
'
'/mnt/local/home/escobar/rebelmouse/community/realdrafts.py:99: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
result = collection.insert(drafts)
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1923: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
mongo['community_{}'.format(posts_class)].remove(pack_fields({'_id': {'$in': ids}, 'site_id': site_id}))
'
'/mnt/local/home/escobar/rebelmouse/community/comments/models.py:55: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
collection.remove(short_query)
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:742: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
mongo['community_{}'.format('drafts')].remove(pack_fields({'site_id': site_id}))
'
.
'/mnt/local/home/escobar/rebelmouse/rm/models/mongo/__init__.py:499: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
collection.insert(short_query)
'
'/mnt/local/home/escobar/rebelmouse/river/signals.py:147: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
removed += collection.remove({'_id': {'$in': chunk}})['n']
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1905: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
removed_mongo['community_posts'].insert(posts)
'
...
'/mnt/local/home/escobar/rebelmouse/river/signals.py:69: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
updated += collection.update({'_id': {'$in': chunk}}, update, multi=True)['n']
'
'/mnt/local/home/escobar/rebelmouse/river/signals.py:38: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
removed += collection.remove({'_id': {'$in': chunk}})['n']
'
.
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:3789: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
coll.update(query, update_to_perform, multi=True)
'
........
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
upsert=upsert, **write_concern)
'
............
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2332: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
RmMongo.get_instance('whitelabel_posts')['community_posts'].remove()
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2333: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
RmMongo.get_instance('whitelabel_drafts')['community_drafts'].remove()
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2334: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
RmMongo.get_instance('posts')['community_posts'].remove()
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2335: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
RmMongo.get_instance('removed_posts')['community_posts'].remove()
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2336: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
RmMongo.get_instance('drafts')['community_drafts'].remove()
'
..
'/mnt/local/home/escobar/rebelmouse/community/custom/whitelabelposts.py:118: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update(pack_fields(select_query_1), pack_fields(update_query_1))
'
'/mnt/local/home/escobar/rebelmouse/community/custom/whitelabelposts.py:126: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update(pack_fields(select_query_2), pack_fields(update_query_2), multi=True)
'
'/mnt/local/home/escobar/rebelmouse/community/custom/whitelabelposts.py:151: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update(pack_fields(select_query_1), pack_fields(update_query_1))
'
'/mnt/local/home/escobar/rebelmouse/community/custom/whitelabelposts.py:159: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update(pack_fields(select_query_2), pack_fields(update_query_2), multi=True)
'
.
'/mnt/local/home/escobar/rebelmouse/community/custom/tests/whitelabelposts_tests.py:294: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': {'$in': [post_id1, post_id3]}}, pack_fields({'$set': {'inserted_ts': days_ago_35}}), multi=True)
'
'/mnt/local/home/escobar/rebelmouse/community/custom/tests/whitelabelposts_tests.py:295: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': {'$in': [post_id5, post_id7]}}, pack_fields({'$set': {'inserted_ts': days_ago_45}}), multi=True)
'
.SSS................................S..................................................................................................................SSS......
'/mnt/local/home/escobar/rebelmouse/community/subpages.py:175: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
multi=True)
'
'/mnt/local/home/escobar/rebelmouse/community/realdrafts.py:408: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
cls.__get_collection().remove()
'
'/mnt/local/home/escobar/rebelmouse/community/realdrafts.py:409: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
cls.__get_removed_collection().remove()
'
'/mnt/local/home/escobar/rebelmouse/rm/models/mongo/__init__.py:578: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
cls.get_collection().remove()
'
........................................
'/mnt/local/home/escobar/rebelmouse/rm/models/mongo/__init__.py:116: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
collection.remove(short_query)
'
.
'/mnt/local/home/escobar/rebelmouse/rm/models/mongo/__init__.py:239: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
collection.remove(short_query)
'
......
'/mnt/local/home/escobar/rebelmouse/rm/models/mongo/__init__.py:519: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update(short_select_query, query)
'
.............
'/mnt/local/home/escobar/rebelmouse/community/tests/frontpage_tests.py:936: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo['community_posts'].update(pack_fields({'_id': id1}), pack_fields({'$unset': {'subpages': 1}}))
'
'/mnt/local/home/escobar/rebelmouse/community/frontpage.py:1009: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$addToSet': {'subpages': {'$each': [0, subpage]}}}), multi=True)
'
'/mnt/local/home/escobar/rebelmouse/community/frontpage.py:1011: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$addToSet': {'subpages': subpage}}), multi=True)
'
.................
'/mnt/local/home/escobar/rebelmouse/community/posts/history.py:141: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
collection.insert(docs)
'
.....
'/mnt/local/home/escobar/rebelmouse/community/posts/history.py:217: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
collection.remove(query)
'
.
'/mnt/local/home/escobar/rebelmouse/community/posts/history.py:156: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update(query, update_query, multi=True)
'
...
'/mnt/local/home/escobar/rebelmouse/community/realdrafts.py:187: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
result = collection.update(pack_fields(query), pack_fields(updates), multi=True)
'
....
'/mnt/local/home/escobar/rebelmouse/community/realdrafts.py:366: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
removed_collection.insert(delete_drafts)
'
'/mnt/local/home/escobar/rebelmouse/community/realdrafts.py:372: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
collection.remove(pack_fields({'_id': {'$in': id_lst}, 'site_id': site_id}))
'
.............
'/mnt/local/home/escobar/rebelmouse/community/posts/history.py:75: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
collection.insert(docs)
'
....................
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5421: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': post_edited_id}, {'$set': {updated_ts_short: time_in_past}})
'
............
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:7396: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': {'$in': ids}}, pack_fields({'$set': updated_fields}), multi=True)
'
...........
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:6636: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': post_id1}, pack_fields({'$set': {'image_size': '0xNaN'}}))
'
....
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:3328: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
removed_mongo['community_posts'].remove(pack_fields({'_id': post_id}))
'
..................
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2436: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
mongo.remove(pack_fields({'_id': {'$in': ids_to_remove}, 'site_id': site_id}))
'
........
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:4964: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$unset': {'subpages': 1}}), multi=True)
'
.
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5027: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$unset': {'subpages': 1}}), multi=True)
'
..
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5638: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$set': {'unfreeze_at': unfreeze_at_1}}))
'
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5640: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$set': {'unfreeze_at': unfreeze_at_1}}))
'
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5660: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$set': {'unfreeze_at': unfreeze_at_1}}))
'
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5662: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$set': {'unfreeze_at': unfreeze_at_1}}))
'
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:5692: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
pack_fields({'$set': {'unfreeze_at': unfreeze_at_1}}))
'
.
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:1465: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': post_id}, {'$set': {updated_ts_short: time_in_past}})
'
.....
'/mnt/local/home/escobar/rebelmouse/community/tests/posts_tests.py:7485: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': {'$in': ids}}, pack_fields({'$set': updated_fields}), multi=True)
'
......
'/mnt/local/home/escobar/rebelmouse/community/posttags.py:139: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo['community_{}'.format(posts_class)].update(pack_fields({'site_id': site_id, '_id': post_id}), pack_fields({'$addToSet': {'tags': {'$each': tags}}}))
'
.
'/mnt/local/home/escobar/rebelmouse/community/posttags.py:172: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo['community_{}'.format(posts_class)].update(pack_fields({'site_id': site_id, '_id': post_id}), pack_fields(changes))
'
..............
'/mnt/local/home/escobar/rebelmouse/community/tests/realdrafts_tests.py:610: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': {'$in': ids}}, pack_fields({'$set': updated_fields}), multi=True)
'
.
'/mnt/local/home/escobar/rebelmouse/community/tests/realdrafts_tests.py:164: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
mongo.update({'_id': draft_id3}, {'$unset': {'bn': 1}})
'
...
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:116: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
raise PostError(sanitizer_errors_tmpl.render(Context({'errors': e.message})))
'
.......................................................
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/mongoengine/queryset/base.py:461: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
upsert=upsert, **write_concern)
'
.....
'/mnt/local/home/escobar/rebelmouse/seeds/one-time/migrate_petition_cta.py:112: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({'_id': {'$in': self._migrated_ids_now}}, {'$set': {'hct': True}}, multi=True)
'
...........
'/mnt/local/home/escobar/rebelmouse/seeds/one-time/migrate_petition_cta.py:112: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({'_id': {'$in': self._migrated_ids_now}}, {'$set': {'hct': True}}, multi=True)
'
...........
'/mnt/local/home/escobar/rebelmouse/seeds/one-time/migrate_petition_cta.py:112: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({'_id': {'$in': self._migrated_ids_now}}, {'$set': {'hct': True}}, multi=True)
'
.
'/mnt/local/home/escobar/rebelmouse/seeds/one-time/migrate_petition_cta.py:112: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({'_id': {'$in': self._migrated_ids_now}}, {'$set': {'hct': True}}, multi=True)
'
..............
'/mnt/local/home/escobar/rebelmouse/seeds/one-time/migrate_petition_cta.py:112: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({'_id': {'$in': self._migrated_ids_now}}, {'$set': {'hct': True}}, multi=True)
'
.
'/mnt/local/home/escobar/rebelmouse/seeds/one-time/migrate_petition_cta.py:112: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({'_id': {'$in': self._migrated_ids_now}}, {'$set': {'hct': True}}, multi=True)
'
...............
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/mongoengine/queryset/base.py:420: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead.
result = queryset._collection.remove(queryset._query, **write_concern)
'
..................F
======================================================================
FAIL: test_service_should_count_votes_and_get_poll_state_consistently (cta.polls.tests.integration_tests.CtaPollsServiceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/local/home/escobar/rebelmouse/cta/polls/tests/integration_tests.py", line 37, in test_service_should_count_votes_and_get_poll_state_consistently
self._get_cta_poll_state_and_assert([(self.OPTION_1_ID, 1), (self.OPTION_2_ID, 2)], [user.id])
File "/mnt/local/home/escobar/rebelmouse/cta/polls/tests/integration_tests.py", line 59, in _get_cta_poll_state_and_assert
self.assertItemsEqual(expected_last_user_id_list, poll_state.last_user_id_list)
AssertionError: Element counts were not equal:
First has 1, Second has 0: 637L
----------------------------------------------------------------------
Ran 536 tests in 754.629s
FAILED (SKIP=7, failures=1)
Exception AttributeError: "'NoneType' object has no attribute 'getcurrent'" in <function _removeHandlerRef at 0x7f8f99220668> ignored
Warning: local() encountered an error (return code 1) while executing '/bin/bash -c "set -o pipefail && RM_ENV=dev && $WORKON_HOME/rebelmouse/bin/python manage.py test --failfast --noinput 2>&1 > /mnt/local/tmp/log/escobar-2016-02-10-1619-test.log | tee /mnt/local/tmp/log/escobar-2016-02-10-1619-test-error.log"'
You can find stdout log at /mnt/local/tmp/log/escobar-2016-02-10-1619-test.log
The error's log is located at /mnt/local/tmp/log/escobar-2016-02-10-1619-test-error.log
continue deployment? [y/N] n
[localhost] local: rm /tmp/rebelmouse-prodtest.lock
Fatal error: Tests failed, stopping deployment
Aborting.
Disconnecting from localhost:8022... done.
(rebelmouse)escobar@beta1:~/rebelmouse$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment