Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(836)

Issue 14218004: Devserver: only populate data during cron jobs, meaning all data from instances (Closed)

Created:
7 years, 8 months ago by not at google - send to devlin
Modified:
7 years, 7 months ago
Reviewers:
cduvall
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Devserver: only populate data during cron jobs, meaning all data from instances are served out of caches. Add a PersistentObjectStore to make that work. BUG=226625

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : this works #

Patch Set 4 : PTAL #

Total comments: 17

Patch Set 5 : cduvall #

Patch Set 6 : bump version #

Patch Set 7 : fix integration test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+870 lines, -427 lines) Patch
M chrome/common/extensions/docs/server2/api_data_source.py View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/api_data_source_test.py View 2 chunks +0 lines, -24 lines 0 comments Download
M chrome/common/extensions/docs/server2/app.yaml View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/appengine_wrappers.py View 1 2 3 5 chunks +74 lines, -16 lines 0 comments Download
M chrome/common/extensions/docs/server2/branch_utility_test.py View 1 chunk +0 lines, -1 line 0 comments Download
A chrome/common/extensions/docs/server2/cache_chain_object_store.py View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/cache_chain_object_store_test.py View 1 chunk +162 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/caching_file_system.py View 3 chunks +16 lines, -16 lines 0 comments Download
M chrome/common/extensions/docs/server2/caching_file_system_test.py View 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/compiled_file_system.py View 1 2 chunks +4 lines, -4 lines 0 comments Download
A chrome/common/extensions/docs/server2/datastore_models.py View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/file_system.py View 1 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/github_file_system.py View 1 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/github_file_system_test.py View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/handler.py View 1 2 3 4 3 chunks +39 lines, -13 lines 0 comments Download
D chrome/common/extensions/docs/server2/in_memory_object_store.py View 1 chunk +0 lines, -77 lines 0 comments Download
M chrome/common/extensions/docs/server2/integration_test.py View 1 2 3 4 5 6 2 chunks +79 lines, -135 lines 0 comments Download
A chrome/common/extensions/docs/server2/local_renderer.py View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/memcache_object_store.py View 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/common/extensions/docs/server2/object_store.py View 2 chunks +28 lines, -26 lines 0 comments Download
M chrome/common/extensions/docs/server2/object_store_creator.py View 1 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/common/extensions/docs/server2/offline_file_system.py View 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/persistent_object_store.py View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/persistent_object_store_test.py View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/preview.py View 1 2 3 4 chunks +26 lines, -40 lines 0 comments Download
M chrome/common/extensions/docs/server2/reference_resolver_test.py View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/server_instance.py View 5 chunks +51 lines, -30 lines 0 comments Download
M chrome/common/extensions/docs/server2/sidenav_data_source_test.py View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/subversion_file_system.py View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source.py View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/test_file_system.py View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/test_object_store.py View 1 2 3 1 chunk +49 lines, -10 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_object_store_test.py View 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
not at google - send to devlin
Hey Clark, This is a WIP insofar as it's done, except I can't get PersistentObjectStore ...
7 years, 8 months ago (2013-04-16 13:20:48 UTC) #1
方觉(Fang Jue)
drive-by. I was wondering where PersistentDataStore was in the first patchset:) Glad to see this ...
7 years, 8 months ago (2013-04-16 14:26:49 UTC) #2
cduvall
I upploaded a patchset that works with datastore. It had minimal changes to persistent_object_store.py. I ...
7 years, 8 months ago (2013-04-17 01:12:11 UTC) #3
not at google - send to devlin
Thanks for the help, good to go now. (and I hackily ran the persistent unit ...
7 years, 8 months ago (2013-04-17 18:00:50 UTC) #4
not at google - send to devlin
sorry upload failed on the patch, not quite ready...
7 years, 8 months ago (2013-04-17 18:08:08 UTC) #5
not at google - send to devlin
ok PTAL
7 years, 8 months ago (2013-04-17 18:10:37 UTC) #6
cduvall
lgtm with comments https://codereview.chromium.org/14218004/diff/16001/chrome/common/extensions/docs/server2/cache_chain_object_store.py File chrome/common/extensions/docs/server2/cache_chain_object_store.py (right): https://codereview.chromium.org/14218004/diff/16001/chrome/common/extensions/docs/server2/cache_chain_object_store.py#newcode1 chrome/common/extensions/docs/server2/cache_chain_object_store.py:1: # Copyright 2013 The Chromium Authors. ...
7 years, 8 months ago (2013-04-17 23:30:37 UTC) #7
not at google - send to devlin
https://chromiumcodereview.appspot.com/14218004/diff/16001/chrome/common/extensions/docs/server2/cache_chain_object_store.py File chrome/common/extensions/docs/server2/cache_chain_object_store.py (right): https://chromiumcodereview.appspot.com/14218004/diff/16001/chrome/common/extensions/docs/server2/cache_chain_object_store.py#newcode1 chrome/common/extensions/docs/server2/cache_chain_object_store.py:1: # Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years, 8 months ago (2013-04-18 04:05:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14218004/21001
7 years, 8 months ago (2013-04-18 04:06:38 UTC) #9
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 04:06:49 UTC) #10
Presubmit check for 14218004-21001 failed and returned exit status 1.

INFO:root:Found 31 file(s).

Traceback (most recent call last):
  File "docs/server2/integration_test.py", line 6, in <module>
    from handler import Handler
  File
"/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2/handler.py",
line 13, in <module>
    from server_instance import ServerInstance
  File
"/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2/server_instance.py",
line 9, in <module>
    from api_data_source import APIDataSource
  File
"/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2/api_data_source.py",
line 10, in <module>
    import third_party.json_schema_compiler.json_parse as json_parse
ImportError: No module named third_party.json_schema_compiler.json_parse
testGetBranchNumberForChannelName (__main__.BranchUtilityTest) ... ok
testSplitChannelNameFromPath (__main__.BranchUtilityTest) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.002s

OK
testLevels (__main__.SamplesDataSourceTest) ... ok
testSelected (__main__.SamplesDataSourceTest) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.007s

OK
testCheckAndReset (__main__.TestObjectStoreTest) ... ok
testEmpty (__main__.TestObjectStoreTest) ... ok
testNonEmpty (__main__.TestObjectStoreTest) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.003s

OK
testListDir (__main__.SubversionFileSystemTest) ... ok
testReadFiles (__main__.SubversionFileSystemTest) ... ok
testStat (__main__.SubversionFileSystemTest) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.107s

OK
testFilterSamples (__main__.SamplesDataSourceTest) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.007s

OK
testFactoryWithBranch (__main__.ObjectStoreCreatorTest) ... ok
testIllegalIinput (__main__.ObjectStoreCreatorTest) ... ok
testVanilla (__main__.ObjectStoreCreatorTest) ... ok
testWithCategory (__main__.ObjectStoreCreatorTest) ... ok
testWithVersion (__main__.ObjectStoreCreatorTest) ... ok
testWithVersionAndCategory (__main__.ObjectStoreCreatorTest) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.001s

OK
testListDir (__main__.LocalFileSystemTest) ... ok
testReadFiles (__main__.LocalFileSystemTest) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.002s

OK
testCaching (__main__.CachingFileSystemTest) ... ok
testListDir (__main__.CachingFileSystemTest) ... ok
testReadFiles (__main__.CachingFileSystemTest) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.004s

OK
testCreateZip (__main__.ExampleZipperTest) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.005s

OK
testNamespaceIsolation (__main__.PersistentObjectStoreTest) ... ok
testPersistence (__main__.PersistentObjectStoreTest) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.001s

OK
testDel (__main__.CacheChainObjectStoreTest) ... ok
testGetFromAllLayers (__main__.CacheChainObjectStoreTest) ... ok
testGetFromFirstLayer (__main__.CacheChainObjectStoreTest) ... ok
testGetFromSecondLayer (__main__.CacheChainObjectStoreTest) ... ok
testGetFromThirdLayer (__main__.CacheChainObjectStoreTest) ... ok
testNotFound (__main__.CacheChainObjectStoreTest) ... ok
testPartiallyCachedInMemory (__main__.CacheChainObjectStoreTest) ... ok
testSet (__main__.CacheChainObjectStoreTest) ... ok

----------------------------------------------------------------------
Ran 8 tests in 0.003s

OK
testApps (__main__.APIListDataSourceTest) ... ok
testExperimentalApps (__main__.APIListDataSourceTest) ... ok
testExtensions (__main__.APIListDataSourceTest) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.002s

OK
testKeyGeneration (__main__.GithubFileSystemTest) ... ok
testList (__main__.GithubFileSystemTest) ... ok
testRead (__main__.GithubFileSystemTest) ... ok
testStat (__main__.GithubFileSystemTest) ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.097s

OK
testCheckAndReset (__main__.TestFileSystemTest) ... ok
testEmptyFileSystem (__main__.TestFileSystemTest) ... ok
testMoveTo (__main__.TestFileSystemTest) ... ok
testNonemptyFileNotFoundErrors (__main__.TestFileSystemTest) ... ok
testNonemptySuccess (__main__.TestFileSystemTest) ... ok
testStat (__main__.TestFileSystemTest) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.002s

OK
testPartials (__main__.TemplateDataSourceTest) ...
ERROR:root:SamplesDataSource.Factory was never set in APIDataSource.Factory.
ERROR:root:ReferenceResolver.Factory was never set in APIDataSource.Factory.
ok
testRender (__main__.TemplateDataSourceTest) ... ok
testSimple (__main__.TemplateDataSourceTest) ... WARNING:root:Template junk.html
in . not found: ./junk.html
ok

----------------------------------------------------------------------
Ran 3 tests in 0.020s

OK
testCaching (__main__.CompiledFileSystemTest) ... ok
testFailures (__main__.CompiledFileSystemTest) ... ok
testIdentityFromFile (__main__.CompiledFileSystemTest) ... ok
testIdentityFromFileListing (__main__.CompiledFileSystemTest) ... ok
testIdentityNamespace (__main__.CompiledFileSystemTest) ... ok
testPopulateFromFile (__main__.CompiledFileSystemTest) ... ok
testPopulateNamespace (__main__.CompiledFileSystemTest) ... ok

----------------------------------------------------------------------
Ran 7 tests in 0.003s

OK
testGetLink (__main__.APIDataSourceTest) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.005s

OK
testApps (__main__.PathCanonicalizerTest) ... ok
testExtensions (__main__.PathCanonicalizerTest) ... ok
testNeither (__main__.PathCanonicalizerTest) ... ok
testStatic (__main__.PathCanonicalizerTest) ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.002s

OK
testCreateId (__main__.APIDataSourceTest) ... ok
testFormatDescription (__main__.APIDataSourceTest) ... ok
testFormatValue (__main__.APIDataSourceTest) ... ok
testRemoveNoDocs (__main__.APIDataSourceTest) ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.011s

OK
testIntro (__main__.IntroDataSourceTest) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.004s

OK
Running presubmit commit checks ...
Running /b/commit-queue/workdir/chromium/PRESUBMIT.py
Running /b/commit-queue/workdir/chromium/chrome/PRESUBMIT.py
Running /b/commit-queue/workdir/chromium/chrome/common/extensions/PRESUBMIT.py
Running
/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2/PRESUBMIT.py
Running ./branch_utility_test.py
Running ./sidenav_data_source_test.py
Running ./test_object_store_test.py
Running ./subversion_file_system_test.py
Running ./samples_data_source_test.py
Running ./object_store_creator_test.py
Running ./local_file_system_test.py
Running ./caching_file_system_test.py
Running ./example_zipper_test.py
Running ./persistent_object_store_test.py
Running ./cache_chain_object_store_test.py
Running ./api_list_data_source_test.py
Running ./github_file_system_test.py
Running ./test_file_system_test.py
Running ./template_data_source_test.py
Running ./compiled_file_system_test.py
Running ./reference_resolver_test.py
Running ./path_canonicalizer_test.py
Running ./api_data_source_test.py
Running ./intro_data_source_test.py

** Presubmit Warnings **
_VERSION of chrome/common/extensions/docs/server2/api_data_source.py needs to be
incremented.

_VERSION of chrome/common/extensions/docs/server2/subversion_file_system.py
needs to be incremented.

_VERSION of chrome/common/extensions/docs/server2/template_data_source.py needs
to be incremented.

** Presubmit ERRORS **
IntegrationTest failed!

Presubmit checks took 4.1s to calculate.

Was the presubmit check useful? Please send feedback & hate mail to
maruel@chromium.org!

Powered by Google App Engine
This is Rietveld 408576698