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

Issue 2738623003: Extensions: Fix DocServer assert failures. (Closed)

Created:
3 years, 9 months ago by karandeepb
Modified:
3 years, 9 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, lazyboy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Fix DocServer assert failures. Currently, there are a couple of assert failures happening for the DocServer. Two issues are involved: - r446160 updated tools/json_schema_compiler/model.py. It changed the logic to assign the callback for a function, so that only the last parameter function of a function could be recognised as a callback. This broke some DocServer tests and hence the extension presubmit script. - Recently the API endpoint https://omahaproxy.appspot.com/history.json?channel=dev&os=win&json=1 that we use to fetch the branch for a particular Chrome version, stopped providing info. for version 15. This led to an assert failure when generating the Availability info. for the Webstore API. This CL fixes the issues so that the extension presubmit tests pass. For issue 1, a new category type is introduced to APICategorizer for the internal APIs. It is ensured that the API data source does not generate info. for internal APIs which are never documented. Existing tests are updated to work around the fact that only the last parameter of a function can be recognised as a callback. For issue 2, it is ensured that the assert failure is not reached. However, the core issue (omahaproxy endpoint not providing details of all Chrome versions) still needs to be tackled. BUG=696767, 700234 Review-Url: https://codereview.chromium.org/2738623003 Cr-Commit-Position: refs/heads/master@{#456767} Committed: https://chromium.googlesource.com/chromium/src/+/08614915649c30c0278a9b154825e370b819a6de

Patch Set 1 #

Patch Set 2 : -- #

Total comments: 3

Patch Set 3 : Nit. #

Total comments: 10

Patch Set 4 : Address review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -22 lines) Patch
M chrome/common/extensions/docs/server2/api_categorizer.py View 1 chunk +11 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/api_data_source.py View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/api_schema_graph.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/app.yaml View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/availability_finder.py View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py View 1 4 chunks +10 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (19 generated)
karandeepb
PTAL Devlin. https://codereview.chromium.org/2738623003/diff/20001/chrome/common/extensions/docs/server2/api_categorizer.py File chrome/common/extensions/docs/server2/api_categorizer.py (right): https://codereview.chromium.org/2738623003/diff/20001/chrome/common/extensions/docs/server2/api_categorizer.py#newcode46 chrome/common/extensions/docs/server2/api_categorizer.py:46: assert api_name not in documented_apis, \ Do ...
3 years, 9 months ago (2017-03-10 03:13:38 UTC) #12
karandeepb
3 years, 9 months ago (2017-03-10 03:14:07 UTC) #14
Devlin
lgtm % nits Before you land, can you double check that someone's ready to bump ...
3 years, 9 months ago (2017-03-13 20:38:18 UTC) #15
karandeepb
https://codereview.chromium.org/2738623003/diff/40001/chrome/common/extensions/docs/server2/api_categorizer.py File chrome/common/extensions/docs/server2/api_categorizer.py (right): https://codereview.chromium.org/2738623003/diff/40001/chrome/common/extensions/docs/server2/api_categorizer.py#newcode39 chrome/common/extensions/docs/server2/api_categorizer.py:39: "private": APIs which are undocumented or are available to ...
3 years, 9 months ago (2017-03-14 01:02:02 UTC) #17
Devlin
(slgtm) https://codereview.chromium.org/2738623003/diff/40001/chrome/common/extensions/docs/server2/api_categorizer.py File chrome/common/extensions/docs/server2/api_categorizer.py (right): https://codereview.chromium.org/2738623003/diff/40001/chrome/common/extensions/docs/server2/api_categorizer.py#newcode39 chrome/common/extensions/docs/server2/api_categorizer.py:39: "private": APIs which are undocumented or are available ...
3 years, 9 months ago (2017-03-14 01:12:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2738623003/80001
3 years, 9 months ago (2017-03-14 01:22:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2738623003/80001
3 years, 9 months ago (2017-03-14 18:15:01 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 18:28:54 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/08614915649c30c0278a9b154825...

Powered by Google App Engine
This is Rietveld 408576698