Skip to content

Instantly share code, notes, and snippets.

@facuescobar
Created June 10, 2016 15:08
Show Gist options
  • Save facuescobar/c42363e54700ea68aabbe255cea0341d to your computer and use it in GitHub Desktop.
Save facuescobar/c42363e54700ea68aabbe255cea0341d to your computer and use it in GitHub Desktop.
(rebelmouse)escobar@beta1:~/rebelmouse$ prodtest
[localhost:8022] Executing task 'deploy_prodtest'
[localhost] local: hostname
beta1
[localhost] local: sudo -H -u deploys_debug /bin/bash -c "id"
uid=1039(deploys_debug) gid=1025(deploys_debug) groups=1025(deploys_debug)
[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-test7:rebelmouse@wfecache-prod-test7 /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-06-10-1443-test.log | tee /mnt/local/tmp/log/escobar-2016-06-10-1443-test-error.log"
'Raven is not configured (logging is disabled). Please see the documentation for more information.'
......
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "lxml")
markup_type=markup_type))
'
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1042: 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:1853: 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:100: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
result = collection.insert(drafts)
'
'/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)
'
.
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:2059: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.
removed_mongo['community_posts'].insert(posts)
'
............
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/mongoengine/document.py:324: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
object_id = collection.save(doc, **write_concern)
'
................SSS...............................................S............SS..........................................................................................................SSS............S............................
'/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/community/realdrafts.py:188: 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/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/posts/__init__.py:120: 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)
'
.........................................................
'/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)
'
..................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 36, 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 58, 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: 643L
----------------------------------------------------------------------
Ran 555 tests in 814.656s
FAILED (SKIP=10, failures=1)
Exception AttributeError: "'NoneType' object has no attribute 'getcurrent'" in <function _removeHandlerRef at 0x7fcfd4d34a28> 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-06-10-1443-test.log | tee /mnt/local/tmp/log/escobar-2016-06-10-1443-test-error.log"'
You can find stdout log at /mnt/local/tmp/log/escobar-2016-06-10-1443-test.log
The error's log is located at /mnt/local/tmp/log/escobar-2016-06-10-1443-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment