CenterForOpenScience / osf.io

Facilitating Open Science
https://osf.io
Apache License 2.0
677 stars 331 forks source link

onboard @whit537 #4762

Closed chadwhitacre closed 8 years ago

chadwhitacre commented 8 years ago

May I? :-)

chadwhitacre commented 8 years ago

@sloria M'kay. :)

sloria commented 8 years ago

I am currently using Tokumx 2.0.0, installed with Homebrew:

brew tap tokutek/tokumx
brew install tokumx-bin
chadwhitacre commented 8 years ago

Hmm ...

https://github.com/Tokutek/mongo/blob/tokumx-2.0.0/docs/building.md

Not as easy as Mongo. :-/

chadwhitacre commented 8 years ago

Building Tokutek from source looks like it may require installing gcc (to avoid using Apple's clangy gcc-alike). At which point, I give in: and turns out I already have brew installed after all. :-)

$ brew tap tokutek/tokumx
==> Tapping tokutek/tokumx
Cloning into '/usr/local/Library/Taps/tokutek/homebrew-tokumx'...
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
Checking connectivity... done.
Tapped 1 formula (29 files, 128K)
$ brew install tokumx-bin
==> Installing tokumx-bin from tokutek/homebrew-tokumx
==> Downloading https://s3.amazonaws.com/tokumx-2.0.0/tokumx-2.0.0-osx-x86_64-main.tar.gz
######################################################################## 100.0%
36:139: execution error: System Events got an error: User canceled. (-128)
Error: Canceling at user request.

Wtf asking me for an email address?

$ brew install tokumx-bin
==> Installing tokumx-bin from tokutek/homebrew-tokumx
==> Downloading https://s3.amazonaws.com/tokumx-2.0.0/tokumx-2.0.0-osx-x86_64-main.tar.gz
Already downloaded: /Library/Caches/Homebrew/tokumx-bin-2.0.0.tar.gz
==> Caveats
To have launchd start tokutek/tokumx/tokumx-bin at login:
  ln -sfv /usr/local/opt/tokumx-bin/*.plist ~/Library/LaunchAgents
Then to load tokutek/tokumx/tokumx-bin now:
  launchctl load ~/Library/LaunchAgents/homebrew.mxcl.tokumx-bin.plist
Or, if you don't want/need launchctl, you can just run:
  mongod --config /usr/local/etc/tokumx.conf
==> Summary
�  /usr/local/Cellar/tokumx-bin/2.0.0: 24 files, 241M, built in 13 seconds
$
chadwhitacre commented 8 years ago
$ mongod
mongod --help for help and startup options
Wed Dec 16 15:50:59.306  nssize is a deprecated parameter
Wed Dec 16 15:50:59.319 [initandlisten] TokuMX starting : pid=21489 port=27017 dbpath=/data/db/ 64-bit host=Chads-MBP
Wed Dec 16 15:50:59.319 [initandlisten] 
Wed Dec 16 15:50:59.320 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
Wed Dec 16 15:50:59.320 [initandlisten] TokuMX mongod server v2.0.0-mongodb-2.4.10, using TokuKV rev 60be90af92bb3aeae3e43fe166e8d4381a1e5e7c
Wed Dec 16 15:50:59.320 [initandlisten] git version: 534df238ab437147e722c6ff6b3ad535991bfc8b
Wed Dec 16 15:50:59.320 [initandlisten] build info: Darwin localhost 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
Wed Dec 16 15:50:59.320 [initandlisten] options: {}
Wed Dec 16 15:50:59.321 [initandlisten] [tokumx] startup
Wed Dec 16 15:50:59.460 [initandlisten] Need to upgrade from disk format version 1 to 5.
Wed Dec 16 15:50:59.460 [initandlisten] 0 databases will be upgraded.
Wed Dec 16 15:50:59.460 [initandlisten] Running upgrade of disk format version 1 to 2.
Wed Dec 16 15:50:59.463 [initandlisten] Running upgrade of disk format version 2 to 3.
Wed Dec 16 15:50:59.464 [initandlisten] Running upgrade of disk format version 3 to 4.
Wed Dec 16 15:50:59.464 [initandlisten] Running upgrade of disk format version 4 to 5.
Wed Dec 16 15:50:59.468 [websvr] admin web console waiting for connections on port 28017
Wed Dec 16 15:50:59.468 [initandlisten] waiting for connections on port 27017
chadwhitacre commented 8 years ago

Blam! :dancer:

screen shot 2015-12-16 at 3 51 50 pm

chadwhitacre commented 8 years ago

Now for that test suite ...

chadwhitacre commented 8 years ago

Chuggin' ...

screen shot 2015-12-16 at 3 53 10 pm

chadwhitacre commented 8 years ago

Oooh! Some passing! :-)

screen shot 2015-12-16 at 3 53 25 pm

chadwhitacre commented 8 years ago

Can't say this test suite is zippy ...

chadwhitacre commented 8 years ago
202) ERROR: test suite for <class 'tests.webtest_tests.TestShortUrls'>

   Traceback (most recent call last):
    env/lib/python2.7/site-packages/nose/suite.py line 209 in run
      self.setUp()
    env/lib/python2.7/site-packages/nose/suite.py line 292 in setUp
      self.setupContext(ancestor)
    env/lib/python2.7/site-packages/nose/suite.py line 315 in setupContext
      try_run(context, names)
    env/lib/python2.7/site-packages/nose/util.py line 471 in try_run
      return func()
    tests/base.py line 126 in setUpClass
      addons=settings.ADDONS_AVAILABLE,
    framework/mongo/handlers.py line 103 in set_up_storage
      **kwargs
    env/lib/python2.7/site-packages/modularodm/storedobject.py line 429 in set_storage
      storage._ensure_index(field_name)
    env/lib/python2.7/site-packages/modularodm/storage/mongostorage.py line 188 in _ensure_index
      self.store.ensure_index(key)
    env/lib/python2.7/site-packages/pymongo/collection.py line 916 in ensure_index
      return self.create_index(key_or_list, cache_for, **kwargs)
    env/lib/python2.7/site-packages/pymongo/collection.py line 823 in create_index
      **self._get_wc_override())
    env/lib/python2.7/site-packages/pymongo/collection.py line 357 in insert
      continue_on_error, self.__uuid_subtype), safe)
    env/lib/python2.7/site-packages/pymongo/mongo_client.py line 920 in _send_message
      rv = self.__check_response_to_last_error(response)
    env/lib/python2.7/site-packages/pymongo/mongo_client.py line 863 in __check_response_to_last_error
      raise OperationFailure(details["err"], details["code"])
   OperationFailure: Error 24: Too many open files

-----------------------------------------------------------------------------
268 tests run in 188.3 seconds. 
202 errors, 5 skipped (61 tests passed)
[osf.io]$
chadwhitacre commented 8 years ago

https://github.com/CenterForOpenScience/osf.io#additional-configuration-for-mac-os-x

chadwhitacre commented 8 years ago

Okay! Now for the big run again ... no whammies!

[osf.io]$ nosetests tests/webtest_tests.py -x
[website.util.paths]  WARNING: Skipping load of "webpack-assets.json" in DEBUG_MODE.
Raven is not configured (logging is disabled). Please see the documentation for more information.
[raven.base.Client]  INFO: Raven is not configured (logging is disabled). Please see the documentation for more information.
[website.addons.github.settings]  WARNING: No local.py settings file found
[website.addons.osfstorage.settings]  WARNING: No local.py settings file found
[website.addons.wiki.settings]  WARNING: No local.py settings file found
[root]  DEBUG: Setting storage backends
[root]  INFO: Sentry disabled; Flask's debug mode enabled
[root]  INFO: Sentry disabled; Flask's debug mode enabled
/Users/whit537/workbench/cos/osf.io/env/lib/python2.7/site-packages/modularodm/storedobject.py:940: UserWarning: Setting an attribute that is neither a field nor a protected value.
  warnings.warn('Setting an attribute that is neither a field nor a protected value.')

[py.warnings]  WARNING: /Users/whit537/workbench/cos/osf.io/env/lib/python2.7/site-packages/modularodm/storedobject.py:940: UserWarning: Setting an attribute that is neither a field nor a protected value.
  warnings.warn('Setting an attribute that is neither a field nor a protected value.')

....[website.addons.badges.settings]  WARNING: No local.py settings file found
..........S..........S......................S...SSSSS.......SSS...
----------------------------------------------------------------------
Ran 70 tests in 49.904s

OK (SKIP=11)
[osf.io]$
chadwhitacre commented 8 years ago

So far so good?

screen shot 2015-12-16 at 4 25 15 pm

chadwhitacre commented 8 years ago

screen shot 2015-12-16 at 4 33 10 pm

======================================================================
FAIL: test_share_count (tests.test_share.TestShareSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/whit537/workbench/cos/osf.io/env/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/Users/whit537/workbench/cos/osf.io/tests/test_share.py", line 99, in test_share_count
    assert_is(mock_count.called, True)
AssertionError: False is not True

----------------------------------------------------------------------
Ran 1491 tests in 535.315s

FAILED (SKIP=27, failures=1)
[osf.io]$
chadwhitacre commented 8 years ago

My final goals for this morning are:

chadwhitacre commented 8 years ago

Here's the Jira filter I'll use when deciding what to code review: https://openscience.atlassian.net/issues/?filter=11402.

chadwhitacre commented 8 years ago

Alright, I've bailed out on #4768. Gonna consider myself onboarded and get on with code review.

To the Jira-mobile! :blue_car: